Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

2 Answers 2

up vote 8 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.