Re: [gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Even Rouault
Le 19/12/2022 à 20:48, Peter Townsend a écrit : Thanks! One more question. For the time being, is it generally ok to ignore "tolerance condition error" and "Point outside of projection domain"? I can make our program not care about those if it's usually harmless. They could still be

Re: [gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Peter Townsend via gdal-dev
Thanks! One more question. For the time being, is it generally ok to ignore "tolerance condition error" and "Point outside of projection domain"? I can make our program not care about those if it's usually harmless. On Mon, Dec 19, 2022 at 1:42 PM Even Rouault wrote: > Fix in

Re: [gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Even Rouault
Fix in https://github.com/OSGeo/gdal/pull/6945. The error is actually harmless as I suspected and was related to the polar geometry splitting heuristics not properly shutting off reprojection errors. Even Le 19/12/2022 à 19:59, Peter Townsend a écrit : I figured out that the dataset is

Re: [gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Peter Townsend via gdal-dev
I figured out that the dataset is actually the "trees" shapefile from the QGIS sample dataset. Throws the same messaging out. https://download.qgis.org/downloads/data/ qgis_sample_data\shapefiles\trees.* Good luck! On Mon, Dec 19, 2022 at 12:46 PM Even Rouault wrote: > Peter, > > I suspect

Re: [gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Even Rouault
Peter, I suspect the reprojection of your features went fine, otherwise you would have got an error message like "Failed to reproject feature (geometry probably out of source or destination SRS)". This error message must come from some code that tries heuristics related to polar or

[gdal-dev] Tolerance Condition Error ogr2ogr Albers to EPSG:4326

2022-12-19 Thread Peter Townsend via gdal-dev
I've got this test dataset of a bunch of forest areas in Alaska. The shapefile is in Albers, and we're converting it to EPSG:4326 lat longs. Layer name: trees Geometry: Polygon Feature Count: 444 Extent: (-2175230.041280, 1899842.624457) - (4895522.387686, 6909266.538422) Layer SRS WKT: