Re: [gdal-dev] ogr2ogr.py

2014-06-26 Thread Chaitanya kumar CH
Mike, Thanks for the update. But, I have to mention that the python scripts are primarily to serve as examples. You can submit a ticket (bug report) on gdal trac and attach a diff patch along with the description. http://trac.osgeo.org/gdal/#BugTracking One of the committers should pick it up.

[gdal-dev] ogr2ogr.py

2014-06-26 Thread Mike Saunt
Hi ​ I've updated ogr2ogr.py with a really small change which is to accept the -dialect parameter that is now available. I'm wondering how / what the process is for submitting back. ​ ​If someone could let me know or pointing me

Re: [gdal-dev] OT: openev(2) alternative?

2014-06-26 Thread Paolo Cavallini
Il 26/06/2014 22:11, Even Rouault ha scritto: > Le vendredi 20 juin 2014 14:56:44, Vincent Schut a écrit : >> I just need something that is good in displaying (browsing, zooming) >> multi-band raster files. Anybody knows a viable alternative? Please have a look to QGIS 2.4, to be released today:

Re: [gdal-dev] gdal_calc.py not saving correct statistics (min/max) to new rasters in some cases?

2014-06-26 Thread Patrick Sunter
No comments on the below anyone? It does seem like a genuine bug that gdal_calc.py can produce output with statistics not up to date? Should I create an issue in the issue tracker? -- Patrick. On Thu, Jun 19, 2014 at 2:45 PM, Patrick Sunter wrote: > Hi there, > > I've been using gdal_calc.py

Re: [gdal-dev] ArcGIS RestAPI JSON Polygons

2014-06-26 Thread Even Rouault
Le jeudi 26 juin 2014 23:21:58, Jeremy Palmer a écrit : > > Looking at the ogresrijsonreader.cpp code I can see I assumed that a > > esriPolygon was just a OGC Polygon, so with outer ring first and then > > inner rings. Fixing the code to support multi polygons should basically > > be a matter of c

Re: [gdal-dev] How open a subset dataset with python

2014-06-26 Thread Even Rouault
Le jeudi 19 juin 2014 22:05:13, Andrea Peri a écrit : > Hi, resolved the quest. > > the command is > layer = ds.ExecuteSQL(sqlString,None,"SQLITE") Andrea, You could also directly open with ogr.Open(file) (no need to explicitely request the driver). And if the driver is indeed SQLite, you don't

Re: [gdal-dev] ArcGIS RestAPI JSON Polygons

2014-06-26 Thread Jeremy Palmer
> Looking at the ogresrijsonreader.cpp code I can see I assumed that a > esriPolygon was just a OGC Polygon, so with outer ring first and then inner > rings. Fixing the code to support multi polygons should basically be a matter > of calling OGRGeometryFactory::organizePolygons. Thanks Even. Any

Re: [gdal-dev] MSG Driver: two memory leaks

2014-06-26 Thread Even Rouault
Le jeudi 26 juin 2014 16:14:03, Simon Richard Proud a écrit : > Hi, > Have you noticed any other memory leaks in the MSG driver? We have seen > some huge memory uses when working with the visible MSG channels > (converting from DN to Reflectance) but have not been able to track down > where the mem

Re: [gdal-dev] ArcGIS RestAPI JSON Polygons

2014-06-26 Thread Even Rouault
Le lundi 23 juin 2014 03:32:32, Jeremy Palmer a écrit : > I'm querying an ArcGIS service obtain polygon data, however the service > seems to define Island multi-polygons objects as single polygons with > multiple exterior rings. This creates invalid OGC geometries and is > causing processing proble

Re: [gdal-dev] Reproject raster map in buffer on-the-fly

2014-06-26 Thread Even Rouault
Le lundi 23 juin 2014 11:49:58, Oliver Eichler a écrit : > Hi > > I would like to read a region of a raster map and re-project the resulting > image on-the-fly before it is displayed. I had a look at the GDAL Warp API > tutorial. And I stumbled across GDALWarpRegionToBuffer() while reading the > h

Re: [gdal-dev] gdal contour as transparent png/tif or svg/eps/pdf

2014-06-26 Thread Even Rouault
Le samedi 21 juin 2014 18:10:38, Robert Grah a écrit : > Hey there, > > im trying to get a contour out of an GeoTiff file as transparent PNG or > TIFF or even better as PDF/SVG or EPS file in my C++ program. I found > gdal_contour but was not able to get PDF driver running. > How can I install mor

Re: [gdal-dev] OT: openev(2) alternative?

2014-06-26 Thread Even Rouault
Le vendredi 20 juin 2014 14:56:44, Vincent Schut a écrit : > Hi list, > > this is a bit off topic, but I guess I'll have the biggest chance for an > answer on this ml... > > Untill now, I always succeeded in (re)building openev2, but after some > recent system upgrades, it fails... I've used open

Re: [gdal-dev] PAM XSD or DTD

2014-06-26 Thread Even Rouault
Le jeudi 19 juin 2014 18:01:20, Gregory, Matthew a écrit : > Hi all, > > I'm trying to locate an XSD or DTD for the PAM .aux.xml files. Does such a > thing exist? It seems that there are slight variants of the tags allowed > that I'm seeing. > > Sorry if this has been answered before. My searc

Re: [gdal-dev] link not working

2014-06-26 Thread Even Rouault
Le jeudi 19 juin 2014 14:53:16, xavier lhomme a écrit : > The link ASpatial on the Geopackage page do not work > http://www.gdal.org/geopackage_aspatial.html Fix to install it pushed. > > best regards > xav -- Geospatial professional services http://even.rouault.free.fr/services.html __

Re: [gdal-dev] MSG Driver: two memory leaks

2014-06-26 Thread Christian Authmann
Hi, I haven't noticed any other leaks, but I haven't used the Reflectance Calculator, either. Should I stumble upon more leaks, I'll either report or fix them. If you want to know if the "memory usage" you noticed is just "usage" or an actual leak, valgrind ( http://valgrind.org/ ) is awesom

Re: [gdal-dev] MSG Driver: two memory leaks

2014-06-26 Thread Simon Richard Proud
Hi, Have you noticed any other memory leaks in the MSG driver? We have seen some huge memory uses when working with the visible MSG channels (converting from DN to Reflectance) but have not been able to track down where the memory is being used. Would be good to have a second opinion! All the b

Re: [gdal-dev] gdalinfo: fix metadata output

2014-06-26 Thread Christian Authmann
Hi, yes, I'm talking about metadata in a custom domain. I hacked up a driver to return additional metadata I want to use; since that metadata is driver specific I put it into a custom domain named after the driver. If you guessed MSG driver you'd be correct; but the SVN version doesn't retur

Re: [gdal-dev] gdalinfo: fix metadata output

2014-06-26 Thread Even Rouault
Christian, I guess you are talking about metadata in domains other than the default and IMAGE_STRUCTURE metadata domains ? With which driver did you experiment that issue ? Would you mind attaching your patch as an attachment to a ticket in Trac ( http://trac.osgeo.org/gdal/newticket ) ? For that

[gdal-dev] MSG Driver: two memory leaks

2014-06-26 Thread Christian Authmann
Hello, valgrind'ing my application revealed two memory leaks in msgdataset.cpp. a) MSGDataset::pszProjection shall always point to a valid string during the lifetime of the object; the old string needs to be released before getting a new one from exportToWkt(). b) A spatial reference is expo

[gdal-dev] gdalinfo: fix metadata output

2014-06-26 Thread Christian Authmann
Hello, I tried getting a driver to return some useful metadata from the files, but gdalinfo never displayed any of it. As it turns out, the culprit was gdalinfo. It will never report metadata from the bands, even if explicitely requested in the command line. So I set out to rewrite the metad