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

Abhay abhay.menon at gmail.com
Wed Apr 22 23:31:37 EDT 2009


On Thu, Apr 23, 2009 at 4:07 AM, Roger André <randre at gmail.com> wrote:

> 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
>>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>

Hi Roger,
I donot think there is way around in the ogr2ogr to create buffer that I
know of.

Instead you will need to write a code in C++ or python to do the same.
Rgds.
Abhay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090423/0663f9cb/attachment-0001.html


More information about the gdal-dev mailing list