Permalink
Browse files

some work on the wrong branch

  • Loading branch information...
1 parent 78f42f9 commit a46d0601ecbf45a53743fbb30bce5d34a22ba697 Calvin Metcalf committed May 3, 2013
Showing with 7 additions and 3 deletions.
  1. +1 −1 esri2open/esri2open.py
  2. +6 −2 esri2open/parseGeometry.py
View
@@ -75,7 +75,7 @@ def toOpen(featureClass, outJSON, includeGeometry="geojson"):
if fileType=="geojson":
includeGeometry="geojson"
elif fileType=="sqlite":
- includeGeometry="well know binary"
+ includeGeometry="well known binary"
else:
includeGeometry=includeGeometry.lower()
#open up the file
@@ -1,5 +1,6 @@
from wkt import getWKTFunc
from wkb import getWKBFunc
+from arcpy import AddMessage
def getPoint(pt):
return [pt.X,pt.Y]
@@ -191,8 +192,13 @@ def parseMultiPatch():
#this should probobly be a class
def getParseFunc(shpType, geo):
+ AddMessage(shpType)
+ AddMessage(geo)
if geo == "none":
return False
+ elif geo=="well known binary":
+ AddMessage("wkb")
+ return getWKBFunc(shpType)
else:
if shpType == "point":
fun = parsePoint
@@ -206,7 +212,5 @@ def getParseFunc(shpType, geo):
fun = parseMultiPatch
if geo=="geojson":
return fun
- elif geo=="well known binary":
- return getWKBFunc(shpType)
elif geo=="well known text":
return getWKTFunc(fun)

0 comments on commit a46d060

Please sign in to comment.