[gdal-dev] change attribute type of OSM data

maning sambale emmanuel.sambale at gmail.com
Tue Jul 19 07:07:17 PDT 2016


I see, I'm using 1.11.  Will try the sql CAST way.  Thanks!

On Tue, Jul 19, 2016 at 1:24 PM, Even Rouault
<even.rouault at spatialys.com> wrote:
> Le mardi 19 juillet 2016 09:47:33, Even Rouault a écrit :
>> Le mardi 19 juillet 2016 06:19:54, maning sambale a écrit :
>> > Hi Even,
>> >
>> > Here's mi osmconf.ini:
>> > https://gist.github.com/anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f
>>
>> Works for me. Looking at history, I see this capability was added in GDAL
>> 2.0 so I presume you use an older version.
>
> This was added together with the capability of creating computed fields with
> SQL expressions.
>
> But you can change the type of columns with CAST(field_name AS type_name) in
> your -sql statement
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com



-- 
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
https://epsg4253.wordpress.com/
http://twitter.com/maningsambale
------------------------------------------------------


More information about the gdal-dev mailing list