[gdal-dev] change attribute type of OSM data
    Even Rouault 
    even.rouault at spatialys.com
       
    Mon Jul 18 07:07:58 PDT 2016
    
    
  
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 OGR fields
> attributes=name,building,height,ele,start_date,
> 
> height_type=Real
> ele_type=Real
> start_date_type=DateTime
> 
> Not sure if I'm doing it correctly
This looks good, but you can check for sure by looking at the attribute types 
returned with ogrinfo -so -al your.osm
-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
    
    
More information about the gdal-dev
mailing list