Skip to content

Instantly share code, notes, and snippets.

@scw
Created June 21, 2013 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scw/5833018 to your computer and use it in GitHub Desktop.
Save scw/5833018 to your computer and use it in GitHub Desktop.
import arcpy
import binascii
line = arcpy.FromWKT('LINESTRING (30 10, 10 30, 40 40)')
print binascii.hexlify(line.WKB)
# produces:
# 0102000000030000000000000000003e40000000000000244000000000000024400000000000003e4000000000000044400000000000004440
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment