Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openaddr/conform.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def decompress(self, source_paths, workdir, filenames):
class ExcerptDataTask(object):
''' Task for sampling three rows of data from datasource.
'''
known_types = ('.shp', '.json', '.geojson', '.csv', '.kml', '.gml', '.gdb')
known_types = ('.shp', '.json', '.geojson', '.csv', '.kml', '.gml', '.xml', '.gdb')

def excerpt(self, source_paths, workdir, conform):
'''
Expand Down Expand Up @@ -514,9 +514,9 @@ def find_source_path(source_definition, source_paths):
else:
for fn in source_paths:
_, ext = os.path.splitext(fn)
if ext == ".gml":
if ext in (".gml", ".xml"):
return fn
_L.warning("Could not find a .gml file")
_L.warning("Could not find a .gml or .xml file")
return None
else:
_L.warning("Unknown source conform type %s", conform["type"])
Expand Down