[gdal-dev] Is it possible to Buffer using ogr2ogr?

Roger André randre at gmail.com
Wed Apr 22 18:37:58 EDT 2009


Hi Brent,

Unfortunately the data is already out of Postgres, so I don't have that
option anymore.  I was hoping there might be some way of invoking a geos
function in ogr2ogr.

Thanks though,

Roger
--

On Wed, Apr 22, 2009 at 2:25 PM, <pcreso at pcreso.com> wrote:

>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090422/9dadd15a/attachment.html


More information about the gdal-dev mailing list