[Geoserver-users] Urgent: IEEERemainder Issue

Hello all,

We have recently upgraded to version 2.2.3 and as a result some of our SLD’s which use the IEEERemainder function no longer work. Having had a quick search I can see that there is a bug report listed for this back in Oct-2012 (we are also using an SQL layer from a PostGres DB)

We don’t want to rollback to the 2.1 version so I’m hoping someone can suggest a work around for me.

We use the IEEERemainder function to thin out the displayed information from a dataset that represents a regular grid of points. We do things like this (in CSS):

/*Longitude and Latitude represent the coordinates of the temperature value */

[@scale>75000000][IEEERemainder(longitude, 7.5) = 0][IEEERemainder(latitude, 7.5) = 0]{

label:[numberFormat(‘P#;#’,temperature)];

font-size:8;

}

[@scale>45000000][@scale<75000000][IEEERemainder(longitude, 6.25) = 0][IEEERemainder(latitude, 6.25) = 0]{

label:[numberFormat(‘P#;#’,temperature)];

font-size:9;

}

[@scale>20000000][@scale<45000000]

[IEEERemainder(longitude, 3.75) = 0][IEEERemainder(latitude, 3.75) = 0]{

label:[numberFormat(‘P#;#’,temperature)];

font-size:9;

}

Etc.

This has the effect of thinning out the displayed information at the higher scales.

Does anyone have a better suggestion/solution for this without using the IEEERemainder function?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

On Tue, Jan 8, 2013 at 11:16 AM, Chris Haste <CHaste@anonymised.com> wrote:

Hello all,

We have recently upgraded to version 2.2.3 and as a result some of our SLD’s which use the IEEERemainder function no longer work. Having had a quick search I can see that there is a bug report listed for this back in Oct-2012 (we are also using an SQL layer from a PostGres DB)

You mean this one?
http://jira.codehaus.org/browse/GEOS-5338

I believe I’ve just fixed it, can you give tomorrow’s (Jan 9) nightly build a try when it’s out?
http://gridlock.opengeo.org/geoserver/2.2.x/

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Hi Andrea,

Yes, that is the one I meant. We can try that build tomorrow.

Is there a better way of doing this though? Without using the IEEERemainder function?

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: 08 January 2013 10:43
To: Chris Haste
Cc: geoserver-users@anonymised.coms.sourceforge.net
Subject: Re: [Geoserver-users] Urgent: IEEERemainder Issue

On Tue, Jan 8, 2013 at 11:16 AM, Chris Haste <CHaste@anonymised.com> wrote:

Hello all,

We have recently upgraded to version 2.2.3 and as a result some of our SLD’s which use the IEEERemainder function no longer work. Having had a quick search I can see that there is a bug report listed for this back in Oct-2012 (we are also using an SQL layer from a PostGres DB)

You mean this one?

http://jira.codehaus.org/browse/GEOS-5338

I believe I’ve just fixed it, can you give tomorrow’s (Jan 9) nightly build a try when it’s out?

http://gridlock.opengeo.org/geoserver/2.2.x/

Cheers

Andrea

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it


*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

If you just want to control how close together labels may appear, then it might be possible to use extra labelling parameters in your style instead of filtering the data.
The “spaceAround” parameter would probably be a good first place to look:

http://docs.geoserver.org/stable/en/user/styling/sld-reference/labeling.html#overlapping-and-separating-labels-vendoroption-name-spacearound It’s called “-gt-label-padding” in CSS.

···

On Tue, Jan 8, 2013 at 5:54 AM, Chris Haste <CHaste@anonymised.com> wrote:

Hi Andrea,

Yes, that is the one I meant. We can try that build tomorrow.

Is there a better way of doing this though? Without using the IEEERemainder function?

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: 08 January 2013 10:43
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Urgent: IEEERemainder Issue

On Tue, Jan 8, 2013 at 11:16 AM, Chris Haste <CHaste@anonymised.com> wrote:

Hello all,

We have recently upgraded to version 2.2.3 and as a result some of our SLD’s which use the IEEERemainder function no longer work. Having had a quick search I can see that there is a bug report listed for this back in Oct-2012 (we are also using an SQL layer from a PostGres DB)

You mean this one?

http://jira.codehaus.org/browse/GEOS-5338

I believe I’ve just fixed it, can you give tomorrow’s (Jan 9) nightly build a try when it’s out?

http://gridlock.opengeo.org/geoserver/2.2.x/

Cheers

Andrea

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it


*** This communication has been sent from World Fuel Services

Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***


Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512


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