S-57 data: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
Line 35: Line 35:


* GPL library
* GPL library
* housed in OpenEV CVS as contrib/S52/
* housed in [http://openev.sourceforge.net/ OpenEV] CVS as [http://openev.cvs.sourceforge.net/openev/contrib/S52/ contrib/S52/]
 
 


==== How to build ====
==== How to build ====


* Get source code from http://openev.cvs.sourceforge.net/openev/contrib/S52/
* [http://sourceforge.net/cvs/?group_id=6087 Get source code from CVS]
* Install build dependencies
* Install build dependencies
: Install OpenGL and X11 -dev packages build dependencies. (X11/Xlib.h and GL/gl.h)
: Install OpenGL and X11 -dev packages build dependencies. (X11/Xlib.h and GL/gl.h)

Revision as of 05:49, 22 April 2008

More to come

Basics

Obtaining data

Worldwide

  • ...

Cananda

  • ...

USA

  • Free ENCs for the USA from NOAA
(see the Gpsdrive page above)


Accessing S-52 symbology

S-57 is the data format. The S-52 standard contains the standardized coloring and symbology for electronic navigation charts. We want to view the S-57 data through the lens of the S-52 rules. Some ideas for that:

  • GRASS interface: (wishlist prototype) display imported S-57 data (v.in.ogr or v.external) using S-52's coloring and layer-order info. Some environment will be information like lighting level and hull depth (start at 0) will be needed
  • View with the OpenEV plugin (functional)
  • Create the dataviewer as a QGIS plugin (wishlist user app)


libS52


How to build

Install OpenGL and X11 -dev packages build dependencies. (X11/Xlib.h and GL/gl.h)
PROJ.4 for proj_api.h?
  • Build it:
make  # for s52glx simple test program
make default  # for libS52

Run simple s52glx test program

  • Edit s52test.conf with the full path to your ENC datafile (*.000 file)
  • Run it with ./s52glx and you should see a new window with all layers rendered

OpenEV S52 plugin

  • Copy libS52.so to GDAL's lib directory
  • Set environment variables
export S57_CSV=/usr/share/gdal
export OGR_S57_OPTIONS="LNAM_REFS:ON,UPDATES:ON,\
SPLIT_MULTIPOINT:ON,PRESERVE_EMPTY_NUMBERS:ON,\
RETURN_LINKAGES:ON"
  • test:

openev/openev/gvtest -ogr=../../gpsdrive/ENC_ROOT/US3NY01M/US3NY01M.000

  -OR-

openev/contrib/S52/s52testdyn (s52test.conf will need ENC path ajusted)

Testing

  • s52glxsimple
edit S52/s52test.conf with the full path to your downloaded ENC dataset (the .000 file)
  • OpenEV plugin