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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -