Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 need to merge several databases, where the destination table has a constraint checking for MULTIPOLYGONM in the geometry column.

At some source tables, the geometry column is in the XY form (MULTIPOLYGON), others have the correct XYM form (MULTIPOLYGONM).

How can I force MULTIPOLYGON into MULTIPOLYGONM? Is this what ST_Force_3DM is supposed to do?

share|improve this question
up vote 1 down vote accepted

Seems like ST_Force_3DM alone is not enough for an "INSERT FROM SELECT", but this worked for me:

ST_AsEWKT(ST_Force_3DM(the_geom))
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.