geospatial - Problem with a column name contains a colon in PostgreSQL -
i downloaded shape data osm. have imported data shapefile postgresql without problem got error when select statement.
select addr:city location; error: syntax error @ or near ":" the problem because of column name contains colon. me issue? should reject shapefile in importing process? shapefile normal?
if enclose addr:city quotes should work:
select "addr:city" "location"; and if want use openstreetmap data, don't have import shapefiles. instead, can import planet.osm (or regional subset) directly osm2pgsql.
Comments
Post a Comment