S-57 data

From GRASS-Wiki
Revision as of 05:40, 22 April 2008 by ⚠️HamishBowman (talk | contribs) (s52 stuff)
Jump to navigation Jump to search

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

  • Interface to display imported S-57 data using S-52's coloring and
  • With the OpenEV plugin (functional)
  • As a QGIS plugin (wishlist)


libS52

  • GPL library
  • housed in OpenEV CVS as contrib/S52/

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