Use string/stream as OGR datasource?

1 message Options
Embed this post
Permalink
Ian Durkan

Use string/stream as OGR datasource?

Reply Threaded More More options
Print post
Permalink
Greetings,

I’m new to ogr/gdal, so perhaps this is a silly question-regardless:

Using the C/C++ APIs for OGR, is there a way to use either text in a string (char*, std::string, etc) or a C++ stream object as a data source for OGR?  I have GML documents in string format, and need to store the info they contain in a PostGIS db.  I realize I can store the GML into a file and then use the file as a data source but this seems relatively slow.

I’ve done some searching and turned up nothing so far.  Any help is appreciated.

Ian Durkan ( ian.durkan <at> gmail.com )


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev