Re: [gdal-dev] help needed with pygdaltools library, documentation sparse

2023-10-11 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via gdal-dev
s affected by the following configuration option: DXF_HATCH_TOLERANCE=value: Determines the tolerance used when looking for the next component to add to the hatch boundary. (GDAL <= 2.2.x) Only line and polyline boundary paths are translated correctly. On 10/11/23 10:51, Catania, Luke A ER

Re: [gdal-dev] help needed with pygdaltools library, documentation sparse

2023-10-11 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via gdal-dev
...@maanmittauslaitos.fi>> Sent: Wednesday, October 11, 2023 2:12 AM To: Catania, Luke A ERDC-RDE-GRL-VA CIV mailto:luke.a.cata...@erdc.dren.mil>>; Scott mailto:pub...@postholer.com>>; gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> Subject: Re: [gdal-dev] help needed

Re: [gdal-dev] help needed with pygdaltools library, documentation sparse

2023-10-10 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via gdal-dev
/23 22:26, Catania, Luke A ERDC-RDE-GRL-VA CIV via gdal-dev wrote: > I am running simple code to convert dxf to gpkg and I get the error > below.  -am an trying to figure out how to add a bunch of options ( -f > GPKG -append -update --config DXF_ENCODING CP1252

[gdal-dev] help needed with pygdaltools library, documentation sparse

2023-10-10 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via gdal-dev
I am running simple code to convert dxf to gpkg and I get the error below. -am an trying to figure out how to add a bunch of options ( -f GPKG -append -update --config DXF_ENCODING CP1252 --config DXF_INCLUDE_RAW_CODE_VALUES TRUE --config DXF_TRANSLATE_ESCAPE_SEQUENCES FALSE --config

Re: [gdal-dev] Query regarding using gdalwarp with cutlineSQL

2020-07-31 Thread Luke
You need single quotes around your string literal: cutlineWhere="name = 'first'" -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] Default options for a format

2018-12-19 Thread Luke Roth
=LZW, INTERLEAVE=BAND, etc.) this way? I've set up batch scripts that call the command line utilities that I use the most with my standard set of options, but I was wondering if there was a more general way to handle this that other people have figured out. Thanks! Luke

Re: [gdal-dev] cog samples

2018-01-20 Thread Luke
Sorry, that should be http://sentinel-s2-l1c.s3-website.eu-central-1.amazonaws.com/#tiles/30/T/XT/2017/1/2/0/ -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] cog samples

2018-01-19 Thread Luke
Possibly from http://sentinel-s2-l1c.s3-website.eu-central-1.amazonaws.com/#products/2017/1/2/S2A_MSIL1C_20170102T111442_N0204_R137_T30TXT_20170102T111441/ -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing

Re: [gdal-dev] Time in GDAL

2017-10-15 Thread Luke
Just a comment from an end user: perhaps ACQUISITIONDATETIME could store start and end times using ISO 8601 intervals (forward slash separator) - start date time/end date time Luke -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html

Re: [gdal-dev] vector VRT: Warning 1: Line 2: Attribute value should be single or double quoted.

2015-09-03 Thread Luke
VRT is an XML file, and to be valid XML all attribute values in the VRT need to be quoted. e.g In your VRT, your relativeToVRT attribute value is not quoted. Change to Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/vector-VRT-Warning-1-Line-2-Attribute-value

Re: [gdal-dev] Piping VRT to gdal_translate with /vsistdout

2015-08-06 Thread Luke
https://trac.osgeo.org/gdal/ticket/6061 Thanks Even Regards Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Piping-VRT-to-gdal-translate-with-vsistdout-tp5218386p5218872.html Sent from the GDAL - Dev mailing list archive at Nabble.com

[gdal-dev] Piping VRT to gdal_translate with /vsistdout

2015-08-03 Thread Luke
and running gdalinfo/gdal_translate on that file works as expected. Is there a way to pipe VRT between GDAL utilities? Regards Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Piping-VRT-to-gdal-translate-with-vsistdout-tp5218386.html Sent from the GDAL - Dev mailing

Re: [gdal-dev] Piping VRT to gdal_translate with /vsistdout

2015-08-03 Thread Luke
Luke wrote ... Windows generates the following error (command was run in cmd.exe): ERROR 1: Parse error at EOF, not all elements have been closed, starting with Co ... The linux error is similar with ColorInte instead of Co. Command was run in default bash shell using gnome terminal. Ahhh

Re: [gdal-dev] Merge all features in polygon shapefile with gdal

2015-07-06 Thread Luke
Steven, Remove the group by and it will ignore the attributes. ogr2ogr output.shp input.shp -dialect sqlite -sql SELECT ST_Union(geometry) FROM input Regards Luke Steven Lutz wrote ... this is what I've come up with: |ogr2ogr output.shp input.shp -dialect sqlite -sql SELECT

Re: [gdal-dev] ImportError: numpy.core.multiarray failed to import

2015-06-05 Thread Luke
Sounds like you have a version mismatch. For example, you'll get that message if you have numpy 1.7x installed and you installed the gdal binaries and bindings from Christoph Gohlke (http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal) which are built against numpy 1.9x If you have numpy 1.7x

Re: [gdal-dev] why gdaldem is not working?

2014-08-23 Thread Luke
You have a typo in your command - the 1st argument should be color-relief not color-relif. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-why-gdaldem-is-not-working-tp5157949p5157984.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] Issues building ECW/JP2ECW driver as a plugin on Ubuntu

2014-08-20 Thread Luke
on? Regards Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Issues-building-ECW-JP2ECW-driver-as-a-plugin-on-Ubuntu-tp5156322p5157505.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev mailing

Re: [gdal-dev] Problems packaging with py2exe

2014-08-14 Thread Luke
output file instead of a folder). https://github.com/pyinstaller/pyinstaller https://pypi.python.org/pypi/PyInstaller/2.1 Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Problems-packaging-with-py2exe-tp5156399p5156494.html Sent from the GDAL - Dev mailing

[gdal-dev] Issues building ECW/JP2ECW driver as a plugin on Ubuntu

2014-08-13 Thread Luke Pinner
gdal itself from source with python and ECW support, but I'd like to easily build ECW support as a plugin so I can just rely on my package manager to keep everything else up to date. Can anybody provide some guidance on how to compile the ECW/JP2ECW drivers as a plugin on Linux? Regards Luke

Re: [gdal-dev] Issues building ECW/JP2ECW driver as a plugin on Ubuntu

2014-08-13 Thread Luke
Andre Joost wrote I have written down my workflow here: http://gis.stackexchange.com/questions/94870/unable-to-install-ecw-support-on-lubuntu-14-04 Andre, doing this, you are building the plugin for gdal 1.11 with old gdal 1.10 code, which is not optimal as there were quite a few changes to

Re: [gdal-dev] Issues building ECW/JP2ECW driver as a plugin on Ubuntu

2014-08-13 Thread Luke
Luke wrote ...(in fact python segfaults immediately for me when trying to import gdal)... When using the plugin built as per Andre's workflow. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Issues-building-ECW-JP2ECW-driver-as-a-plugin-on-Ubuntu

Re: [gdal-dev] feeding input files into gdal_merge.py

2014-07-09 Thread Luke
Try: import glob tifs=glob.glob('D:/*.tif') subprocess.call([sys.executable,gmerge,'-o','C:/r.tif','-of','GTiff']+tifs) Luke -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-feeding-input-files-into-gdal-merge-py-tp5150332p5150377.html Sent from the GDAL - Dev

Re: [gdal-dev] Raster to vector conversions....

2014-07-01 Thread Luke
There is a QGIS solution on GIS Stackexchange - http://gis.stackexchange.com/a/86186/2856 Luke Wilbur60 wrote I am trying to find a method of converting a raster grid to a polygon vector that does NOT aggregate adjacent pixels that share the same Z value. In other words, I would like

Re: [gdal-dev] Fast Pixel Access

2014-02-03 Thread Luke Roth
each of a large number of datasets and setting this option made it run about 3 times faster. Luke On Sun, Feb 2, 2014 at 2:12 PM, Jukka Rahkonen jukka.rahko...@mmmtike.fiwrote: Hi, I made a few tests and here comes my conclusions. Hypothesis is that someone wants to make a DEM query service

Re: [gdal-dev] newb with gdal vrt file

2013-12-19 Thread Luke
Your paths are likely wrong. According to the paths in that VRT, the JP2s should be located in the same directory as the VRT file. If they aren't, you need to ensure the list of JP2s (/mnt/tx/utmzone15.lst) used to create the VRT contains complete absolute or relative paths to each JP2. Luke

Re: [gdal-dev] How to open Erdas Imagine .ige (Large Raster Spill File) Format with gdal

2013-12-12 Thread Luke
Pass the *.img filename to GDALOpen. Don't try to open the *.ige file directly. The ERDAS Imagine (HFA) driver will access the spill file implicitly. Luke Jun Xiong wrote Hi All: I have a Erdas .ige file (=100GB) which was generated by gdal utility gdal_merge.py, then I want to use

Re: [gdal-dev] How to use gdal_rasterize to create a LZW compressed Tiff

2013-11-27 Thread Luke
See the documentation - http://www.gdal.org/gdal_rasterize.html The syntax should be -co COMPRESS=LZW Regards Luke gis.postgraduate wrote I want to use gdal_rasterize for generating Tiff from shp. Usually the result is big, so I try to compress it. Then I come to use the LZW compress option

Re: [gdal-dev] How to implement tile read / write to gdal supported format file?

2013-11-18 Thread Luke
You could do something like the following: (code modified from the gdal_calculations library - http://code.google.com/p/gdal-calculations) from osgeo import gdal class Block(object): def __init__(self, dataset, band, xoff, yoff, xsize, ysize): self.xoff = xoff self.yoff =

Re: [gdal-dev] Working with NTF files [SEC=UNCLASSIFIED]

2013-07-31 Thread Pinner, Luke
%TEMP% is the Windows environment variable pointing to the temp directory. For Unix/linux: ,--%--- # set variable export GDAL_PAM_PROXY_DIR=/tmp # confirm echo $GDAL_PAM_PROXY_DIR /tmp `---%-- Luke From: Nikos Alexandris [mailto:n...@nikosalexandris.net] Sent: Wednesday, 31 July

[gdal-dev] GDAL_API_PROXY and deregistering drivers (python/win32) [SEC=UNCLASSIFIED]

2013-05-23 Thread Pinner, Luke
. Is there a workaround? Regards, Luke Pinner If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver of any confidentiality, privilege

Re: [gdal-dev] GDAL_API_PROXY and deregistering drivers (python/win32) [SEC=UNCLASSIFIED]

2013-05-23 Thread Pinner, Luke
= do_some_operation(ds) #Some crash on I/O break except: os.environ['GDAL_SKIP']=d #skip crashing driver or reset env Luke If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent

Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector [SEC=UNCLASSIFIED]

2012-10-17 Thread Pinner, Luke
Try gdalwarp (http://www.gdal.org/gdalwarp.html) with the -cutline argument. gdalwarp -of envi -cutline shapefile.shp multibandenvi.dat croppedoutput.dat Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter Willis

Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector [SEC=UNCLASSIFIED]

2012-10-17 Thread Pinner, Luke
Perhaps something like for i in {1..49}; do gdal_rasterize -burn -999 -b $i mask.shp 49bandenvi.dat; done Luke From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter Willis Sent: Thursday, 18 October 2012 9:43 AM To: gdal-dev@lists.osgeo.org

[gdal-dev] Go bindings have moved

2012-10-13 Thread Luke Roth
The GDAL bindings for Go have moved to github.com/lukeroth/gdal to simplify usage with Go's dependency management. You should now be able to 'import github.com/lukeroth/gdal without having to rename any directories or packages. Thanks, Luke ___ gdal

Re: [gdal-dev] [go-nuts] GDAL Bindings for Go

2012-10-04 Thread Luke Roth
Thanks, I just noticed that when I pulled the code to a new machine. I've renamed the repository to https://github.com/lukeroth/gdal_go to avoid the problem. Luke On Thu, Oct 4, 2012 at 12:57 AM, minux minux...@gmail.com wrote: On Oct 4, 2012 2:46 AM, Luke Roth roth.l...@gmail.com wrote: set

[gdal-dev] GDAL Bindings for Go

2012-10-03 Thread Luke Roth
useful! Luke ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] GDAL Bindings for Go

2012-10-03 Thread Luke Roth
Trac pages, although I might wait until I've had a chance to fill in some of the missing areas and add to the (currently pretty minimal) documentation. Luke On Wed, Oct 3, 2012 at 6:02 PM, Even Rouault even.roua...@mines-paris.org wrote: Le mercredi 03 octobre 2012 20:46:10, Luke Roth a écrit

Re: [gdal-dev] GDAL Python bindings disables setting a non-zero exit code

2012-09-26 Thread Luke Pinner
is incorrect ) echo ERROR LEVEL=%ERRORLEVEL% Interestingly, one of the users of my code who originally reported the issue to me found that that ERRORLEVEL is set correctly in Windows XP. I'll file a ticket in TRAC. Luke On 27 September 2012 03:12, Jason Roberts wrote: Luke, Interesting

Re: [gdal-dev] GDAL Python bindings disables setting a non-zero exit code

2012-09-25 Thread Luke Pinner
Pro and Server 2008 R2 64bit with GDAL 1.9.1 MSVC2008 (Win32) with 32bit python 2.6.5 and GDAL 1.9.1 MSVC2008 (Win64) with 64bit python 2.6.6. I couldn't find a ticket reporting the issue in trac. Is this a known issue? Is it worthy of a ticket? Are there any known workarounds? Regards Luke

Re: [gdal-dev] Batch conversion ECW to TIFF [SEC=UNCLASSIFIED]

2012-07-24 Thread Pinner, Luke
(assumes bash shell) for f in *.ecw;do gdal_translate $f ${f%%.*}.tif;done Luke If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver

RE: [gdal-dev] adf to ascii X,Y,Z [SEC=UNCLASSIFIED]

2012-04-04 Thread Pinner, Luke
Something like: gdal_translate –of xyz ingrid outfile.txt I don’t think MapInfo grids (*.mig) are supported, I couldn’t see that format listed in http://www.gdal.org/formats_list.html Luke From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf

Re: [gdal-dev] OGR Geometry methods

2011-07-12 Thread Luke Peterson
...@gmail.com To: mariusjigm...@hotmail.com - Luke Peterson - sent via mobile device - On Jul 11, 2011 11:00 PM, Marius Jigmond mariusjigm...@hotmail.com wrote: After some more investigation that is likely NOT the issue. I have an ExecuteSQL statement which selects a certain polygon based

[gdal-dev] Append a shapefile to a postgis table using the GDAL/OGR Python interface

2011-07-06 Thread Luke Peterson
, Luke On Fri, Jul 23, 2010 at 7:05 PM, Esben Taudorf eta at le34.dk wrote: Hi everybody I just started using the GDAL/OGR CSharp interface in Visual Studio and it works great. I am trying to append a shapefile to a postgis table. This I can do with the following lines in ogr2ogr: Fist

Re: [gdal-dev] Append a shapefile to a postgis table using the GDAL/OGR Python interface

2011-07-06 Thread Luke Peterson
On Wed, Jul 6, 2011 at 3:56 PM, Even Rouault even.roua...@mines-paris.org wrote: Le mercredi 06 juillet 2011 21:46:58, Luke Peterson a écrit : What CopyLayer() is supposed to do (and the code I've written does) is create a new layer based on an existing layer, copies a field set from

Re: [gdal-dev] Append a shapefile to a postgis table using the GDAL/OGR Python interface

2011-07-06 Thread Luke Peterson
? Is there a discussion thread I could read to catch up on this? - Luke Peterson ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

RE: [gdal-dev] Trouble with python+gdal+sqlite+utf-8 [SEC=UNCLASSIFIED]

2011-04-17 Thread Pinner, Luke
newFeature.SetField('name', uCalle Garbí, 2.encode('utf-8')) Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Iván Sánchez Ortega Sent: Monday, 18 April 2011 9:17 AM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev

RE: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? [SEC=UNCLASSIFIED]

2010-11-23 Thread Pinner, Luke
= feat.GetGeometryRef() print firstgeom.ExportToWkt() Luke From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Gregor at HostGIS Sent: Wednesday, 24 November 2010 1:50 PM To: Frank Warmerdam Cc: gdal-dev@lists.osgeo.org Subject

RE: [gdal-dev] ogr.UseExceptions() doesn't raise an exception ona non-existant dataset [SEC=UNCLASSIFIED]

2010-10-21 Thread Pinner, Luke
No problem, I do check the returned data source object. I just thought it inconsistent with GDAL. Thanks for the reply, Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Ari Jolma Sent: Thursday, 21 October 2010 5:00 PM

[gdal-dev] ogr.UseExceptions() doesn't raise an exception on a non-existant dataset [SEC=UNCLASSIFIED]

2010-10-20 Thread Pinner, Luke
raised by ogr ds=gdal.Open('foo') Traceback (most recent call last): File interactive input, line 1, in module RuntimeError: `foo' does not exist in the file system, and is not recognised as a supported dataset name. Regards Luke If you have received this transmission in error please notify us

RE: [gdal-dev] python bindings: strange behavior with layer

2010-07-21 Thread Pinner, Luke
(0) print 'Name from method: %s' % layer.GetName() return ds,layer; ds,layer = getLayer2('output/myshape.shp') print 'Name from main: %s' % layer.GetName() Luke -- If you have received this transmission in error please notify us immediately by return e-mail and delete all copies

RE: [gdal-dev] Modify an image color table?

2010-06-28 Thread Pinner, Luke
/LUT /ComplexSource /VRTRasterBand /VRTDataset Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Friday, 25 June 2010 10:13 PM To: Marco Stelluti Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal

RE: [gdal-dev] ESRI text format?

2010-05-30 Thread Pinner, Luke
It's the output from the ArcGIS Write Features to Text File (Samples) tool. The format is documented here: http://help.arcgis.com/EN/ArcGISDesktop/10.0/help/index.html#//00pv0 00z00.htm Even ESRI use Python to read/write it :) Apparently it's deprecated though... Luke -Original

[gdal-dev] NetCDF geotransform - pixel centre/upper-left issue

2010-04-05 Thread Pinner, Luke
( -1.4062500, -89.2584623) Upper Right ( 358.594, 89.258) Lower Right ( 358.594, -89.258) Center ( 178.5937500, 0.000) Band 1 Block=128x1 Type=Float32, ColorInterp=Undefined NoData Value=9.96920996838686905e+36 Regards Luke -- If you have received this transmission

RE: [gdal-dev] Real and raster coordinates

2010-03-24 Thread Pinner, Luke
The following module might help, use the mapToPixel() function. #---Imports try: from osgeo import gdal except ImportError: import gdal def mapToPixel(mx,my,gt): ''' Convert map to pixel coordinates @param mxInput map x coordinate (double) @param myInput map

[gdal-dev] ECW/JPEG2000 on Windows Vista/7

2010-02-15 Thread Pinner, Luke
). The VC71 versions of the dlls do not cause these crashes. If you have the precompiled Windows SDK version, these dlls can be found in: ECW SDK install dir\redistributable\vc71. I have no idea if there are any issues using the VC71 versions, but it works ok for me. Regards Luke -- If you have

RE: [gdal-dev] Convert raster from [0,360] to [-180,180]

2010-01-20 Thread Pinner, Luke
Something like the following perhaps? gdal_translate -projwin 0 90 180 -90 g0-360.tif g0-180.tif gdal_translate -projwin 180 90 360 -90 -a_ullr -180 90 0 -90 g0-360.tif g-180-0.tif gdal_merge[.py] -o g-180-180.tif g0-180.tif g-180-0.tif Regards Luke From: gdal

RE: [gdal-dev] GDAL DataType class

2009-10-28 Thread Pinner, Luke
=GdalDataType(nbits=32, Float=True, Complex=False) print gdt.DataTypeName Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Luca Fasano Sent: Thursday, 29 October 2009 3:19 AM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] GDAL

RE: [gdal-dev] GDAL DataType class

2009-10-28 Thread Pinner, Luke
if self.DataType is None: raise TypeError, 'No matching DataType found' gdt=GdalDataType(nbits=32, Float=True, Complex=False) print gdt.DataTypeName -Original Message- From: Pinner, Luke Sent: Thursday, 29 October 2009 10:21 AM To: 'Luca Fasano'; gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev

[gdal-dev] CEOS issues on WinXP

2009-09-21 Thread Pinner, Luke
) and same issue. Is anybody else experiencing this, is this a bug that I should log? Below is an example using gdalinfo on an ALOS PRISM image on WinXP linux. Testdata is from: http://www.ga.gov.au/remote-sensing/get-satellite-imagery-data/product-s amples.jsp Regards Luke Pinner Example

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

2009-04-22 Thread Pinner, Luke
Something like the following might get you started (note: limited testing and I'm no programmer :) #buffer.py import sys,os from osgeo import ogr def buffer(infile,outfile,buffdist): try: ds=ogr.Open(infile) drv=ds.GetDriver() if os.path.exists(outfile):