-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ogr2ogr error when loading table simplified_water_polygons #4248
Comments
What happens if you run |
|
And:
|
I wonder if what's happening here is the same as #4249 ? ne_110m_admin_0_boundary_lines_land.zip has moved and is now at https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip ; as a temporary workaround you can try changing the URL in get_external_data.yml , rerun "scripts/get_external_data.py" and see if everything then works? |
Maybe. |
Hi, I'm currently working on upgrading https://github.com/Magellium/osmtilemaker to use the last current version of When I run
As @pnorman suggested, I've tried to run
As @SomeoneElseOSM suggested, I've checked for a potential URL issue within
Any help is welcome ! I can provide more information if needed. |
You've installed conflicting versions of ogr2ogr and postgresql. It is unrelated to this topic. |
Thanks for your quick answer. You're right:
So I switched to However there was also a dead url issue in |
@MBabakov Did you solve the problem ?? |
Yes thank you! The problem was resolved a year ago by installing Ubuntu 20.04. |
Ubuntu 18.04
PostgreSQL 12
Execute:
osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script /home/osm/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 5 -S /home/osm/src/openstreetmap-carto/openstreetmap-carto.style /home/osm/data/kaliningrad-latest.osm.pbf
It's normal
gis=# \dt
List of relations
Schema | Name | Type | Owner
--------+--------------------+-------+----------
public | external_data | table | postgres
public | planet_osm_line | table | postgres
public | planet_osm_nodes | table | postgres
public | planet_osm_point | table | postgres
public | planet_osm_polygon | table | postgres
public | planet_osm_rels | table | postgres
public | planet_osm_roads | table | postgres
public | planet_osm_ways | table | postgres
public | spatial_ref_sys | table | osm
(9 rows)
Actual behavior
postgres@ub1:/home/osm/src/openstreetmap-carto$ scripts/get-external-data.py
INFO:root:Checking table simplified_water_polygons
CRITICAL:root:ogr2ogr returned 1 with layer simplified_water_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_water_polygons PG:dbname=gis data/simplified_water_polygons/simplified-water-polygons-split-3857/simplified_water_polygons.shp
CRITICAL:root:Output was
Traceback (most recent call last):
File "scripts/get-external-data.py", line 243, in main
subprocess.check_output(ogrcommand, stderr=subprocess.PIPE, universal_newlines=True)
File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 438, 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_water_polygons', 'PG:dbname=gis', 'data/simplified_water_polygons/simplified-water-polygons-split-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 "scripts/get-external-data.py", line 258, in
main()
File "scripts/get-external-data.py", line 249, in main
raise RuntimeError("ogr2ogr error when loading table {}".format(name))
RuntimeError: ogr2ogr error when loading table simplified_water_polygons
What have I not done?
The text was updated successfully, but these errors were encountered: