Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a shp file that has geography types, Can I convert it with a tool like shp2pgsql? or is there a postgis function to do that?

share|improve this question
up vote 10 down vote accepted

You can cast the geography type to geometry by appending the ::geometry

Example

share|improve this answer

shp2pgsql has a flag to import data in a geography type column:

shp2pgsql -G ....

But you can also import your data without it, by default shp2pgsql will create a geometry type.

Y.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.