Skip to content

Commit

Permalink
Https handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMillerGIS committed Apr 26, 2017
1 parent 33209fe commit db403e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ShareGISData/GPTools/arcpy/dla.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
_CIMWKSP = 'CIMWKSP'
_lyrx = '.lyrx'
_http = 'http://'
_https = 'https://'
_sde = '.sde\\'
_gdb = '.gdb\\'
import string
Expand Down Expand Up @@ -782,6 +783,8 @@ def getDatasetPath(xmlDoc,name):
pth = getNodeValue(xmlDoc,name)
if pth.lower().startswith(_http):
return pth
if pth.lower().startswith(_https):
return pth
elif pth.endswith(_lyrx):
# need to check os.path
if not os.path.exists(pth):
Expand Down
2 changes: 1 addition & 1 deletion ShareGISData/GPTools/arcpy/dlaPublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def handleGeometryChanges(sourceDataset,target):
return sourceDataset
desc = arcpy.Describe(sourceDataset) # assuming local file gdb
dataset = sourceDataset
if desc.ShapeType == "Polygon" and target.lower().startswith("http://") == True:
if desc.ShapeType == "Polygon" and (target.lower().startswith("http://") == True or target.lower().startswith("https://") == True):
dataset = simplifyPolygons(sourceDataset)
else:
dataset = sourceDataset
Expand Down

0 comments on commit db403e6

Please sign in to comment.