Thanks, ANNOTATION layer is really doing the job.

Charlotte

PS : thanks to Thomas Bonfort to for his help

Steve Lime a écrit :
You can also use an ANNOTATION layer to do something like this. Depends
if you need a true
centroid or not. Annotation layers use label points generated from an
algorithm that starts with
a center of gravity computation. Subsequent tweaks are made if the
point is too close to the
edge. That approach guarantees the point will be in the polygon unlike
with a centroid.

Steve
On 6/25/2009 at 11:29 AM, in message
<[email protected]>, Charlotte
Declercq <[email protected]> wrote:
Actually, there are two ways of drawing polygons as points
(positioned
in their centroids) :

either geotransform
or apply the STYLE with TYPE [centroid] as described in http://mapserver.org/development/rfc/ms-rfc-45.html
What is your advice ?
Which one of these developments will be available the sooner?
We are quite in the hurry. If I can't do this with mapserver I'll
have
to create a new shape with the centroids :(.

Regards,

--
Charlotte DECLERCQ

ALKANTE SAS
Ingénieur R&D SIG
1, rue du Chêne Morand
35 510 Cesson-Sévigné
Bur: + 33 (0) 2 99 22 25 70
fax : + 33 (0) 2 99 32 12 76




Thomas Bonfort a écrit :
Most of it is already in 5.4, except for centroids :(

I can push those in for 5.4.2 if you're in a hurry, otherwise you'll

have to wait for 5.6/6.0

regards,
thomas

www.camptocamp.com <http://www.camptocamp.com>
+33 4 79 26 57 97


On Thu, Jun 25, 2009 at 17:04, Charlotte Declercq <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    Do someone know when this is going to be in a stable mapserver
    version?

http://mapserver.org/development/rfc/ms-rfc-48.html
    I need to represent polygons as points in their centroids.

    Thanks,

-- Charlotte DECLERCQ

    ALKANTE SAS
    Ingénieur R&D SIG
    1, rue du Chęne Morand
    35 510 Cesson-Sévigné
    Bur: + 33 (0) 2 99 22 25 70
    fax : + 33 (0) 2 99 32 12 76



    _______________________________________________
    mapserver-users mailing list
[email protected] <mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Charlotte DECLERCQ

ALKANTE SAS
Ingénieur R&D SIG
1, rue du Chêne Morand
35 510 Cesson-Sévigné
Bur: + 33 (0) 2 99 22 25 70
fax : + 33 (0) 2 99 32 12 76



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to