Permalink
Browse files

poly works!

  • Loading branch information...
1 parent b1a9c33 commit 22b68b50fd05bf8753b882311e8e60ea7db0da3f Calvin Metcalf committed May 3, 2013
Showing with 4 additions and 3 deletions.
  1. +2 −2 esri2open/prepare.py
  2. +2 −1 esri2open/utilities.py
View
@@ -9,7 +9,7 @@ def prepareCSV(outJSON,featureClass,fileType,includeGeometry):
fieldNames = []
out = open(outJSON,"wb")
for field in fields:
- if (fields[field] != u'OID') and field.lower() not in ('shape_length','shape_area','shape.len','shape.length','shape_len','shape.area',shp.lower()):
+ if (fields[field] != u'OID') and field.lower() !=shp.lower():
fieldNames.append(field)
if includeGeometry!="none":
fieldNames.append("geometry")
@@ -36,7 +36,7 @@ def prepareSqlite(out,featureClass,fileType,includeGeometry):
if includeGeometry:
fieldNames.append("GEOMETRY blob")
for field in fields:
- if (fields[field] != u'OID') and field.lower() not in ('shape_length','shape_area','shape.len','shape.length','shape_len','shape.area',shp.lower()):
+ if (fields[field] != u'OID') and field.lower() !=shp.lower():
fieldNames.append(parseFieldType(field,fields[field]))
conn=Connection(out)
View
@@ -9,7 +9,8 @@ def listFields(featureClass):
fields=ListFields(featureClass)
out=dict()
for fld in fields:
- out[fld.name]=fld.type
+ if (fld.name.lower() not in ('shape_length','shape_area','shape.len','shape.length','shape_len','shape.area') and fld.name.find(".")==-1):
+ out[fld.name]=fld.type
return out
#takes the input geometry object and returns

0 comments on commit 22b68b5

Please sign in to comment.