Re: [gdal-dev] GeoPDF

2016-06-16 Thread Frank Broniewski
Hello George, wow, thank you for your very helpful answer! I must admit I am more of a trial-and-error person and when I saw all the docs and the sheer amount of content I just went ahead and tried something. But obviously there's a lot more to learn about on how to make a GeoPDF. I'll go thro

Re: [gdal-dev] SetSpatialFilter and Spatial Index

2016-06-16 Thread Ari Jolma
The Shapefile driver supports spatial index from .qix file (http://gdal.org/drv_shapefile.html), so assumably the spatial filter set by SetSpatialFilter takes advantage of it. Best regards, Ari 16.06.2016, 23:04, Tomer kirjoitti: Or maybe the question need to be if I set geometry as spatial

Re: [gdal-dev] GeoPDF

2016-06-16 Thread Frank Broniewski
I just have to agree :) If I read the qgis homepage correctly, 2.16 is due on the beginning of july (2016-07-08) Am 17.06.2016 um 00:02 schrieb Luca Delucchi: On 16 June 2016 at 13:32, Nyall Dawson wrote: I can't help with this, but you may be interested to know that QGIS 2.16 will natively

Re: [gdal-dev] GeoPDF

2016-06-16 Thread Luca Delucchi
On 16 June 2016 at 13:32, Nyall Dawson wrote: > > > I can't help with this, but you may be interested to know that QGIS 2.16 > will natively georeference composer PDF outputs. This feature was added > during the recent hackfest in Girona. > this is cool, do you know if it export the vector as vec

Re: [gdal-dev] SetSpatialFilter and Spatial Index

2016-06-16 Thread Tomer
Or maybe the question need to be if I set geometry as spatial filter using the "SetSpatialFilter" function and then I use the function "GetNextFeature" on a layer with spatial index, for instance shp file with qix. It will consider the spatial index when fetch the next available feature from this l

[gdal-dev] gdalbuildvrt for multiband files?

2016-06-16 Thread Jonathan Greenberg
Folks: Is there any trick to "stacking" multiple *multiband* files via gdalbuildvrt for further use with e.g. gdal_translate? Basically, this restriction using "separate": "In that case, only the first band of each dataset will be placed into a new band." Is causing problems -- I want to have A

Re: [gdal-dev] How to escape "desc" with OGR SQL?

2016-06-16 Thread Jukka Rahkonen
Even Rouault spatialys.com> writes: > On Windows shell I suppose ? Perhaps with \" (not tried) > > ogrinfo -sql "select attr_2 as \"desc\" from test" test.shp This really works for me on Windows. > On Linux bash the following - using single quote for the full SQL - also works > (not sure o

Re: [gdal-dev] How to escape "desc" with OGR SQL?

2016-06-16 Thread Even Rouault
Le jeudi 16 juin 2016 19:18:16, Jukka Rahkonen a écrit : > Hi, > > I had a need to convert some data into GPX format and populate the GPX > attributes "name" and "desc". Name was not any problem as can be tested > with ogrinfo -sql "select attr_1 as name from test" test.shp > > However, "desc" i

[gdal-dev] How to escape "desc" with OGR SQL?

2016-06-16 Thread Jukka Rahkonen
Hi, I had a need to convert some data into GPX format and populate the GPX attributes "name" and "desc". Name was not any problem as can be tested with ogrinfo -sql "select attr_1 as name from test" test.shp However, "desc" is a SQL keyword for descending order and all my trials with OGR SQL fai

Re: [gdal-dev] GeoPDF

2016-06-16 Thread George Demmy
On Thu, Jun 16, 2016 at 7:27 AM, Frank Broniewski wrote: > Ok, finally l found some time to investigate into making GeoPDF files from > QGIS map composer PDFs. I've created a small python script to aid me in the > creation of the GeoPDF (https://github.com/frankbroniewski/GeoPDF). It > basically t

Re: [gdal-dev] GeoPDF

2016-06-16 Thread Nyall Dawson
On 16 Jun 2016 21:27, "Frank Broniewski" wrote: > > Ok, finally l found some time to investigate into making GeoPDF files from QGIS map composer PDFs. I've created a small python script to aid me in the creation of the GeoPDF (https://github.com/frankbroniewski/GeoPDF). It basically takes paramete

Re: [gdal-dev] GeoPDF

2016-06-16 Thread Frank Broniewski
Ok, finally l found some time to investigate into making GeoPDF files from QGIS map composer PDFs. I've created a small python script to aid me in the creation of the GeoPDF (https://github.com/frankbroniewski/GeoPDF). It basically takes parameters from QGIS (map position in the page, map exten

[gdal-dev] Create standalone PAM datasets?

2016-06-16 Thread jramm
Does GDAL offer any functionality (in the python bindings) to create a PAM dataset (.aux.xml file) without a 'main' dataset attached? This is a useful metadata container that we would like to use for other formats (e.g. non spatial CSV file, which might share the same custom metadata as a geotiff)