sql - MakePoint return empty result -
i have spatialite database longitutade , latitude colums text:
select latitude, longitude mytable1 limit 3; 54.475|9.0422222222222 52.398055555556|13.733888888889 49.940277777778|11.576388888889
when try create geometry them them makepoint results in emtpy values:
spatialite> select makepoint(longitude, latitude, 4326) mytable1 limit 3; spatialite>
on table lat/lon columns text it's working. idea why?
solution: cast lon/lat text columns real like
update mytable2 set geom = makepoint(cast(longitude real), cast(latitude real), 4326)
Comments
Post a Comment