Hello,
in standard mapnik (or osm2psql) database with postgis extension is table planet_osm_nodes. There are columns lat and lon of integer type. I need in this table column way(of geomettry type) to be able to render all nodes (on really small area). I have created column
SELECT AddGeometryColumn (‘public’,‘planet_osm_nodes’,‘way’,900913,‘POINT’,2);
but i am not able to successfully convert integers to coordinates to call
UPDATE planet_osm_nodes
SET way=ST_GeomFromText(‘POINT(’||lon||’ ‘||lat||’)', 900913);
I have found some postgis function ST_Transform - it seems it converts from spatial reference system to another, but by default in database is only one spatial reference system with id 900913 and it is the one used in other tables (probalby WGS84). And i have really no idea, what spatial system (if any) are two integers.
Does anybody know how to transform lan and lot to Geometry?
Thanks a lot