I'm trying to convert a shape geometry to WKB within a arcpy.da.cursor for import it in a Postgis database. When I analyze the result I saw that arcpy give me a 2d geoemtry when I convert to WKB. Is there anyone who knows this problem??

Am I doing something wrong??

closed as off-topic by Vince, Andre Silva, whyzar, mgri, Mapperz Apr 3 '17 at 14:13

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – Vince, Andre Silva, whyzar, mgri, Mapperz
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    We can't tell what is going on without your code. Please edit the question to contain the relevant code snippet. You should also specify the exact versions of ArcGIS and PostgreSQL in use. – Vince Apr 3 '17 at 10:56
  • not sure this is an arcpy issue. If you look at this document, WKB only store X and Y (edndoc.esri.com/arcsde/9.1/general_topics/…). try using WKT (combined with ST_GeomFromText) – radouxju Apr 3 '17 at 14:20
  • A 9.1 doc might not provide the best representation of the capabilities of ArcGIS 10.4/10.5. The WKB standard uses the same 4-dimensional coordinates as used by the Esri geometry processing library (with extras like collections, but without spatial references). – Vince Apr 3 '17 at 23:58