OpenSeaMap Forum

For new registrations: Please create and activate an account. Afterwards send an email to forum.openseamap@gmail.com including a short message and your username to get write access to this forum. Thanks!
Für neue Registrierungen: Bitte erstelle einen neuen Account und schalte ihn frei. Anschließend sende eine kurze Mail mit deinem Nutzernamen an forum.openseamap@gmail.com um Schreibzugriff für dieses Forum zu bekommen. Danke!

You are not logged in.

#1 2016-03-21 15:30:06

lepipasd
Member
Registered: 2016-02-16
Posts: 36

Generate depth contour lines from netcdf file and create base layer

I am trying to create a base layer form my map that will display depth contour lines. below I describe what I 've done so far:

1. Download data (.nc file) from GEBCO (https://www.bodc.ac.uk/data/online_deli … nute_grid/) registration needed

2. Download the free trial edition of Global Mapper v17.1 , import the .nc file

3. Analysis>Generate Contours (from Terrian Grid) (create a series of contour lines)

4. File>Export>Export Vextor/LiDAR and select shapefile for output.

Next step is to import the shp file into Tilemill and export a mapnik style from there, hope is not difficult as the style needed is simple (simple zoom rules, labels and width-colour of lines)

When importing data I was asked about the projection used and I selected WGS84. I don't know if I did well

I created the above mapnik style
   
     <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map srs="<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">


<Parameters>
<Parameter name="scale">1</Parameter>
<Parameter name="center">0,0,4</Parameter>
<Parameter name="format">png</Parameter>
<Parameter name="metatile">2</Parameter>
<Parameter name="bounds">-180,-85.05112877980659,180,85.05112877980659</Parameter>
<Parameter name="name"><![CDATA[OpenStreetMap Carto]]></Parameter>
<Parameter name="minzoom">0</Parameter>
<Parameter name="maxzoom">22</Parameter>
<Parameter name="description"><![CDATA[A faithful reimplementation of the   standard OpenStreetMap style]]></Parameter>
</Parameters>

<Style name="My Style">
<Rule>
  <LineSymbolizer stroke-width="0.4" stroke="#ac46ac" />
</Rule>
</Style>

<Layer name="world" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName>
<Datasource>
  <Parameter name="type">shape</Parameter>
  <Parameter name="file">water_depth/contour_lines.shp</Parameter>
</Datasource>
</Layer>

</Map>


When open browser (leafelt) I don't get "pink" tiles (error) but I don't see the contour lines, only a blue background

A. Has anyone an idea of what is wrong?

B. What projection should be used?

C. Can anyone help with the mapnik style? (In QGIS I may see the lines and add labels)


this is the output from syslog:

Mar 21 16:24:39 Archimidis renderd[2074]: message repeated 3 times: [ Unknown projection string, using web mercator as never the less. +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs]
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Got incoming connection, fd 9, number 1
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Got incoming connection, fd 10, number 2
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Got incoming request with protocol version 2
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Got command RenderPrio fd(9) xml(bathymetry), z(11), x(1157), y(795), mime(image/png), options()

Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: DONE TILE bathymetry 11 1152-1159 792-799 in 0.063 seconds
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1157/795) with protocol version 2 to fd 9
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1157/794) with protocol version 2 to fd 14
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1158/794) with protocol version 2 to fd 13
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1158/795) with protocol version 2 to fd 12
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1157/796) with protocol version 2 to fd 11
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Sending render cmd(3 bathymetry 11/1158/796) with protocol version 2 to fd 10
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Failed to read cmd on fd 10
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Connection 1, fd 10 closed, now 5 left
Mar 21 16:27:37 Archimidis renderd[2074]: DEBUG: Failed to read cmd on fd 12

Last edited by lepipasd (2016-03-21 15:42:29)

Offline

Board footer

Powered by FluxBB