Opened 6 years ago

Closed 5 years ago

#7161 closed defect (wontfix)

gdal_contour create invalid toppology

Reported by: vmo Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I'm using gdal_contour for simulation result with crazy gradients (like a zero neighboring billions).

I've attached a test dataset (small).

If you look a the result of:

gdal_contour -fl 1e3 -a level data.tif test.shp

you'll find inconsistent topologies (crossing contour, self-touching contour, open contour).

I'm lucky to have found such a nice dataset that can help improve numerical robustness.

I've been working on contour algo refactoring, It's not finished yet, but it seems to solve the topology problems (a patch is attached for the record).

Attachments (2)

data.tif (42.4 KB ) - added by vmo 6 years ago.
dataset to reproduce the bug
refacto_contour.patch (54.9 KB ) - added by vmo 6 years ago.
refacto in progress

Download all attachments as: .zip

Change History (3)

by vmo, 6 years ago

Attachment: data.tif added

dataset to reproduce the bug

by vmo, 6 years ago

Attachment: refacto_contour.patch added

refacto in progress

comment:1 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.