[gdal-dev] Is it possible to Buffer using ogr2ogr?
pcreso at pcreso.com
pcreso at pcreso.com
Wed Apr 22 17:25:12 EDT 2009
Yep.
In your ogr2ogr query string query try
"select buffer(area, nn.nn) as geom from table where...;"
PostGIS will buffer it before sending it to GDAL for export to shapefile.
Or if you are repeatedly doing this, create a view in PostGIS with the buffer, & select this with GDAL, whichever suits....
Brent Wood
--- On Thu, 4/23/09, Roger André <randre at gmail.com> wrote:
> From: Roger André <randre at gmail.com>
> Subject: [gdal-dev] Is it possible to Buffer using ogr2ogr?
> To: "gdal-dev" <gdal-dev at lists.osgeo.org>
> Date: Thursday, April 23, 2009, 4:59 AM
> Hi All,
>
> I'm trying to port some of my existing PostGIS based
> workflow to ogr utilities and shapefiles. Is it possible
> to buffer a feature that I've selected via the ogr2ogr
> "-where" clause? I'd like end up with a
> single, buffered feature in a stand-alone shapefile when
> I'm done.
>
>
> Thanks,
>
> Roger
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list