-
Notifications
You must be signed in to change notification settings - Fork 27
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
Running natural_earth.sh results in error "tolerance condition error" #67
Comments
As per my last comment I tried updating natural_earth.sh to
i.e. adding and then ran it as per normal. Nearly all the natural earth files ran fine but but one or two still produce a few of the above errors but far less than before. Is no one else getting the above errors? I'm trying to work out if its an environment issue or I wonder if its anything to do with the datas' source urls being updated recently. Perhaps the raw natural earth data has changed? (cc @ARolek 🙇🏻) |
Sorry I forgot to add in my last comment the error I am still seeing. Here it is
|
@adamakhtar hey there! apologies for the slow response to these comments.
I need to give this a test myself. I'm not sure if this is an appropriate fix.
There was a PR not too long ago submitted which changed the data. I ran the import scripts after the change to confirm things were working prior to accepting the PR. The data might have changed.
This error is not ideal, but does happen sometimes. I believe the data is still imported though and can potentially be fixed by running |
Thanks @ARolek for the help. I'll look into |
When I run natural_earth.sh on master on my Arm M1 macbook pro I get the error described in the title.
For instance, if I comment out all of the ne source urls in the script except for the last one and run the script I get this:
This is the GDALversion I am using:
I have also been able to reproduce this on an intel s3 instance so I do not think this is ARM related.
I posted a question on the GDAL mailing list re: the above and I received this answer:
I'm not exactly sure how to use this option correctly. Looking at some examples online I found this
-clipsrc -180.1 -85.0511 180.1 85.0511
and tried it like so:OGR_ENABLE_PARTIAL_REPROJECTION=true ogr2ogr -unsetFieldWidth -t_srs EPSG:3857 -clipsrc -180.1 -85.0511 180.1 85.0511 -nlt PROMOTE_TO_MULTI -f PostgreSQL PG:"dbname='ne' host='localhost' port='5432' user='myuser' password=''redacted" ne_10m_ocean.shp
The command no longer fails and I find 3 rows in the created table but just because there were no errors doesn't mean its the correct fix for this problem.
Could you confirm this is indeed a bug and the above is the correct fix?
The text was updated successfully, but these errors were encountered: