Skip to content
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

ERROR: The requested feature is not implemented. #1

Open
mibe opened this issue Aug 26, 2020 · 1 comment
Open

ERROR: The requested feature is not implemented. #1

mibe opened this issue Aug 26, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mibe
Copy link
Owner

mibe commented Aug 26, 2020

See this issue on the OSM-Wiki talk page. It looks like the algorithm cannot find the correct IsohypseMovement value.

@mibe mibe added the bug Something isn't working label Aug 26, 2020
@hgy59
Copy link
Contributor

hgy59 commented Jul 27, 2024

This issue is still present in version v1.16.5.0

Further analysis resulted in a very small boundary and with elevation step 10 (instead of 5)

The error still occurs when calling:

Srtm2Osm -large -step 10 -cat 50 25 -o 2340bad.srtm.osm -bounds1 49.6 12.1295832 49.6145 12.15

But the following call is successful:

Srtm2Osm -large -step 10 -cat 50 25 -o 2340good.srtm.osm -bounds1 49.6 12.1295835 49.6145 12.15

The failing contour line is at level 410 (m)
It does not depend on other contour lines and uses only one DEM cell.

When I patch the source code (method Igor4IsopletingAlgorithm.ExtractIsohypseMovements) to avoid the exception and set movementFound = true; instead, I get an osm file with one contour line with 4 points and a single contour line node.

looks like this

      if (movementFound == false)
      {
         //throw new NotImplementedException();
         movementFound = true;
         activityLogger.Log(ActivityLogLevel.Verbose, string.Format(System.Globalization.CultureInfo.InvariantCulture,
               "Ignore Exception and pretend movement found: Elevation={0}, x={1}, y={2}", isohypseElevation, x, y));
      break;
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants