mapbox / mapbox/node-wmshp

Tolerance condition error

Open
#1 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Encountered this while reprojecting a shapefile with the following SRS:

```
PROJCS["NAD_1983_HARN_StatePlane_Michigan_South_FIPS_2113_Feet_Intl",
GEOGCS["GCS_North_American_1983_HARN",
DATUM["NAD83_High_Accuracy_Reference_Network",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["False_Easting",13123359.58005249],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",-84.36666666666666],
PARAMETER["Standard_Parallel_1",42.1],
PARAMETER["Standard_Parallel_2",43.66666666666666],
PARAMETER["Latitude_Of_Origin",41.5],
UNIT["Foot",0.3048]]
```

using `ogr2ogr` yields the same error:

```
ogr2ogr -t_srs epsg:3857 -f "ESRI Shapefile" ~/tmp/tolerance-condition-error.projected ~/tmp/tolerance-condition-error/finalhomicide.shp
ERROR 1: tolerance condition error
Failed to reproject feature 25 (geometry probably out of source or destination SRS).
ERROR 1: Terminating translation prematurely after failed
translation of layer finalhomicide (use -skipfailures to skip errors)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the supplied ogr2ogr command and shapefile, focusing on feature 25 and the EPSG:3857 reprojection path exposed by node-gdal. The issue does not name a source file, test, or target behavior beyond avoiding the tolerance-condition failure and premature translation termination.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.