Hi,
How do you do automatic label placement at a point (say centroids of the States in US) with Geoserver ? Geoserver does not seem to support . The problem I am having is I am creating image tiles (256x256 pixels) of the US and combing them using javascript to get a US map, I want to display the state names at the centroid of the state, now if the centroid falls on the edge of a tile then Geoserver does not label it. I can use Displacement but then it does not give a general solution as some other labels map probably not get displayed instead. Any ideas.
Thanks
UC
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Ujjwal Chowdhury wrote:
Hi,
How do you do automatic label placement at a point (say centroids of the States in US) with Geoserver ? Geoserver does not seem to support <PointPlacement auto="true"></PointPlacement>. The problem I am having is I am creating image tiles (256x256 pixels) of the US and combing them using javascript to get a US map, I want to display the state names at the centroid of the state, now if the centroid falls on the edge of a tile then Geoserver does not label it. I can use Displacement but then it does not give a general solution as some other labels map probably not get displayed instead. Any ideas.
When most people make tiles they make a giagantic tile then cut it up into smaller tiles (and get rid of the edges).
Geoserver supports quite a few labeling options, but it will not label things when the label will go outside the edges of the picture. It also doesnt label geometries if the label is a really bad fit.
dave
Thanks for reply. Its a good solution to fix labelling issues but it might take too much memory if I create the a image of the whole US zommed in too far. But I can still use the idea to create a overlapping images of reasonable sizes and get rid of the overlapping parts and combine finally.
One more question - what algorithm Geoserver uses to convert bounding box to width/height of the image during the GetMap request
David Blasby dblasby@anonymised.com wrote:
Ujjwal Chowdhury wrote:
Hi,
How do you do automatic label placement at a point (say centroids of the States in US) with Geoserver ? Geoserver does not seem to support . The problem I am having is I am creating image tiles (256x256 pixels) of the US and combing them using javascript to get a US map, I want to display the state names at the centroid of the state, now if the centroid falls on the edge of a tile then Geoserver does not label it. I can use Displacement but then it does not give a general solution as some other labels map probably not get displayed instead. Any ideas.
When most people make tiles they make a giagantic tile then cut it up
into smaller tiles (and get rid of the edges).
Geoserver supports quite a few labeling options, but it will not label
things when the label will go outside the edges of the picture. It also
doesnt label geometries if the label is a really bad fit.
dave
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.