OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.9k stars 2.55k forks source link

VFK: Generated invalid parcel "banana" geometries #3376

Open seidlmic opened 3 years ago

seidlmic commented 3 years ago

OGR VFK driver ver. 2.4.4 built on Debian from source generates invalid geometries at least for PAR layer(table) in situations called "banana" polygon. Instead of creating polygon with hole that touches exterior ring at one point it creates polygon in "banana" shape or even self intersection polygon type. The invalid polygon can be detected with ST_IsValid() function after importing into Postgis database.

rouault commented 3 years ago

CC @landam

landam commented 3 years ago

@seidlmic Can you send me a sample data to reproduce it?

seidlmic commented 3 years ago

Hi,

I think you can use any data you have. In 54 imported cadastral districts ST_IsValid() found 154 invalid geometries.

This is the case you import SGI and SPI VFK file into one SQLite tmp DB when final target is Postgis.

I will send some data directly to you.

On 1/13/21 12:45 PM, Martin Landa wrote:

@seidlmic https://github.com/seidlmic Can you send me a sample data to reproduce it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OSGeo/gdal/issues/3376#issuecomment-759395838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXM3KJYR72I2OJ7A5FNVDLSZWBUXANCNFSM4WAONZWA.