Oh, I understand the <rule> tag.
I am not sure whether I interpreted your reply correctly. But actually what
I want to do is to specify the size of a feature in terms of real world
measurements rather than pixels. I have a requirement that states that this
feature has to be 2 meters from a certain (x,y) point, so I am trying to
make sure that this feature is drawn at 2 meters away. My apologies again,
as I am unable to see how the <rule> tag can help in achieving this. Please
enlighten. Thanks.
Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd
-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Brent
Owens
Sent: Friday, June 16, 2006 1:14 AM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Size of a feature
No problem, I will try to explain it in more detail.
Since there is no way to have the graphic label shrink and grow when you
zoom in/zoom out, you will need to use something else to do this.
Geometries on the other hand, will shrink and grow when you zoom in/out.
So, you could make a layer by hand of some polygons that will act as
your labels. This kind of breaks down when you want different labels
(text) on each polygon because you would have to write a style for each.
So it's not a very good idea actually.
What we sort of do in this situation, is make a style that has several
rules in it, <rule>. Each rule is set to render at a specific scale
range specified by <minScaleDenomionator> and <maxScaleDenominator>. In
each of these rules you can set a different size of the label.
Brent Owens
(The Open Planning Project)
Lee Wai See wrote:
You will probably have to
do this the hard way and place polygon features where you want the image
to appear, and texture it.
Pardon me for my ignorance, but I don't quite get what you mean by this
and
how it is to be done.
Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd
-----Original Message-----
From: Brent Owens [mailto:brentowens@anonymised.com]
Sent: Thursday, June 15, 2006 5:05 AM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Size of a feature
The size tag is part of the <graphic> tag, which is constant with the
screen in pixels. So you can't set its units. You will probably have to
do this the hard way and place polygon features where you want the image
to appear, and texture it. No good solutions, sorry.
You can check out the SLD schema here and see if there are other ways to
do this that I have missed:
https://portal.opengeospatial.org/files/?artifact_id=1188
Brent Owens
(The Open Planning Project)
Lee Wai See wrote:
Hi,
The <size> tag in the SLD sets the size of a feature in terms of
pixels. Does anyone know whether it is possible to set it in terms of
other units, say meters, millimeters?
My apologies if I am posting in the wrong list. If anyone knows where
I can find reference on this, please let me know. Thanks.
Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the
message
from your system; please do not copy or use it for any purpose, nor
disclose
its contents to any other person. Thank you.]
---ST Electronics Group---
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users