Page MenuHomePhabricator
Paste P7079

./get-external-data.py -v
ActivePublic

Authored by SBisson on May 3 2018, 7:40 PM.
Tags
None
Referenced Files
F17621112: ./get-external-data.py -v
May 3 2018, 7:40 PM
Subscribers
None
INFO:root:Checking table simplified_ocean_polygons
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): data.openstreetmapdata.com
DEBUG:urllib3.connectionpool:http://data.openstreetmapdata.com:80 "GET /simplified-water-polygons-complete-3857.zip HTTP/1.1" 200 23613797
DEBUG:root:running ogr2ogr -f PostgreSQL -lco GEOMETRY_NAME=way -lco SPATIAL_INDEX=FALSE -lco EXTRACT_SCHEMA_FROM_LAYER_NAME=YES -nln loading.simplified_ocean_polygons PG:dbname=ct data/simplified_ocean_polygons/simplified-water-polygons-complete-3857/simplified_water_polygons.shp
CRITICAL:root:ogr2ogr returned 1 with layer simplified_ocean_polygons
CRITICAL:root:Command line was ogr2ogr -f PostgreSQL -lco GEOMETRY_NAME=way -lco SPATIAL_INDEX=FALSE -lco EXTRACT_SCHEMA_FROM_LAYER_NAME=YES -nln loading.simplified_ocean_polygons PG:dbname=ct data/simplified_ocean_polygons/simplified-water-polygons-complete-3857/simplified_water_polygons.shp
CRITICAL:root:Output was
Traceback (most recent call last):
File "./get-external-data.py", line 202, in main
ogr2ogr = subprocess.check_output(ogrcommand, stderr=subprocess.PIPE, universal_newlines=True)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ogr2ogr', '-f', 'PostgreSQL', '-lco', 'GEOMETRY_NAME=way', '-lco', 'SPATIAL_INDEX=FALSE', '-lco', 'EXTRACT_SCHEMA_FROM_LAYER_NAME=YES', '-nln', 'loading.simplified_ocean_polygons', 'PG:dbname=ct', 'data/simplified_ocean_polygons/simplified-water-polygons-complete-3857/simplified_water_polygons.shp']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./get-external-data.py", line 216, in <module>
main()
File "./get-external-data.py", line 208, in main
raise RuntimeError("ogr2ogr error when loading table {}".format(name))
RuntimeError: ogr2ogr error when loading table simplified_ocean_polygons