Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Best regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
hmm, I think an appropriate result should be that the label appears in the middle of all the polygons contained in the multi polygon, or worst case, in the middle of one of them. Having no label isn't a good thing I would think.
I don't remember seeing it in Jira, so feel free to add it as a bug as I think it should be labeling at least something. I will take a look at the spec later and see what it says about multi polygons.
Brent Owens
(The Open Planning Project)
Luca Morandini wrote:
Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Best regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Luca Morandini ha scritto:
Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Luca,
are you sure the labels are not shown just because there would
be overlapping otherwise? What happens if you reduce the font size
or zoom in?
I'm playing with a shapefile that has multipolygons with more than
1 polyon (downloaded from here: http://aprsworld.net/gisdata/world/)
and labeling seems to work fine?
Cheers
Andrea Aime
Andrea Aime wrote:
Luca Morandini ha scritto:
Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Luca,
are you sure the labels are not shown just because there would
be overlapping otherwise? What happens if you reduce the font size
or zoom in?
No I'm not sure, just yesterday I've converted multi-polygons to simple ones and some labels were still not shown.
I definitively have to look deeper into it.
I'm playing with a shapefile that has multipolygons with more than
1 polyon (downloaded from here: http://aprsworld.net/gisdata/world/)
and labeling seems to work fine?
Hmm... my datasource is different though (DB2 Spatial Extender).
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
Luca Morandini ha scritto:
Andrea Aime wrote:
Luca Morandini ha scritto:
Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Luca,
are you sure the labels are not shown just because there would
be overlapping otherwise? What happens if you reduce the font size
or zoom in?
No I'm not sure, just yesterday I've converted multi-polygons to simple ones and some labels were still not shown.
Strange... maybe you have an issue with the SLD file?
Any error message during rendering? Yesterday I committed a patch
on trunk that should allow for better error messages (that is, with
stack traces).
I'm playing with a shapefile that has multipolygons with more than
1 polyon (downloaded from here: http://aprsworld.net/gisdata/world/)
and labeling seems to work fine?
Hmm... my datasource is different though (DB2 Spatial Extender).
I know, but I don't have time to install DB2 with spatial extender now.
If the issue it's in the renderer, you'll see it with other data sources
as well.
Cheers
Andrea
We could take a look at the SLD file and see what might be going wrong, if you can share it with us.
cheers,
Brent Owens
(The Open Planning Project)
Luca Morandini wrote:
Andrea Aime wrote:
Luca Morandini ha scritto:
Folkds,
correct me if I'm wrong, but it seems GeoServer doesn't handle well
the labeling of multi-polygons, since no label is shown when it
encounters such a polygon (simple polygons' labels are shown
correctly).
Is it a known issue (though I haven't found it on Jire) ?
Luca,
are you sure the labels are not shown just because there would
be overlapping otherwise? What happens if you reduce the font size
or zoom in?
No I'm not sure, just yesterday I've converted multi-polygons to simple ones and some labels were still not shown.
I definitively have to look deeper into it.
I'm playing with a shapefile that has multipolygons with more than
1 polyon (downloaded from here: http://aprsworld.net/gisdata/world/)
and labeling seems to work fine?
Hmm... my datasource is different though (DB2 Spatial Extender).
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Brent Owens wrote:
We could take a look at the SLD file and see what might be going wrong, if you can share it with us.
Indeed wrong it was: my apologies.
Funny though, the labels weren't shown just on multi-polygons, which by mere chance were the ones having that particular value that wasn't covered by my SLD.
I'll close the issue in JIRA.
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------