S-57 data: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(s52 stuff)
Line 38: Line 38:
==== How to build ====
==== How to build ====


* Get source
* Get source code from http://openev.cvs.sourceforge.net/openev/contrib/S52/
* Install dependencies
* Install build dependencies
* make  # for s52glxsimple
: Install OpenGL and X11 -dev packages build dependencies. (X11/Xlib.h and GL/gl.h)
* make default  # for shared lib
: 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 <tt>libS52.so</tt> 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 ====
==== Testing ====

Revision as of 05:40, 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

  • 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