[Freegis-list] S-57 --> ASCII converter
Frank Warmerdam
warmerdam at pobox.com
Sat Nov 5 02:05:27 CET 2005
On 11/4/05, Jeff McKenna <jmckenna at dmsolutions.ca> wrote:
> Although i am not the developer, I do know this is possible using
> FWTools (http://fwtools.maptools.org/). Open the 'FWTools Shell' window
> and execute an ogr2ogr command
> (http://gdal.maptools.org/ogr/ogr2ogr.html) such as the following:
>
> $ ogr2ogr -f "CSV" test-dir mys57file.000
>
> This will convert your s-57 data into several csv files. Others may
> have more details for you on this, but this might get you started.
> There might be driver specific options that you can set also (s-57
> export http://www.gdal.org/ogr/drv_s57.html), but i haven't tried that
> for this format.
Jeff,
OGR should be able to do the trick though Andres might
need to do some manipulation to get the information
into a suitable format. The soundings are all in a layer
called SOUNDG so one approach would just be to
do:
ogrinfo abc.000 soundg > out.txt
This dumps all the sounding features into out.txt. Now
if you just want the sounding locations, some extra work
might be called for. Either a script parsing out.txt, or
write a Python script using OGR to dump out the points
in a desired format.
As noted, you can find the S-57 reader and other parts
of OGR pre-built in the FWTools package.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)