Re: [gdal-dev] ogr python: copying features from postgis to postgis

2016-11-27 Thread Even Rouault
On samedi 26 novembre 2016 21:18:50 CET Stefan Ziegler wrote: > Hi > > I'm trying to copy some features from one postgis table to another postgis > table: > > dstLayer.StartTransaction() > > srcFeature = srcLayer.GetNextFeature() > while srcFeature is not None: > srcLayerDefn = srcLayer.GetL

[gdal-dev] Reading KML tree using LIBKML driver

2016-11-27 Thread Matthias Meulien
I am trying to recover the tree structure of KML folders while reading  a dataset created from a .kml  or a .kmz file with the LIBKML driver. My idea is to loop through the dataset layers and maintain a mapping from kmldom::ElementPtr to  layers std::map parents;   Each layer, say l1, is cas

Re: [gdal-dev] Question: making a raster - gdal_rasterize directly from Geodatabase file

2016-11-27 Thread Nicolas Cadieux
Hi, If you go from a vector to a raster format, you will loose all the information. Best to save to SpatialLite database. It a single file. > Le 27 nov. 2016 à 08:06, Kevin a écrit : > > I wish to make a raster directly from a very large ESRI Geodatabase (GDB) > file. > > The layer (State_

Re: [gdal-dev] laundering of field's names in GDAL

2016-11-27 Thread jratike80
I believe that the answer in gis.stackexchange http://gis.stackexchange.com/questions/219177/can-colon-character-be-used-in-shapefile-field-names is correct. The dBase III format that is used in shapefiles for storing attributes does not accept colon in field names, and GDAL does not want to write

[gdal-dev] Question: making a raster - gdal_rasterize directly from Geodatabase file

2016-11-27 Thread Kevin
I wish to make a raster directly from a very large ESRI Geodatabase (GDB) file. The layer (State_ROAD) included in the GDB file is large: if I export the layer into Shapefile or MapInfo Tab format, the output file size exceeds 2GB limit. So I am thinking if there is a way making a raster (road1.ti

[gdal-dev] laundering of field's names in GDAL

2016-11-27 Thread Djordje Spasic
I have been puzzled with something for the last couple of days: I am converting an .osm file to .shp files with ogr2ogr.exe. This specific line in osmconf.ini file: # comment to avoid laundering of keys ( ':' turned into '_' ) attribute_name_laundering=yes determines whether colons in names of t