[Geoserver-users] Size of a feature

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---

On 6/14/06, Lee Wai See <leewse@anonymised.com> wrote:

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?

Not currently - the new standard is being voted on right now and
introduces a unit of measure so as to provide real world units for
size tags. I'm not sure when it will become a released spec and when
we'll implement it - though I may look into it over the summer.

Ian
--

Ian Turton
http://www.geotools.org
http://pennspace.blogspot.com/

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
  

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
  

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
  

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

It isn't possible to render the graphic X meters (or real world units) away from the point. Text symbolizers can be rendered off center, but once again not by real world units, just pixels.

I thought that you had to change the scale of your graphic and make it use real world units instead of pixels. The rule tag and scale denominators would have sort of helped you there.

I'm not sure how you will get around this hurdle easily.

sorry,

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I think the next SLD spec should allow more options to render things in real world units. But it will likely be awhile till we get around to implementing it, unless a community member does it or funds it. But I'd have to look in to what exactly the SLD 1.1 does, and if it would actually handle your use case.

best regards,

Chris

Brent Owens wrote:

It isn't possible to render the graphic X meters (or real world units) away from the point. Text symbolizers can be rendered off center, but once again not by real world units, just pixels.

I thought that you had to change the scale of your graphic and make it use real world units instead of pixels. The rule tag and scale denominators would have sort of helped you there.

I'm not sure how you will get around this hurdle easily.

sorry,

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

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

_______________________________________________
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

!DSPAM:1003,4492e7a031031804284693!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org