[Geoserver-users] SLD Alternatives

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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

Hi Simon,
Could you clarify what sorts of tasks are you looking for?

We maintain our styles within the standard GeoServer interface and find that adequate. Admittedly they’re very verbose, but once you have the form of them down they’re easy to copy/paste between them.
Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 14 May 2014 14:18, Simon Hartley <SHartley@anonymised.com> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

On Wed, May 14, 2014 at 3:18 PM, Simon Hartley <SHartley@anonymised.com>wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining
SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy
with it, but we’re going to have to abandon it after major speed issues.

You could also consider sponsoring a speedup of the css->sld conversion :wink:

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

-------------------------------------------------------

Hey Simon,

If you have some scripting chops you could also look at GeoScript. It has convenient apis for composing styles. For example to compose the well known population style boils down to (in python):

style = Fill(‘#4DFF4D’, 0.7).where(‘PERSONS < 2000000’)

style += Fill(‘#FF4D4D’,0.7).where(‘PERSONS BETWEEN 2000000 AND 4000000’)
style += Fill(‘#4D4DFF’,0.7).where(‘PERSONS > 4000000’)
style += Stroke(width=0.2) + Label(‘STATE_ABBR’, ‘Times New Roman 14px’)
writeSLD(style, ‘population.sld’)

I have been able to utilize this technique to compose some fairly complex styles. And coupled with geoserver restconfig it leads to a pretty convenient workflow. Anyways, not for everybody but I thought I would mention it.

-Justin

···

On Wed, May 14, 2014 at 7:18 AM, Simon Hartley <SHartley@anonymised.com> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

Justin Deoliveira
Vice President, Engineering | Boundless
jdeolive@anonymised.com
@j_deolive

On Wed, May 14, 2014 at 4:34 PM, Justin Deoliveira <
jdeolive@anonymised.com> wrote:

Hey Simon,

If you have some scripting chops you could also look at GeoScript. It has
convenient apis for composing styles. For example to compose the well
known population style boils down to (in python):

style = Fill('#4DFF4D', 0.7).where('PERSONS < 2000000')
style += Fill('#FF4D4D',0.7).where('PERSONS BETWEEN 2000000 AND 4000000')
style += Fill('#4D4DFF',0.7).where('PERSONS > 4000000')
style += Stroke(width=0.2) + Label('STATE_ABBR', 'Times New Roman 14px')
writeSLD(style, 'population.sld')

I have been able to utilize this technique to compose some fairly complex
styles. And coupled with geoserver restconfig it leads to a pretty
convenient workflow. Anyways, not for everybody but I thought I would
mention it.

Justin, it could be an interesting "alternative language" for styling.
Like, we store the script and run it to build the SLD on the fly

Also thinking about Jared's console, and how it could relate to this topic.

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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,

Because the CSS extension is written in Scala, I was given the impression that it would be needed to be ported to Java and hence this could be expensive.

GeoServer 2.2.5 had a version of GeoCSS from about 3 years ago which performed very well, but it seems that by GeoServer 2.3 performance took a massive nose dive.

Funding for a bug fix and funding a rewrite are quite different things for a small company.

Simon Hartley

From: andrea.aime@…84… [mailto:andrea.aime@…84…] On Behalf Of Andrea Aime
Sent: 14 May 2014 15:27
To: Simon Hartley
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

On Wed, May 14, 2014 at 3:18 PM, Simon Hartley <SHartley@…2992…> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

You could also consider sponsoring a speedup of the css->sld conversion :wink:

Cheers

Andrea

==

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK

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

On Wed, May 14, 2014 at 7:01 PM, Simon Hartley <SHartley@anonymised.com>wrote:

Hi Andrea,

Because the CSS extension is written in Scala, I was given the impression
that it would be needed to be ported to Java and hence this could be
expensive.

Hmm... no, I believe the fix could be done in the Scala version too, but
you'd have to contact the original author of the plugin, David Windows, to
look into that (cc'ed)

GeoServer 2.2.5 had a version of GeoCSS from about 3 years ago which

performed very well, but it seems that by GeoServer 2.3 performance took a
massive nose dive.

Funding for a bug fix and funding a rewrite are quite different things for
a small company.

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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 Jonathan,

Using standard SLD is painful because once you have enough conditionals,

you end up having to repeat large blocks and the number of lines becomes huge.

One of the styles generated by the CSS extension was 20 thousand lines of SLD!

Simon Hartley

From: Jonathan Moules [mailto:jonathanmoules@anonymised.com]
Sent: 14 May 2014 15:19
To: Simon Hartley
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

Hi Simon,

Could you clarify what sorts of tasks are you looking for?

We maintain our styles within the standard GeoServer interface and find that adequate. Admittedly they’re very verbose, but once you have the form of them down they’re easy to copy/paste between them.

Cheers,

Jonathan

On 14 May 2014 14:18, Simon Hartley <SHartley@anonymised.com> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Thank you, that looks interesting.

Simon

From: Justin Deoliveira [mailto:jdeolive@…5876…]
Sent: 14 May 2014 15:35
To: Simon Hartley
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

Hey Simon,

If you have some scripting chops you could also look at GeoScript. It has convenient apis for composing styles. For example to compose the well known population style boils down to (in python):

style = Fill(‘#4DFF4D’, 0.7).where(‘PERSONS < 2000000’)

style += Fill(‘#FF4D4D’,0.7).where(‘PERSONS BETWEEN 2000000 AND 4000000’)

style += Fill(‘#4D4DFF’,0.7).where(‘PERSONS > 4000000’)

style += Stroke(width=0.2) + Label(‘STATE_ABBR’, ‘Times New Roman 14px’)

writeSLD(style, ‘population.sld’)

I have been able to utilize this technique to compose some fairly complex styles. And coupled with geoserver restconfig it leads to a pretty convenient workflow. Anyways, not for everybody but I thought I would mention it.

-Justin

On Wed, May 14, 2014 at 7:18 AM, Simon Hartley <SHartley@…2992…> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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

It was not clear to me what the “speed issues” were. Speed in conversion, or resulting rendering speed from the generated styles.

···

Jody Garnett

On Wed, May 14, 2014 at 7:27 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

On Wed, May 14, 2014 at 3:18 PM, Simon Hartley <SHartley@anonymised.com2992…> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

You could also consider sponsoring a speedup of the css->sld conversion :wink:

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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


I always try and teach styling using the Recode, Interpolate, and Categorize functions first - rather than conditionals. I often end up with a mix of rules based on scale, and se functions to do the work at a given zoom level.

···

Jody Garnett

On Wed, May 14, 2014 at 10:04 AM, Simon Hartley <SHartley@anonymised.com> wrote:

Hi Jonathan,

Using standard SLD is painful because once you have enough conditionals,

you end up having to repeat large blocks and the number of lines becomes huge.

One of the styles generated by the CSS extension was 20 thousand lines of SLD!

Simon Hartley

From: Jonathan Moules [mailto:jonathanmoules@anonymised.com]
Sent: 14 May 2014 15:19
To: Simon Hartley
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

Hi Simon,

Could you clarify what sorts of tasks are you looking for?

We maintain our styles within the standard GeoServer interface and find that adequate. Admittedly they’re very verbose, but once you have the form of them down they’re easy to copy/paste between them.

Cheers,

Jonathan

On 14 May 2014 14:18, Simon Hartley <SHartley@anonymised.com> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

Because ArcGIS is endemic in the organisation, I am always having to move maps styled in mxd to SLD. GeoCat Bridge (not free) does a pretty good job of that.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

When I compare GeoCSS 0.7.2 to 0.7.5 by theselves from Github, the conversion speed of the latter version is 15 times slower.

Simon Hartley

From: Jody Garnett [mailto:jody.garnett@…84…]
Sent: 14 May 2014 21:03
To: Andrea Aime
Cc: Simon Hartley; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

It was not clear to me what the “speed issues” were. Speed in conversion, or resulting rendering speed from the generated styles.

Jody Garnett

On Wed, May 14, 2014 at 7:27 AM, Andrea Aime <andrea.aime@…1107…> wrote:

On Wed, May 14, 2014 at 3:18 PM, Simon Hartley <SHartley@…2992…> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

You could also consider sponsoring a speedup of the css->sld conversion :wink:

Cheers

Andrea

==

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK

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



“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

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

Thanks: I hadn’t noticed that page before:

http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html

Simon Hartley

From: Jody Garnett [mailto:jody.garnett@…84…]
Sent: 14 May 2014 21:05
To: Simon Hartley
Cc: Jonathan Moules; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

I always try and teach styling using the Recode, Interpolate, and Categorize functions first - rather than conditionals. I often end up with a mix of rules based on scale, and se functions to do the work at a given zoom level.

Jody Garnett

On Wed, May 14, 2014 at 10:04 AM, Simon Hartley <SHartley@…2992…> wrote:

Hi Jonathan,

Using standard SLD is painful because once you have enough conditionals,

you end up having to repeat large blocks and the number of lines becomes huge.

One of the styles generated by the CSS extension was 20 thousand lines of SLD!

Simon Hartley

From: Jonathan Moules [mailto:jonathanmoules@…4942…]
Sent: 14 May 2014 15:19
To: Simon Hartley
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Alternatives

Hi Simon,

Could you clarify what sorts of tasks are you looking for?

We maintain our styles within the standard GeoServer interface and find that adequate. Admittedly they’re very verbose, but once you have the form of them down they’re easy to copy/paste between them.

Cheers,

Jonathan

On 14 May 2014 14:18, Simon Hartley <SHartley@…2992…> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

I can see links to a Styler project, but it doesn’t seem to have much progress. Is OpenGeo Suite any good for this?

Thanks a lot

Simon Hartley

.

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

On Thu, May 15, 2014 at 12:02 PM, Simon Hartley <SHartley@anonymised.com>wrote:

Thanks: I hadn’t noticed that page before:

http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html

Btw, these functions can also be used in CSS to further reduce its size

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

-------------------------------------------------------

They look very useful. Are there any examples in doco, etc. of using these 3 functions in CSS Styling ?

···

On Thu, May 15, 2014 at 8:11 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, May 15, 2014 at 12:02 PM, Simon Hartley <SHartley@anonymised.com.2992…> wrote:

Thanks: I hadn’t noticed that page before:

http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html

Btw, these functions can also be used in CSS to further reduce its size

Cheers

Andrea

The performance of the CSS translator is highly dependent on not just the size of the CSS style, but also the nature of the filters involved. In the time frame you mention (GeoServer 2.2.5 to 2.3) I made some changes to the algorithm that traded off performance in some cases for others. Overall it is an improvement (in my estimation) but I’m aware there are some classes of input that suffered. It would be nice to fall back on the old approach in those cases but at the time I wasn’t able to think of a good heuristic. The new approach introduces a preprocessing step before computing the viable combinations of CSS rules, perhaps we could instrument that somehow and fall back to the old approach if it is taking too long.

In either case, the CSS translator itself would definitely become a bottleneck far before the SLD renderer does, even with the giant SLD output from the CSS translator.

···

On Thu, May 15, 2014 at 5:53 AM, Simon Hartley <SHartley@anonymised.com> wrote:

When I compare GeoCSS 0.7.2 to 0.7.5 by theselves from Github, the conversion speed of the latter version is 15 times slower.

Simon Hartley

From: Jody Garnett [mailto:jody.garnett@anonymised.com]
Sent: 14 May 2014 21:03
To: Andrea Aime
Cc: Simon Hartley; geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] SLD Alternatives

It was not clear to me what the “speed issues” were. Speed in conversion, or resulting rendering speed from the generated styles.

Jody Garnett

On Wed, May 14, 2014 at 7:27 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, May 14, 2014 at 3:18 PM, Simon Hartley <SHartley@anonymised.com> wrote:

Hi,

Does anyone have any recommendations for easily building and maintaining SLD styles?

We’ve tried using the GeoServer CSS extension and were initially happy with it, but we’re going to have to abandon it after major speed issues.

You could also consider sponsoring a speedup of the css->sld conversion :wink:

Cheers

Andrea

==

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK

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



“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

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


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

David Winslow

Boundless - http://boundlessgeo.com/

No. You can use any CQL expression in most CSS properties (a few, such as “z-index”, which do not directly correspond to SLD properties, do not allow dynamic expressions.) Any geoserver filter function is available in such expressions. So, for example, the polygon fill example from the SLD docs becomes:

  • {

fill: [Recode(strTrim(SUB_REGION),
‘N Eng’, ‘#6495ED’,
‘Mid Atl’, ‘#B0C4DE’,
‘S Atl’, ‘#00FFFF’,
‘E N Cen’, ‘#9ACD32’,
‘E S Cen’, ‘#00FA9A’,
‘W N Cen’, ‘#FFF8DC’,
‘W S Cen’, ‘#F5DEB3’,
‘Mtn’, ‘#F4A460’,
‘Pacific’, ‘#87CEEB’)];

}

···

On Fri, May 16, 2014 at 6:02 AM, David Collins <david.8.collins@…84…> wrote:

They look very useful. Are there any examples in doco, etc. of using these 3 functions in CSS Styling ?


“Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.”
http://p.sf.net/sfu/SauceLabs


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

David Winslow

Boundless - http://boundlessgeo.com/

On Thu, May 15, 2014 at 8:11 PM, Andrea Aime <andrea.aime@…1107…> wrote:

On Thu, May 15, 2014 at 12:02 PM, Simon Hartley <SHartley@…2992…> wrote:

Thanks: I hadn’t noticed that page before:

http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html

Btw, these functions can also be used in CSS to further reduce its size

Cheers

Andrea

A couple notes on the use of Recode (and friends):

  • GetLegendGraphics is not “aware” of the use of Recode, and does not generate an pretty icon to match
  • I always benchmark Rule based or function based styling, as the results change (sometimes dramatically) depending on the DataStore.

Optimising Recode SQL generation, and fixing up GetLegendGraphic would be an excellent use of funding/enthusiasm for all of us interested in styling performance. While I kind of know what to do for GetLegendGraphic, what would be the most efficient PostGIS representation of the ReCode example David supplied?

On Mon, May 19, 2014 at 6:07 AM, Jody Garnett <jody.garnett@anonymised.com>wrote:

A couple notes on the use of Recode (and friends):

- GetLegendGraphics is not "aware" of the use of Recode, and does not
generate an pretty icon to match

Not so easy. Or else, reasonable only as long as there is just one
recode/interpolate/categorize per rule, say you
start having Recode on two different visual property based on two feature
attributes, how do you start doing a legend for that?
What if there are 3 visual variables controlled like that (fill color,
stroke color, stroke width in a polygon symbolizer)?
You'd have to make a combinatorial... explosion... and list all possible
cases.

- I always benchmark Rule based or function based styling, as the results
change (sometimes dramatically) depending on the DataStore.

I normally use Recode and friends to setup quickly the visual aspects, and
leave the filters to do the filtering (which might result in
some duplication indeed)

Optimising Recode SQL generation, and fixing up GetLegendGraphic would be
an excellent use of funding/enthusiasm for all of us interested in styling
performance. While I kind of know what to do for GetLegendGraphic, what
would be the most efficient PostGIS representation of the ReCode example
David supplied?

You don't translate it fully, as the attribute transformation can change
its nature, so you cannot have the database apply the
translation, but you could in theory inject in the query the list of values
you're translating, hoping they are selective.
I'm not 100% fond of this approach though, in several cases you're going to
just list all possible values for nothing,
but the sql encoder won't know it: leaving recode run in memory still
leaves you the possiblity to specify filters in the rule
that are actually selective.

Cheers
Andrea

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform
available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

-------------------------------------------------------