Seems that when I include the code from say OGR_G_ExportToJSon in my own code, I end up with lots of unresolved link errors. I guess that the GDAL_i.lib does not expose the functions that I need to use OGRGeoJSONWriteFeature. Maybe I am just missing something simple???
Anthony -----Original Message----- From: Mateusz Loskot [mailto:[email protected]] Sent: Tuesday, July 09, 2013 2:17 PM To: Baker, Anthony W Cc: [email protected] Subject: Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON On 9 July 2013 18:58, Baker, Anthony W <[email protected]> wrote: > Thank you for your response! > > Is it possible to use the json_object directly with something like > json_object *json = OGRGeoJSONWriteFeature(poFeature); > Then just convert that to string? I'm sure it is. You've got the source, you can include whatever GDAL headers you like and use whatever is exposed from the binary. > I seem to get an error in json_object.h when I try this method with "boolean > redefinition". You may need to apply some fixes for your compiler. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
