Re: S-57 --> ASCII converter

Frank Warmerdam <[email protected]>
Newsgroups gmane.comp.gis.freegis
Message-ID <[email protected]>
On 11/4/05, Jeff McKenna <[email protected]> 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, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.