Hi Cosme,

How did you check out the geometries were ok? Did you run an actual 
validity check like ST_IsValid or did you inspect them visually? It 
might be that the "interiorPoint" algorithm uncovered something odd that 
is not evident to the eye.

 From what you have written, the problem is probably elsewhere, but I 
would try fiddling with the geometries just to be sure (a test 
environment should be used for that). I had success in the past with 
postgis' ST_SnapToGrid with a very fine grid followed by
ST_SimplifyPreserveTopology with a very low "tolerance" field to get rid 
of redundant vertices and small topology errors. See my FOSS4g 2014 
'Crazy Data' presentation on Vimeo for more aggressive geometry cleanup.

Best,
--Daniel

Em 06/07/2016 12:57, Cosme Benito escreveu:
>
> Hello,
>
> I’ve been using Leaflet + Geoserver 2.9.0 to represent WMS layers with 
> labels. Since Leaflet only works in tiled mode I came to the problem 
> that labels would appear once per tile. To correct this problem I 
> tried to put labels to show up at the geometry’s centroid, even if 
> this meant that some labels would not appear. This worked okay  but 
> since some centroids are outside of the geometry it lead to some 
> visual errors to the users. So I started to use the “interiorPoint” 
> function which appeared to solve my problem.
>
> I have noticed, however, that under certain zoom levels the tiles 
> simply do not show up. I get this error (I attached the full stack trace):
>
> “Rendering process failed found non-noded intersection between 
> LINESTRING ( -8.9883 38.7852, -8.979700000000001 38.7778 ) and 
> LINESTRING ( -8.983 38.773, -8.9778 38.784600000000005 ) [ 
> (-8.980528645833335, 38.77851302083334, NaN) ]”
>
> I have searched a lot but didn’t find much information about this 
> error, it all seemed to lead to geometry issues. I checked if the 
> geometry contained any issues but it seems to be okay. I do not have 
> any errors with no labels or using the centroid function instead. I 
> will revert to use the centroid function but would appreciate some 
> feedback as to why the interiorPoint function fails, what can I do 
> about it or maybe a different strategy to solve the tiled labeling 
> problem.
>
> I have attached the SLD I am using and the stack trace that I found in 
> the log file.
>
> Thank you very much.
>
> Cosme Benito
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
>
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to