Re: [gdal-dev] change attribute type of OSM data

2016-07-18 Thread maning sambale
Hi Even, Here's mi osmconf.ini: https://gist.github.com/anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f Converting to shapefile: ogr2ogr -f "ESRI Shapefile" -overwrite labuildings.shp california-latest.osm.pbf -spat -118.952 32.75 -117.646 34.8233 --config OSM_CONFIG_FILE osmconf.ini -progress -sql 's

Re: [gdal-dev] Unable to read in GML file via OGRINFO / OGR2OGR (attempt 2)

2016-07-18 Thread Even Rouault
> That would be helpful to confirm. Based on sample file provided off-line, turned out to be a hack specific to CityGML that was far from being universal. Fixed per https://trac.osgeo.org/gdal/ticket/6597 -- Spatialys - Geospatial professional services http://www.spatialys.com _

Re: [gdal-dev] Fwd: Problem with gdal.Rasterize utility : argument GDALDatasetShadow in wrapper_GDALRasterizeDestName

2016-07-18 Thread François ALLAIN
Here is how I did finally : INPUTS: mask_geojson = [feature['geometry'] for feature in geojson['features']] filelike_in # my Geotiff file in-Memory (cStringIO.StringIO) # https://lists.osgeo.org/pipermail/gdal-dev/2010-May/024723.html # Create in-memory file and initialize it

Re: [gdal-dev] Unable to read in GML file via OGRINFO / OGR2OGR (attempt 2)

2016-07-18 Thread Even Rouault
> > I've tried adding -dim 2 to ogr2ogr, but that doesn't seem to work. Is > there any way to force ogr to treat these objects as 2D? Forcing object > type isn't possible, unfortunately, since the GML file contains mixed > types (linestrings, polygons, even curved polygons). No, there must be som

Re: [gdal-dev] change attribute type of OSM data

2016-07-18 Thread Even Rouault
Le lundi 18 juillet 2016 09:22:52, maning sambale a écrit : > Hi, > > I found this section of the code osmconf.ini: > > # type of attribute 'foo' can be changed with something like > #foo_type=Integer/Real/String/DateTime > > So in my configuration I have the following: > > # keys to report as

[gdal-dev] change attribute type of OSM data

2016-07-18 Thread maning sambale
Hi, I found this section of the code osmconf.ini: # type of attribute 'foo' can be changed with something like #foo_type=Integer/Real/String/DateTime So in my configuration I have the following: # keys to report as OGR fields attributes=name,building,height,ele,start_date, height_type=Real ele