Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-09 Thread Even Rouault
> > Anthony > > > > > -Original Message- > From: Mateusz Loskot [mailto:mate...@loskot.net] > Sent: Tuesday, July 09, 2013 2:17 PM > To: Baker, Anthony W > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON &g

Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-09 Thread Baker, Anthony W
-Original Message- From: Mateusz Loskot [mailto:mate...@loskot.net] Sent: Tuesday, July 09, 2013 2:17 PM To: Baker, Anthony W Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON On 9 July 2013 18:58, Baker, Anthony W wrote: > Thank you for your respo

Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-09 Thread Mateusz Loskot
On 9 July 2013 18:58, Baker, Anthony W 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 in

Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-09 Thread Baker, Anthony W
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 seem to get an error in json_object.h when I try this method with "boolean redefinition". Anthony _

Re: [gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-08 Thread Mateusz Loskot
On 8 July 2013 15:59, Baker, Anthony W wrote: > I would like to export a single feature to GeoJSON format and have > successfully used OGR_G_ExportToJson to convert the geometry to a character > string GeoJSON format. Is there a similar function for converting a feature > to a character string Ge

[gdal-dev] Feature (geometry and attributes) to GeoJSON

2013-07-08 Thread Baker, Anthony W
I would like to export a single feature to GeoJSON format and have successfully used OGR_G_ExportToJson to convert the geometry to a character string GeoJSON format. Is there a similar function for converting a feature to a character string GeoJSON format (including geometry and attribute infor