FW: Re: [Gdal-dev] Save a map from a OGRDataSource

Frank Warmerdam warmerdam at pobox.com
Tue Sep 27 12:59:11 EDT 2005


On 9/27/05, Josepo Urrutia <find_all at hotmail.com> wrote:
>
>
> My idea is to use S-57 format to save a map that I've in a
> OGRDataSource class.

Josepo,

So you have data in an OGRDataSource from some format (not necessarily
S-57) and you want to save it out to S-57 format?  That is a very messy
and unsafe thing to do because OGR's S-57 writing support is very
dependent on having the exact S-57 data model already preprepared.

If you want to see how to use OGR to write data out to a format OGR
supports for creation, look through ogr2ogr.cpp, or better yet read through
the "Write to OGR" part of the API tutorial at:

  http://www.gdal.org/ogr/ogr_apitut.html

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 Gdal-dev mailing list