Hi there.I have been trying to convert between esri's st geometry to postgis geometry by using sql. I'm having trouble when there are more de 2 coordinates, eg when there's m and/or z coordinates.What I tried is to convert from st to well known formats (wkb, wkt, ewkb, or ewkt), and from these build a postgis geometry using it's available sql constructors. For instance:select st_geomfromewkb(st_asbinary(shape)) from tablename
select geometrytype(geomfromewkb(st_asbinary(shape))) from tablename
For instance, if my tablename has lineZ or lineM, postgis detects it as being of type point...What I've found is that esri functions return geometry types that are not recognized by postgis, like LINESTRING ZM. Postgis uses "plain" LINESTRING in these cases.So there is a mismatch in geometry type names that esri uses that prevent the use of geometry constructors in postgis, even though we are in "interoperability land"...Has anyone found this problem? Any solution or suggestion?Thanks,Duarte Carreira