Re: [gdal-dev] Check validity of geometries before writing them into vector tiles?

2018-02-15 Thread Even Rouault
On mercredi 14 février 2018 15:53:38 CET Rahkonen Jukka (MML) wrote: > Even Rouault wrote: > > Perhaps you could play with the SIMPLIFICATION and SIMPLIFICATION_MAX_ZOOM > > options ? > Sure, as I wrote I admit that my test did not make much sense, but trying > things before reading the manual

Re: [gdal-dev] Check validity of geometries before writing them into vector tiles?

2018-02-14 Thread Blake Thompson
All, Geometry validity with polygons is really hard. The only solution at Mapbox we found to fix this properly for Vector Tiles that we create was to modify an existing algorithm to solve all the potential problems of geometry validity. The result of this is https://github.com/mapbox/wagyu/ which

Re: [gdal-dev] Check validity of geometries before writing them into vector tiles?

2018-02-14 Thread Rahkonen Jukka (MML)
Even Rouault wrote: > Perhaps you could play with the SIMPLIFICATION and SIMPLIFICATION_MAX_ZOOM > options ? Sure, as I wrote I admit that my test did not make much sense, but trying things before reading the manual sometimes reveals something interesting.   > Perhaps you should also use an

Re: [gdal-dev] Check validity of geometries before writing them into vector tiles?

2018-02-14 Thread Even Rouault
On mercredi 14 février 2018 15:10:57 CET Rahkonen Jukka (MML) wrote: > Hi, > > I admit that my test was somewhat lunatic but I took some random dataset > from Finland with 68101 polygons and converted data into MVT with default > settings which means that minzoom was 0. As a result 12196 of the

[gdal-dev] Check validity of geometries before writing them into vector tiles?

2018-02-14 Thread Rahkonen Jukka (MML)
Hi, I admit that my test was somewhat lunatic but I took some random dataset from Finland with 68101 polygons and converted data into MVT with default settings which means that minzoom was 0. As a result 12196 of the source polygons were written into the 0-level protobuf tile (in EPSG:3067