[Geoserver-users] Label Callouts

2014-08-20 Thread Chris Haste
Hello everyone,

Can someone tell me if Geoserver supports automatic callout style labelling or 
whether there are plans to support it in the near future?

I'm talking about, at a simplistic level, using a line to link the label to the 
feature in the event that the label is moved a significant distance from the 
feature as a result of label placement/decluttering etc.

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

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] graphic-margin

2013-04-11 Thread Chris Haste
Ok, I don't think this is a CSS Module issue at all.

Straight forward SLD such as:
sld:VendorOption name=graphic-resizestretch/sld:VendorOption
sld:VendorOption name=groupfalse/sld:VendorOption
sld:VendorOption name=graphic-margin8 12/sld:VendorOption
Seems to result in the same error on my system.

Although there is a jira ticket from 2010 which implies that this work has been 
done and tested
http://jira.codehaus.org/browse/GEOT-3238

Currently using version 2.2.5. Is anyone else able to verify the same problem?

Brgrds,

Chris

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: 10 April 2013 16:19
To: David Winslow
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS Module Qtn

The info from the pink tile is this:
ServiceExceptionReport version=1.1.1ServiceException 
code=internalError
  Rendering process failed
For input string: quot;8 12 8 12quot;
/ServiceException/ServiceExceptionReport


From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 10 April 2013 14:29
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS Module Qtn

This syntax is the one I'd expect to work:

-gt-shield-margin: 4 8;

Can you review the generated SLD and verify that it contains a VendorParameter 
like this:
sld:VendorOption name=graphic-margin4 8/sld:VendorOption

If so, I think you have encountered a rendering bug.  If you can get us a stack 
trace from your failed rendering requests (aka pink tiles) that would probably 
help us to sort it out.  You can review the GeoServer logs, or simply right 
click or control+click on the affected tile and choose 'View image in new tab' 
or your browser's equivalent.

--
David Winslow
OpenGeo - http://opengeo.org/

On Wed, Apr 10, 2013 at 8:39 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello List,

I'm trying to use the -gt-shield-margin property in conjunction with an SVG 
shield symbol and -gt-shield-resize = stretch.

I can't seem to get the behaviour I'm expecting.

-gt-shield-margin: 8;
Behaves as advertised and results in an equal border.

-gt-shield-margin: 4,8;
Seems to just act on just the first value and delivers a margin of 4 pixels all 
the way around.

-gt-shield-margin:4 8;
Results in pink tiles.

I'm wondering if it is because I'm using -gt-shield-resize:stretch or some 
other reason?

Any help gratefully received.

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

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] CSS Module Qtn

2013-04-10 Thread Chris Haste
Hello List,

I'm trying to use the -gt-shield-margin property in conjunction with an SVG 
shield symbol and -gt-shield-resize = stretch.

I can't seem to get the behaviour I'm expecting.

-gt-shield-margin: 8;
Behaves as advertised and results in an equal border.

-gt-shield-margin: 4,8;
Seems to just act on just the first value and delivers a margin of 4 pixels all 
the way around.

-gt-shield-margin:4 8;
Results in pink tiles.

I'm wondering if it is because I'm using -gt-shield-resize:stretch or some 
other reason?

Any help gratefully received.

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

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] CSS Module Qtn

2013-04-10 Thread Chris Haste
The info from the pink tile is this:
ServiceExceptionReport version=1.1.1ServiceException 
code=internalError
  Rendering process failed
For input string: quot;8 12 8 12quot;
/ServiceException/ServiceExceptionReport


From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 10 April 2013 14:29
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS Module Qtn

This syntax is the one I'd expect to work:

-gt-shield-margin: 4 8;

Can you review the generated SLD and verify that it contains a VendorParameter 
like this:
sld:VendorOption name=graphic-margin4 8/sld:VendorOption

If so, I think you have encountered a rendering bug.  If you can get us a stack 
trace from your failed rendering requests (aka pink tiles) that would probably 
help us to sort it out.  You can review the GeoServer logs, or simply right 
click or control+click on the affected tile and choose 'View image in new tab' 
or your browser's equivalent.

--
David Winslow
OpenGeo - http://opengeo.org/

On Wed, Apr 10, 2013 at 8:39 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello List,

I'm trying to use the -gt-shield-margin property in conjunction with an SVG 
shield symbol and -gt-shield-resize = stretch.

I can't seem to get the behaviour I'm expecting.

-gt-shield-margin: 8;
Behaves as advertised and results in an equal border.

-gt-shield-margin: 4,8;
Seems to just act on just the first value and delivers a margin of 4 pixels all 
the way around.

-gt-shield-margin:4 8;
Results in pink tiles.

I'm wondering if it is because I'm using -gt-shield-resize:stretch or some 
other reason?

Any help gratefully received.

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

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Where to start?

2013-02-06 Thread Chris Haste
Hello list,

I really haven't a clue where to start with this so any pointers would be 
gratefully received.

I have a global data set residing in a postgres/postgis database. The 
geographic spread of the data is random, some areas have a lot of points 
whereas others have quite sparse points. The data basically boils down to a 
location and an integer value between 0 and 4.

I would like to represent this data as a series of fixed sized cells (shape not 
important but hexagonal would look nice!). If no data point resides within a 
cell I'd like to colour the cell purple. If more than one data point resides 
within a cell I'd like to colour it based on only the highest number amongst 
those points within the cell.

I'd like the cells to completely cover (and probably be clipped by) by 
coastline data. The net effect I'm after would be the landmasses shown as a 
patchwork of coloured cells.

I have tried playing around with a gs:BarnesSurface but I don't see able to get 
the results I'm after with this method. Any ideas?

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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SVG Marks

2013-01-31 Thread Chris Haste
Hi Martin,

I simply made sure that the SVG symbol was defined on a square grid (100x100) 
and that the point I wanted as the reference point was located in the middle 
i.e. 50,50. Once this was done the symbols were positioned exactly where they 
should have been.

From: Martin Davis [mailto:mtncl...@gmail.com]
Sent: 30 January 2013 23:16
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SVG Marks

Chris, what exact technique did you use to solve the problem?  Did you use the 
invisible circle technique?   Any chance you could post your SVG file to look 
at?
On Wed, Jan 30, 2013 at 9:38 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Thank you, that was the problem and it is now behaving as it should

From: Ákos Maróy [mailto:a...@maroy.humailto:a...@maroy.hu]
Sent: 30 January 2013 17:05
To: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] SVG Marks

On 30/01/13 17:22, Chris Haste wrote:
Hello List,

I want to use an external SVG symbol as a mark and I'm using the CSS module for 
my styling, although I don't think that makes any difference to this question.

The SVG represents a pin and I want to position the pin so that the base of the 
pin is drawn at the position for that point, but the pins all seem to be drawn 
quite away to the left of the actual position.

What considerations do I need to take into account in order to be able to 
accurately position the SVG symbol relative to the reference coordinate?

what you have to achieve is that the 'middle point' of your SVG is the point 
you want to align with the depicted point on the map. if this is not the case 
for the natural shape of the SVG, you might want to add a non-visible element 
to the SVG itself (say, a circle that encoloses all of the SVG, with the 
circles center point being your wanted center point), and use the SVG that way.

from my experience, the SLD rendering engine will try to 'center' the SVG so 
that its center point is the point of reference being drawn. (and the CSS 
styling is based on the SLD styling)

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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] SVG Marks

2013-01-30 Thread Chris Haste
Hello List,

I want to use an external SVG symbol as a mark and I'm using the CSS module for 
my styling, although I don't think that makes any difference to this question.

The SVG represents a pin and I want to position the pin so that the base of the 
pin is drawn at the position for that point, but the pins all seem to be drawn 
quite away to the left of the actual position.

What considerations do I need to take into account in order to be able to 
accurately position the SVG symbol relative to the reference coordinate?

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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SVG Marks

2013-01-30 Thread Chris Haste
Hi Jonathan,

It isn't a fixed value. The offset seems related to the zoom. As I zoom in the 
symbols moves closer and closer to where it should be and as I zoom out it 
moves further away!

I'm sure this is something obvious and that I'm doing something stupid...


From: Jonathan Moules [mailto:jonathanmou...@warwickshire.gov.uk]
Sent: 30 January 2013 16:36
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SVG Marks

Hi Chris,
  Well, if the offset is consistently wrong (i.e., always 3 pixels too far left 
for instance) the SLD spec may allow you to use a displacement parameter (you 
can for fills with SLD 1.1).

Jonathan


On 30 January 2013 16:22, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello List,

I want to use an external SVG symbol as a mark and I'm using the CSS module for 
my styling, although I don't think that makes any difference to this question.

The SVG represents a pin and I want to position the pin so that the base of the 
pin is drawn at the position for that point, but the pins all seem to be drawn 
quite away to the left of the actual position.

What considerations do I need to take into account in order to be able to 
accurately position the SVG symbol relative to the reference coordinate?

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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
 _ __
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto: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 
sensitive or protectively marked material up to RESTRICTED 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.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SVG Marks

2013-01-30 Thread Chris Haste
Thank you, that was the problem and it is now behaving as it should

From: Ákos Maróy [mailto:a...@maroy.hu]
Sent: 30 January 2013 17:05
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SVG Marks

On 30/01/13 17:22, Chris Haste wrote:
Hello List,

I want to use an external SVG symbol as a mark and I'm using the CSS module for 
my styling, although I don't think that makes any difference to this question.

The SVG represents a pin and I want to position the pin so that the base of the 
pin is drawn at the position for that point, but the pins all seem to be drawn 
quite away to the left of the actual position.

What considerations do I need to take into account in order to be able to 
accurately position the SVG symbol relative to the reference coordinate?

what you have to achieve is that the 'middle point' of your SVG is the point 
you want to align with the depicted point on the map. if this is not the case 
for the natural shape of the SVG, you might want to add a non-visible element 
to the SVG itself (say, a circle that encoloses all of the SVG, with the 
circles center point being your wanted center point), and use the SVG that way.

from my experience, the SLD rendering engine will try to 'center' the SVG so 
that its center point is the point of reference being drawn. (and the CSS 
styling is based on the SLD styling)
*** 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.***

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] CSS and ColorMaps

2013-01-28 Thread Chris Haste
Thanks David.

I will try to take a look when I have a few spare moments as I would love to be 
able to keep all my styling in CSS without mix and matching with SLD, so once I 
get around to looking at it I'll happily provide feedback.

Thanks

Chris

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 28 January 2013 17:33
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS and ColorMaps

No, you can't do this right now.  I've actually been working on it a bit 
recently (raster styling doesn't work all that naturally in CSS, but it seems 
like a prerequisite for styling transformations):
https://github.com/dwins/geoscript.scala/commits/raster-styling

If you're interested in trying it out I'd love some feedback, but I don't think 
I can support builds of this experimental branch, so you'd have to build it 
yourself from sources (feel free to bug me off-list for details.)  I don't have 
things documented yet but at least the property names for raster styles are all 
together in the sources: 
https://github.com/dwins/geoscript.scala/blob/9ff23dccfed0201f3c05cde80456386336323f70/geocss/src/main/scala/org/geoscript/geocss/Translator.scala#L622-L644

A basic raster style would look like:

* {
  raster-channels: auto;
  raster-color-map:
color-map-entry(black, 0)
color-map-entry(red, 100)
color-map-entry(green, 200);
}

--
David Winslow
OpenGeo - http://opengeo.org/

On Mon, Jan 28, 2013 at 12:17 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello everyone,

Is it possible to define a colormap using the CSS module?

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

--
Master Visual Studio, SharePoint, SQL, ASP.NEThttp://ASP.NET, C# 2012, HTML5, 
CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] CSS -gt-shield-margin

2013-01-23 Thread Chris Haste
Hi Andrea,

I wasn't chasing it up, I was just wanting to check you received it :)

Thanks

From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: 23 January 2013 09:08
To: Chris Haste
Cc: David Winslow; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS -gt-shield-margin

On Wed, Jan 23, 2013 at 9:44 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Andrea,

I emailed the log to you directly, did you get it?

Yes, I got it, but I haven't found any time to look into it yet.
If you need priority support there are support contracts that provide that, 
this mailing
list is where people answer each other in their spare time

The user posting guidelines provide some more detail on this an other topics
of relevance for users of this mailing list:
http://geoserver.org/display/GEOS/GeoServer+user+list+posting+guidelines

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 Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Label shields as direction indicators

2013-01-21 Thread Chris Haste
Thank you David.

I will try this this morning.

Another related question though. When I define an SVG symbol for use like this 
how big should the original symbol be or does it not matter and it is 'tuned' 
via the symbol size values in the SLD/CSS?

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 18 January 2013 15:26
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Label shields as direction indicators

I believe the shield will be rotated along with the text when you use 
VendorOption name=followLinetrue/VendorOption

If so, it seems that you can use select an icon based on the direction 
attribute.  SVG icons would be good - when you have GeoServer manipulating your 
icons, storing them in a vector format helps to reduce visual artifacts.  If 
SVG's not an option for whatever reason, using high-resolution icons can also 
help avoid problems.

I've attached CSS (using the community module) and SVG examples, hope it helps.

--
David Winslow
OpenGeo - http://opengoe.org/

On Fri, Jan 18, 2013 at 7:06 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello List,

I would like to be able to render road numbers inside a shield where the shield 
itself is used to indicate direction. I'm guessing that I would require 3 
different shield symbols (SVG?), or possibly just two if one can be rotated. 
One symbol would be a rectangle with an arrow at each end (indicating 
bidirectional) the other(s) a rectangle with just the arrow at one end 
(indicating direction)

So, I have a couple of questions:

* Is this the correct approach for achieving this objective?

* How do you control the orientation of a label shield in order to have 
the arrow pointing in the correct direction?

The data has an attribute of Forward, Backward or Both relative to the order in 
which the line is defined.

Any helps or pointers greatly appreciated.

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

--
Master HTML5, CSS3, ASP.NEThttp://ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 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_122412___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Label shields as direction indicators

2013-01-18 Thread Chris Haste
Hello List,

I would like to be able to render road numbers inside a shield where the shield 
itself is used to indicate direction. I'm guessing that I would require 3 
different shield symbols (SVG?), or possibly just two if one can be rotated. 
One symbol would be a rectangle with an arrow at each end (indicating 
bidirectional) the other(s) a rectangle with just the arrow at one end 
(indicating direction)

So, I have a couple of questions:

* Is this the correct approach for achieving this objective?

* How do you control the orientation of a label shield in order to have 
the arrow pointing in the correct direction?

The data has an attribute of Forward, Backward or Both relative to the order in 
which the line is defined.

Any helps or pointers greatly appreciated.

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

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Polygons with outlines using gradients

2013-01-11 Thread Chris Haste
Hello all,

Is it possible to style polygons so that their outline appears as a gradient? 
I'd like to define a coastline, for example, using a line that is, say 5 pixels 
wide, but whose colour fades to transparent. The gradient should be oriented 
with the solid colour closest to the inside of the polygon and the lighter 
colour furthest away from the polygon.

Not the best explanation, but hopefully you will understand what I mean!

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

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Urgent: IEEERemainder Issue

2013-01-08 Thread Chris Haste
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.a...@gmail.com [mailto:andrea.a...@gmail.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 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] gs:Heatmap problems

2013-01-08 Thread Chris Haste
Well my initial attempts at this are resulting in nothing being displayed, so 
I'd like to check whether I have some of the basics correct.

I have an SQL View Layer called TemperatureMap. The SQL in this view returns a 
table of two columns: location of type Point and temperature of type Float.

I have set the appropriate (I think) parts of the SLD as follows:
   NamedLayer
 NameTemperatureMap/Name
 UserStyle
...
   ogc:Function name=gs:BarnesSurface
 ogc:Function name=parameter
   ogc:Literaldata/ogc:Literal
 /ogc:Function
. . .
 ogc:Function name=parameter
   ogc:LiteralvalueAttr/ogc:Literal
   ogc:Literaltemperature/ogc:Literal
 /ogc:Function

Is this correct?

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: 08 January 2013 14:20
To: Andrea Aime
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

Ah!

Thanks Andrea, I will go and try that one!

From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: 08 January 2013 14:18
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:14 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi Andrea,

I'm not sure I understand. Are you saying that I don't have a sufficient number 
of points in my data? I have a regular grid of points covering the entire globe 
at 1.25 x 1.25 degree intervals. Is this not dense enough?

I'm saying a heatmap shows a color based on the different concentration of 
points, not their value, so if the grid is regular it's normal that
you get a solid color.

If you want to interpolate a value contained in the attributes of the points 
instead you have to use the Barnes surface instead.
See some docs here: http://suite.opengeo.org/docs/cartography/rt/barnes.html

Cheers
Andrea


From: andrea.a...@gmail.commailto:andrea.a...@gmail.com 
[mailto:andrea.a...@gmail.commailto:andrea.a...@gmail.com] On Behalf Of 
Andrea Aime
Sent: 08 January 2013 14:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:03 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi List,

I have been trying to use the new heatmap transformation in version 2.2.3 but I 
think I must be doing something wrong.
I wish to display a layer defined using an SQL view. The query simply returns a 
Grid of points and for each point there is a temperature value, I am using the 
round function in the query to round the temperature value to the nearest 
integer.

I am using the SLD below, copied from the example and modified to (hopefully) 
work with my data. However, the entire map is produced in one colour (#00) 
but when I query the map by clicking on it in an Openlayers preview it shows 
correct values for the Temperatures and different locations on the map yield 
different values.

Any ideas?

Heatmaps are about point density, if you want to interpolation function you 
should look at the Barnes surface transformation
instead

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 962313tel:%2B39%200584%20962313
fax: +39 0584 1660272tel:%2B39%200584%201660272
mob: +39  339 8844549tel:%2B39%20%C2%A0339%208844549

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



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

Re: [Geoserver-users] gs:Heatmap problems

2013-01-08 Thread Chris Haste
Another thing that may be a problem is the size of my dataset.. Worldwide it 
consists of 41,760 points. Is this too large a number for the Transformation to 
handle?

From: Chris Haste
Sent: 08 January 2013 15:18
To: Chris Haste; Andrea Aime
Cc: geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] gs:Heatmap problems

Well my initial attempts at this are resulting in nothing being displayed, so 
I'd like to check whether I have some of the basics correct.

I have an SQL View Layer called TemperatureMap. The SQL in this view returns a 
table of two columns: location of type Point and temperature of type Float.

I have set the appropriate (I think) parts of the SLD as follows:
   NamedLayer
 NameTemperatureMap/Name
 UserStyle
...
   ogc:Function name=gs:BarnesSurface
 ogc:Function name=parameter
   ogc:Literaldata/ogc:Literal
 /ogc:Function
. . .
 ogc:Function name=parameter
   ogc:LiteralvalueAttr/ogc:Literal
   ogc:Literaltemperature/ogc:Literal
 /ogc:Function

Is this correct?

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: 08 January 2013 14:20
To: Andrea Aime
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

Ah!

Thanks Andrea, I will go and try that one!

From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: 08 January 2013 14:18
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:14 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi Andrea,

I'm not sure I understand. Are you saying that I don't have a sufficient number 
of points in my data? I have a regular grid of points covering the entire globe 
at 1.25 x 1.25 degree intervals. Is this not dense enough?

I'm saying a heatmap shows a color based on the different concentration of 
points, not their value, so if the grid is regular it's normal that
you get a solid color.

If you want to interpolate a value contained in the attributes of the points 
instead you have to use the Barnes surface instead.
See some docs here: http://suite.opengeo.org/docs/cartography/rt/barnes.html

Cheers
Andrea


From: andrea.a...@gmail.commailto:andrea.a...@gmail.com 
[mailto:andrea.a...@gmail.commailto:andrea.a...@gmail.com] On Behalf Of 
Andrea Aime
Sent: 08 January 2013 14:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:03 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi List,

I have been trying to use the new heatmap transformation in version 2.2.3 but I 
think I must be doing something wrong.
I wish to display a layer defined using an SQL view. The query simply returns a 
Grid of points and for each point there is a temperature value, I am using the 
round function in the query to round the temperature value to the nearest 
integer.

I am using the SLD below, copied from the example and modified to (hopefully) 
work with my data. However, the entire map is produced in one colour (#00) 
but when I query the map by clicking on it in an Openlayers preview it shows 
correct values for the Temperatures and different locations on the map yield 
different values.

Any ideas?

Heatmaps are about point density, if you want to interpolation function you 
should look at the Barnes surface transformation
instead

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 962313tel:%2B39%200584%20962313
fax: +39 0584 1660272tel:%2B39%200584%201660272
mob: +39  339 8844549tel:%2B39%20%C2%A0339%208844549

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



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

Ing

Re: [Geoserver-users] gs:Heatmap problems

2013-01-08 Thread Chris Haste
Thanks for the input Martin.

I can understand that 41K points may be an issue but even when I request a much 
smaller bounding box in order to significantly reduce the number of points 
being used I still don't get anything displayed.

The data is a regular grid of points with a 1.25 x 1.25 degree spacing. The CRS 
is EPSG:4326. Would you be able to suggest suitable values for the other 
parameters, namely:
Scale, convergence, minObservations, maxObservationDistance (not sure if this 
should be meters or degrees), pixelsPerCell and queryBuffer?

From: Martin Davis [mailto:mda...@opengeo.org]
Sent: 08 January 2013 17:28
To: Chris Haste
Cc: Andrea Aime; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

Looks ok as far as it goes, but the other parameters are important as well.

41K points is probably pushing the bounds of BarnesSurface a bit too much.  
it's really designed to interpolate relatively few scattered observations.

If you have a regular grid of observations there's probably better and faster 
algorithms to use (although I'm not sure what would be the best choice.



On Tue, Jan 8, 2013 at 7:18 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Well my initial attempts at this are resulting in nothing being displayed, so 
I'd like to check whether I have some of the basics correct.

I have an SQL View Layer called TemperatureMap. The SQL in this view returns a 
table of two columns: location of type Point and temperature of type Float.

I have set the appropriate (I think) parts of the SLD as follows:
   NamedLayer
 NameTemperatureMap/Name
 UserStyle
...
   ogc:Function name=gs:BarnesSurface

 ogc:Function name=parameter
   ogc:Literaldata/ogc:Literal
 /ogc:Function
. . .
 ogc:Function name=parameter
   ogc:LiteralvalueAttr/ogc:Literal

   ogc:Literaltemperature/ogc:Literal
 /ogc:Function

Is this correct?

From: Chris Haste [mailto:cha...@airdata.co.ukmailto:cha...@airdata.co.uk]
Sent: 08 January 2013 14:20
To: Andrea Aime

Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

Ah!

Thanks Andrea, I will go and try that one!

From: andrea.a...@gmail.commailto:andrea.a...@gmail.com 
[mailto:andrea.a...@gmail.commailto:andrea.a...@gmail.com] On Behalf Of 
Andrea Aime
Sent: 08 January 2013 14:18
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:14 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi Andrea,

I'm not sure I understand. Are you saying that I don't have a sufficient number 
of points in my data? I have a regular grid of points covering the entire globe 
at 1.25 x 1.25 degree intervals. Is this not dense enough?

I'm saying a heatmap shows a color based on the different concentration of 
points, not their value, so if the grid is regular it's normal that
you get a solid color.

If you want to interpolate a value contained in the attributes of the points 
instead you have to use the Barnes surface instead.
See some docs here: http://suite.opengeo.org/docs/cartography/rt/barnes.html

Cheers
Andrea


From: andrea.a...@gmail.commailto:andrea.a...@gmail.com 
[mailto:andrea.a...@gmail.commailto:andrea.a...@gmail.com] On Behalf Of 
Andrea Aime
Sent: 08 January 2013 14:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] gs:Heatmap problems

On Tue, Jan 8, 2013 at 3:03 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi List,

I have been trying to use the new heatmap transformation in version 2.2.3 but I 
think I must be doing something wrong.
I wish to display a layer defined using an SQL view. The query simply returns a 
Grid of points and for each point there is a temperature value, I am using the 
round function in the query to round the temperature value to the nearest 
integer.

I am using the SLD below, copied from the example and modified to (hopefully) 
work with my data. However, the entire map is produced in one colour (#00) 
but when I query the map by clicking on it in an Openlayers preview it shows 
correct values for the Temperatures and different locations on the map yield 
different values.

Any ideas?

Heatmaps are about point density, if you want to interpolation function you 
should look at the Barnes surface transformation
instead

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 962313tel:%2B39%200584%20962313
fax: +39 0584 1660272tel

Re: [Geoserver-users] CSS Question

2013-01-04 Thread Chris Haste
A bit belated, only just got back to this, but...

Thank you! Yes, that does help and make things clearer.

Brgrds,

Chris

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 06 December 2012 14:55
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS Question

I added some examples to the examples page about this topic. It'll be a little 
while before it shows up on docs.geoserver.orghttp://docs.geoserver.org, but 
you can see it immediately at:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/community/css/examples.rst

Hope it clears things up for you!

--
David Winslow
OpenGeo - http://opengeo.org/

On Thu, Dec 6, 2012 at 5:14 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello list!

I am using an SQL view which returns multiple geometries in each row.
Each row represents a trip and contains  Departure and Destination points and a 
linestring representing the route taken.
I'm not sure how to use CSS to define different symbols based on the SQL 
columns. E.g. use a triangle for the Departure and a square for the Destination
I would like to do something like this:
[Departure]{
  mark:symbol(triangle);
}

[Destination]{
  Mark:symbol(square);
}

But that doesn't appear to be the way to go ;)

Any help appreciated!

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

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Decluttering/SLD/CSS

2013-01-04 Thread Chris Haste
Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right 
direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order 
to manage the clarity of the map. I also understand how to display or not 
display point symbols based on zoom level filters.

BUT I can't work out how to control drawing symbols with the same degree of 
control as I have over labels.

I have points on a map that are more important than others but are all in the 
same layer. In areas where there are a lot of points, and the scale doesn't 
support drawing them all clearly, I want to only display just the important 
ones (and their labels) but as the user zooms in and the screen real-estate 
increases I want to display more i.e. include the less important points. This 
is all doable via the scale filters, but causes an undesirable issue in areas 
where there are a low numbers of points - they only become visible when you are 
zoomed in. In these areas I would like to be able to display the less important 
points at the same time as limiting the display of points in the more congested 
areas to only show the important ones.

Any ideas on how to achieve this?

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

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

2013-01-04 Thread Chris Haste
Thanks Stefan,

But my understanding is that that only applies to labels.. it is control over 
the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:stefan.engelha...@hbt.de]
Sent: 04 January 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,
without having done it by myself, I would expect, that priority would give you 
what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers
Stefan

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right 
direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order 
to manage the clarity of the map. I also understand how to display or not 
display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of 
control as I have over labels.

I have points on a map that are more important than others but are all in the 
same layer. In areas where there are a lot of points, and the scale doesn’t 
support drawing them all clearly, I want to only display just the important 
ones (and their labels) but as the user zooms in and the screen real-estate 
increases I want to display more i.e. include the less important points. This 
is all doable via the scale filters, but causes an undesirable issue in areas 
where there are a low numbers of points – they only become visible when you are 
zoomed in. In these areas I would like to be able to display the less important 
points at the same time as limiting the display of points in the more congested 
areas to only show the important ones.

Any ideas on how to achieve this?

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.***
--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ 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_122812___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

2013-01-04 Thread Chris Haste
Ahh, now that is interesting. I did wonder about going down that route.

Would anyone know if that 'abuse' is workable using CSS?

From: Edward Mac Gillavry [mailto:emacgilla...@hotmail.com]
Sent: 04 January 2013 13:41
To: Chris Haste; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Chris,

That's right: the approach I outlined in my previous posting achieves a z-order 
of the rendering, though it doesn't address the overlap. A next approach is 
actually to abuse the TextSymbolizer:

1. Use a type face that contains the symbols you would like to plot, e.g, 
OpenSymbol, Symbol

2. A TextSymbolizer tag can actually contain an ExternalGraphic tag, 
typically used to render so-called highway shields. You would put a space or 
dot for a label and add an ExternalGraphic-tag to hold the symbol would like 
to plot:

TextSymbolizer
Label./Label
Font
CssParameter name=font-familyLiberation Sans/CssParameter
CssParameter name=font-size10/CssParameter
/Font
LabelPlacement
PointPlacement
AnchorPoint
AnchorPointX0.5/AnchorPointX
AnchorPointY0.5/AnchorPointY
/AnchorPoint
/PointPlacement
/LabelPlacement
Fill
CssParameter name=fill#ff/CssParameter
/Fill
Graphic
ExternalGraphic
OnlineResource xlink:type=simple xlink:href=/symbols/red.svg/
Formatimage/svg+xml/Format
/ExternalGraphic

/Graphic
Priority15/Priority
VendorOption name=spaceAround20/VendorOption
/TextSymbolizer

If you are using a dot for a label, make sure to have it the same colour as 
your symbol ;-)

HTH

Edward



From: cha...@airdata.co.uk
To: emacgilla...@hotmail.com
Date: Fri, 4 Jan 2013 08:03:22 -0500
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS
Thanks Edward.

If I understand you correctly that will simply achieve a sort of z-order to the 
rendering - placing the important symbols on top of the less important ones? If 
that is the case it isn't really what I am trying to achieve as that would look 
rather messy. I want to hide the less important symbols if there isn't room to 
render them.

From: Edward Mac Gillavry [mailto:emacgilla...@hotmail.com]
Sent: 04 January 2013 12:29
To: Chris Haste; stefan.engelha...@hbt.de; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Use multiple FeatureTypeStyle tags in your SLD. First FeatureTypeStyle tags 
contain least important symbols, while consecutive FeatureTypeStyle-tags 
contain more important symbols. You can use the ogc:Filter to specify the 
attribute that indicates the importance of the symbol.

Each FeatureTypeStyle tag makes a full scan of the table and draws only the 
features that satisfy the ogc:Filter statement. Thus the most important 
symbols are drawn last on top of the less important symbols.

Regards,

Edward

From: cha...@airdata.co.uk
To: stefan.engelha...@hbt.de; geoserver-users@lists.sourceforge.net
Date: Fri, 4 Jan 2013 07:04:45 -0500
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS
Thanks Stefan,

But my understanding is that that only applies to labels.. it is control over 
the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:stefan.engelha...@hbt.de]
Sent: 04 January 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,
without having done it by myself, I would expect, that priority would give you 
what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers
Stefan

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right 
direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order 
to manage the clarity of the map. I also understand how to display or not 
display point symbols based on zoom level filters.

BUT I can't work out how to control drawing symbols with the same degree of 
control as I have over labels.

I have points on a map that are more important than others but are all in the 
same layer. In areas where there are a lot of points, and the scale doesn't 
support drawing them all clearly, I want to only display just the important 
ones (and their labels) but as the user zooms in and the screen real-estate 
increases I want to display more i.e. include the less important points. This 
is all doable via the scale filters, but causes an undesirable issue in areas 
where there are a low numbers of points - they only become visible when you are 
zoomed

[Geoserver-users] CSS Question

2012-12-06 Thread Chris Haste
Hello list!

I am using an SQL view which returns multiple geometries in each row.
Each row represents a trip and contains  Departure and Destination points and a 
linestring representing the route taken.
I'm not sure how to use CSS to define different symbols based on the SQL 
columns. E.g. use a triangle for the Departure and a square for the Destination
I would like to do something like this:
[Departure]{
  mark:symbol(triangle);
}

[Destination]{
  Mark:symbol(square);
}

But that doesn't appear to be the way to go ;)

Any help appreciated!

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

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Projections

2012-06-08 Thread Chris Haste
Hi Guys,

This is a two stage question. Warning: some parts may be dumb! ;-)

I'm using geoserver in conjunction with postgres and postgis.

Is it possible to request maps using projections that are defined dynamically?

And if yes, how would you define a projection defined along the following 
lines.. The same as Polar Stereographic but centred on a longitude/latitude 
anywhere on the Earth's surface. Ideally with a way to specify the geographic 
extents of the 'map'.

I'm not sure how these extents would be defined but probably either by 
specifying a radius in nautical miles from the centre point or perhaps in terms 
of number of degrees of longitude/latitude from the centre point or something 
else entirely?

Ideally, what I would like is to be able to define a point on the Earth along 
with some way of indicating how much of the earth's service is required and 
convert this into whatever projection information is necessary to allow 
geoserver to render it correctly.

Any ideas/help greatly appreciated.

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Label / Character Question

2012-05-23 Thread Chris Haste
Thanks David,

I had already used this approach but it didn't seem to allow me to achieve an 
effect I was after...

I have used this approach to show a symbol and on another layer I need to show 
a text value next to it.. but the automatic moving of the label as part of the 
conflict resolution didn't appear to be behaving as I expected and I assumed it 
was because the 'symbol' wasn't being treated as a label.. hence why I was then 
trying to do the same thing using labels.

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 23 May 2012 3:00 PM
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Label / Character Question

http://blog.geoserver.org/2008/12/16/dynamic-symbolizers-part-2/

GeoServer uses a custom WellKnownMark instead of Labels for this sort of thing.

--
David Winslow
OpenGeo - http://opengeo.org/
On Wed, May 23, 2012 at 8:00 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi All,

I'm using the CSS module and I have a curiosity question..

If I want to reference a character within a font by its hex representation 
using the Label command how would I do that?

I have tried..

label: [strConcat('#0x00',hex)];

where hex is a value from the dataset e.g. E3 or FC

and various other combinations of the above and each time Geoserver renders the 
string e.g. '#0x00E3' and not the character.

Any help appreciated!

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] SLD Rotation

2012-05-15 Thread Chris Haste
Hi All,

I have a question.. If I want to use the ESRI Weather font to display symbols 
that indicate wind speed and direction then that would appear to be quite 
straight forward in a Cartesian projection as rotating the symbol to the value 
given for the wind direction will give the correct result.

But I suspect, and this is my question, that when the background map is 
projected into, for example, a polar stereographic projection rotating the 
symbols via the SLD will give incorrect results.

Could someone confirm this suspicion and maybe point me in the direction of how 
to ensure that the TTF symbol rotation is always correct regardless of the 
projection?

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Rookie Question

2012-05-15 Thread Chris Haste
Hi All,

I'm trying to get to grips with CQL...

Could someone please tell me why this doesn't work;
mark: symbol('ttf://ESRI Weather${strConcat(#0x00,EC}');

whereas this does;
mark: symbol('ttf://ESRI Weather#0x00EC');

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Rookie Question

2012-05-15 Thread Chris Haste
Thank you David,

It was the missing bracket - doh!

In reality im not really wanting to just join two strings, I was using that as 
a simple example to see if the CQL syntax was correct. I really need to be able 
to calculate the EC part of that example. Which is a simple calculation but I'm 
not sure how to represent the result (easily) in hexadecimal notation.

I believe that the font expects the required character to be specified as 
0x00?? Where the ?? is the number that I'm calculating (in decimal)

Does CQL have a function to convert decimal to hex?

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 15 May 2012 1:55 PM
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Rookie Question

On Tue, May 15, 2012 at 8:02 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi All,

I'm trying to get to grips with CQL...

Could someone please tell me why this doesn't work;
mark: symbol('ttf://ESRI Weather${strConcat(#0x00,EC}');

If this is exactly what you have in your style then it is simply an invalid CQL 
expression: you need to close the parentheses before you close your ${} block:

   mark: symbol('ttf://ESRI Weather${strConcat(#0x00,EC)}');

By the way, strConcat is rarely, if ever, necessary in dynamic symbolizers. 
Instead of ${strConcat(prefix, suffix)} you can use the more concise 
${prefix}${suffix}.  So I would write your example as:

   mark: symbol('ttf://ESRI Weather${#0x00}${EC}');

There's one less level of nesting this way, and I think it's easier to count 
the braces.
--
David Winslow
OpenGeo - http://opengeo.org/
*** 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.***

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SLD Rotation

2012-05-15 Thread Chris Haste
Thanks for the input Andrea and Stephen.

I was surprised that the potential answer was as simple as just increasing the 
rotation by the longitude. I don't really need to support any weird and 
wonderful projections mainly Mercator and Polar so from what you have said this 
approach should work for me.

Again thanks!

-Original Message-
From: Stephen V. Mather [mailto:s...@clevelandmetroparks.com] 
Sent: 15 May 2012 3:09 PM
To: 'Andrea Aime'
Cc: Chris Haste; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] SLD Rotation

Yes, a generic solution would be more meaningful, and probably less work in the 
long run.

Stephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
s...@clevelandmetroparks.com
clevelandmetroparks.com





-Original Message-
From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: Tuesday, May 15, 2012 8:22 AM
To: s...@clevelandmetroparks.com
Cc: Chris Haste; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD Rotation

On Tue, May 15, 2012 at 2:13 PM, Stephen V. Mather 
s...@clevelandmetroparks.com wrote:
 The additional rotation is proportional to the longitude in some 
 non-cylindrical cases (at least some conical and pole-centered
stereographic
 projections), so it's trivial for _some_ cases... .  :)  It's quite
trivial
 in some cylindrical projections.

Yep, I did not even consider a projection specific approach, doing the fully 
general case, not having any assumption in the code about the actual projection 
is doable, just not trivial

Cheers
Andrea


--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf



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



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Another CSS question

2012-05-11 Thread Chris Haste
Hello all / David,

I have yet another CSS question...

Assuming it is possible, how would you represent the following SLD as CSS?

  Rotation
ogc:Function name=if_then_else
  ogc:Function name=equalTo
ogc:PropertyNamefixedspeed/ogc:PropertyName
ogc:Literal0/ogc:Literal
  /ogc:Function
  ogc:Literal0/ogc:Literal
  ogc:Function name=toDegrees
ogc:PropertyNameangle/ogc:PropertyName
  /ogc:Function
/ogc:Function
  /Rotation

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Another CSS question

2012-05-11 Thread Chris Haste
Thank you to both of you.

That does work fine.

My last issue is around converting the following to CSS
OnlineResource xlink:type=simple 
xlink:href=wind/wind${strConcat(fixedspeed, northernhemisphere)}.svg /
Formatimage/svg+xml/Format

Even when I try and break this down to something quite simple e.g.
  mark: url(strconcat('wind/wind50','.svg'));

in order to try and work out where things are going wrong it generates an 
exception; org.apache.wicket.WicketRuntimeException: 
javax.xml.transform.TransformerException: Translator error

Any ideas on how to achieve this?

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 11 May 2012 2:36 PM
To: Charles Galpin
Cc: Chris Haste; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Another CSS question

What Charles suggests should work just fine.  I would also like to point out 
that [if_then_else] is just a filter function and works fine in CSS.

* {
  mark-rotation: [
if_then_else(equalTo(fixedspeed, 0),
0,
toDegrees(angle)
)
  ]
}

As long as you're good at counting parentheses it's not too bad :P

--
David Winslow
OpenGeo - http://opengeo.org/

On Fri, May 11, 2012 at 8:53 AM, Charles Galpin 
cgal...@lhsw.commailto:cgal...@lhsw.com wrote:
Hi Chris

You take advantage of the cascading rules in CSS so you would default it to 
zero, then add a rule to rotate. I believe something like this will work

* {
  mark-rotation: 0
  ...
}

[fixedspeed != 0] {
  mark-rotation: [toDegrees(angle)];
}

hth
charles

On May 11, 2012, at 8:23 AM, Chris Haste wrote:

Hello all / David,

I have yet another CSS question...

Assuming it is possible, how would you represent the following SLD as CSS?

  Rotation
ogc:Function name=if_then_else
  ogc:Function name=equalTo
ogc:PropertyNamefixedspeed/ogc:PropertyName
ogc:Literal0/ogc:Literal
  /ogc:Function
  ogc:Literal0/ogc:Literal
  ogc:Function name=toDegrees
ogc:PropertyNameangle/ogc:PropertyName
  /ogc:Function
/ogc:Function
  /Rotation

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Another CSS question

2012-05-11 Thread Chris Haste
David,

That did work, although I could have sworn that was the first thing I tried!

Thanks for your help :)

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 11 May 2012 3:34 PM
To: Chris Haste
Cc: Charles Galpin; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Another CSS question

Well, there are actually two kinds of functions in GeoServer CSS: css functions 
like url() and symbol(), and CQL functions like [strConcat].  Implementation 
wise, there is no effort to combine the two (and the error message you get 
indicates I didn't even do a very good job of reading expressions that mix them 
:P).

You MAY be able to get it working by using the same syntax you would in SLD:

mark: url(wind/wind${strConcat(fixedspeed, northernhemisphere)}.svg);

If it doesn't work, please let me know (or if you have a Github account you can 
file a bug on the GeoScript scala project yourself):
https://github.com/dwins/geoscript.scala/issues?direction=desclabels=csssort=createdstate=open

--
David Winslow
OpenGeo - http://opengeo.org/

On Fri, May 11, 2012 at 10:26 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Thank you to both of you.

That does work fine.

My last issue is around converting the following to CSS
OnlineResource xlink:type=simple 
xlink:href=wind/wind${strConcat(fixedspeed, northernhemisphere)}.svg /
Formatimage/svg+xml/Format

Even when I try and break this down to something quite simple e.g.
  mark: url(strconcat('wind/wind50','.svg'));

in order to try and work out where things are going wrong it generates an 
exception; org.apache.wicket.WicketRuntimeException: 
javax.xml.transform.TransformerException: Translator error

Any ideas on how to achieve this?

From: David Winslow [mailto:dwins...@opengeo.orgmailto:dwins...@opengeo.org]
Sent: 11 May 2012 2:36 PM
To: Charles Galpin
Cc: Chris Haste; 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Another CSS question

What Charles suggests should work just fine.  I would also like to point out 
that [if_then_else] is just a filter function and works fine in CSS.

* {
  mark-rotation: [
if_then_else(equalTo(fixedspeed, 0),
0,
toDegrees(angle)
)
  ]
}

As long as you're good at counting parentheses it's not too bad :P

--
David Winslow
OpenGeo - http://opengeo.org/

On Fri, May 11, 2012 at 8:53 AM, Charles Galpin 
cgal...@lhsw.commailto:cgal...@lhsw.com wrote:
Hi Chris

You take advantage of the cascading rules in CSS so you would default it to 
zero, then add a rule to rotate. I believe something like this will work

* {
  mark-rotation: 0
  ...
}

[fixedspeed != 0] {
  mark-rotation: [toDegrees(angle)];
}

hth
charles

On May 11, 2012, at 8:23 AM, Chris Haste wrote:

Hello all / David,

I have yet another CSS question...

Assuming it is possible, how would you represent the following SLD as CSS?

  Rotation
ogc:Function name=if_then_else
  ogc:Function name=equalTo
ogc:PropertyNamefixedspeed/ogc:PropertyName
ogc:Literal0/ogc:Literal
  /ogc:Function
  ogc:Literal0/ogc:Literal
  ogc:Function name=toDegrees
ogc:PropertyNameangle/ogc:PropertyName
  /ogc:Function
/ogc:Function
  /Rotation

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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Live Security Virtual Conference
Exclusive live event

Re: [Geoserver-users] Z-Order Question

2012-04-04 Thread Chris Haste
Each layer contains different features and each is styled so that a particular 
featured is rendered differently based on a scale within that layer. For 
example there may be a feature on one layer that represents an object. At one 
scale it will be rendered as a mark e.g. triangle, but then it may be rendered 
as an external image at a closer zoom.

The issue is that certain layers have features that are more important than 
others and all are drawn at the same time.

From: Jay L. [mailto:drferl...@gmail.com]
Sent: 04 April 2012 11:53 AM
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Z-Order Question

Are these bound by scale, ie medium resolution between a certain scale range, 
or do you want to draw all layers at the same time, overlapping?

Jay
On Wed, Apr 4, 2012 at 6:05 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello list,

I'm a bit confused on something and I was hoping someone can point me in the 
right direction.

Firstly background;  I'm using the CSS module for my styling and I have several 
layers on my map that add more detail as the user zooms in.

I need to be able to control the z order of the marks/symbols being used. I can 
see that there is a CSS z-order parameter for labels but is there an equivalent 
for the symbols?

Example; if I had 3 layers called LowDetail, MediumDetail and HighDetail how 
could I ensure that a certain point symbol introduced in MediumDetail was 
always drawn last and therefore always visible?

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

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Quick easy? Question

2012-04-02 Thread Chris Haste
Hi All,

Please forgive what is probably a very simple question from a newbie!

To date I have only used Geoserver to render data from a DB where the 
visualisation purpose is either to display a point based geometry OR a polygon 
based one.

I now have a table which contains both. I wish to render the point based info 
at certain scales and the polygon at other scales.

Is this doable?

Brgrds,

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



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Quick easy? Question

2012-04-02 Thread Chris Haste
Thank you David,

Ok, as an avid fan of your CSS module my next question would be is this 
possible via CSS? ;-)

Brgrds,

Chris

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 02 April 2012 2:42 PM
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Quick easy? Question

Yes, you can include a Geometry tag in your symbolizers to specify which 
geometry to use.  The content should be a PropertyName:

sld:PointSymbolizer
sld:Geometryogc:PropertyNamethe_point_property/ogc:PropertyName/sld:Geometry
!-- symbology details here --
/sld:PointSymbolizer

--
David Winslow
OpenGeo - http://opengeo.org/
On Mon, Apr 2, 2012 at 9:26 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi All,

Please forgive what is probably a very simple question from a newbie!

To date I have only used Geoserver to render data from a DB where the 
visualisation purpose is either to display a point based geometry OR a polygon 
based one.

I now have a table which contains both. I wish to render the point based info 
at certain scales and the polygon at other scales.

Is this doable?

Brgrds,

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



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Quick easy? Question

2012-04-02 Thread Chris Haste
Thank you David,

That does indeed work.



From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 02 April 2012 2:53 PM
To: Charles Galpin
Cc: Chris Haste; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Quick easy? Question

Barring any bugs (I haven't used this since I implemented it) this should work 
in CSS:

* {
  mark-geometry: [the_point_property];
  fill-geometry: [the_polygon_property];
}

[@scale  10] {
   mark: symbol('circle');
}

[@scale  10] {
   stroke: black;
   fill: grey;
}

Please let me know if you run into problems with it.

--
David Winslow
OpenGeo - http://opengeo.org/

On Mon, Apr 2, 2012 at 9:48 AM, Charles Galpin 
cgal...@lhsw.commailto:cgal...@lhsw.com wrote:
Haha, you beat me to it!  I tried this once and couldn't get it to work so I'd 
love to see this too (and I'm also a big fan of the CSS module).

Thanks,
charles

On Apr 2, 2012, at 9:46 AM, Chris Haste wrote:


Thank you David,

Ok, as an avid fan of your CSS module my next question would be is this 
possible via CSS? ;-)

Brgrds,

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

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] More CSS Questions

2012-03-22 Thread Chris Haste
Hello list!

I have two questions in relation to the CSS module.

Firstly, using units of measurement. Could someone supply an example of the 
syntax for this? I have tried:
  mark: symbol('circle');
  mark-size: 1m;
also
  mark-size:1 m;
But neither seem to work. The first results in nothing getting drawn and the 
second results in the mark being drawn at 1 pixels!

Secondly, if I want to use an external symbol (e.g. a PNG or SVG file) and have 
this scaled using UoM what size/scale does the image have to be created at in 
order for it to scale correctly?

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

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] css Question

2012-03-16 Thread Chris Haste
Thank you, Charles.

I was being a bit dense. I assumed that the example he gave was simply 
formatted like that due to wrapping!

Yes, that does do the trick :)

From: Charles Galpin [mailto:cgal...@lhsw.com]
Sent: 16 March 2012 12:32
To: Chris Haste
Cc: David Winslow; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

Chris, I'm not sure if you got an answer or not, but this works today. In fact 
the snippet he shows below should do exactly what you asked for  - notice the 
line break is quoted so it is retained.

hth
charles

On Mar 15, 2012, at 1:16 PM, Chris Haste wrote:


Thanks for the quick response David.

So am I correct to read that it can't be done at the moment? That all entries 
in the label definition will be concatenated into a single string?

Thanks

ChrisI

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 15 March 2012 17:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

The CSS module never collapses whitespace inside of quotes, even across 
linebreaks.  Additionally, in the special case of labels any number of property 
values will be implicitly wrapped up in calls to the concat function, similar 
to the handling of  multiple values in SLD.

* {
label: [STATE_NAME] 
( [STATE_ABBR] );
}

I'm open to feedback on prettier notation for linebreaks but this seems 
functional at least.

--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Mar 15, 2012 at 12:51 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello All,

I'm trying to use the CSS styling Module and can't figure out how to use the 
SLD ![CDATA[]] construct from within the CSS to ensure that my label consists 
of two lines.

How would the following SLD be represented in CSS?

Label
  
ogc:PropertyNameSTATE_NAME/ogc:PropertyName![CDATA[]](ogc:PropertyNameSTATE_ABBR/ogc:PropertyName)
/Label

Thanks in advance,

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

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] css Question

2012-03-16 Thread Chris Haste
I may have spoken to soon!

Yes, that does give me multiple lines for the label, but it appears to cause an 
issue with the positioning of that text within a shield.

I'm using a square symbol in 'stretch' mode for the shield. The shield looks to 
be the correct size and shape hold the multi-line label but the label is not 
positioned correctly within the shield, it starts in the center of the shield 
and then overflows the bottom of the shield.

Is this a known issue? Is there away to control (fine tune) the positioning of 
the text within the shield?

Thanks

Chris

From: Chris Haste [mailto:cha...@airdata.co.uk]
Sent: 16 March 2012 12:37
To: Charles Galpin
Cc: David Winslow; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

Thank you, Charles.

I was being a bit dense. I assumed that the example he gave was simply 
formatted like that due to wrapping!

Yes, that does do the trick :)

From: Charles Galpin [mailto:cgal...@lhsw.com]
Sent: 16 March 2012 12:32
To: Chris Haste
Cc: David Winslow; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

Chris, I'm not sure if you got an answer or not, but this works today. In fact 
the snippet he shows below should do exactly what you asked for  - notice the 
line break is quoted so it is retained.

hth
charles

On Mar 15, 2012, at 1:16 PM, Chris Haste wrote:

Thanks for the quick response David.

So am I correct to read that it can't be done at the moment? That all entries 
in the label definition will be concatenated into a single string?

Thanks

ChrisI

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 15 March 2012 17:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.netmailto:geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

The CSS module never collapses whitespace inside of quotes, even across 
linebreaks.  Additionally, in the special case of labels any number of property 
values will be implicitly wrapped up in calls to the concat function, similar 
to the handling of  multiple values in SLD.

* {
label: [STATE_NAME] 
( [STATE_ABBR] );
}

I'm open to feedback on prettier notation for linebreaks but this seems 
functional at least.

--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Mar 15, 2012 at 12:51 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello All,

I'm trying to use the CSS styling Module and can't figure out how to use the 
SLD ![CDATA[]] construct from within the CSS to ensure that my label consists 
of two lines.

How would the following SLD be represented in CSS?

Label
  
ogc:PropertyNameSTATE_NAME/ogc:PropertyName![CDATA[]](ogc:PropertyNameSTATE_ABBR/ogc:PropertyName)
/Label

Thanks in advance,

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.***
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] css Question

2012-03-15 Thread Chris Haste
Hello All,

I'm trying to use the CSS styling Module and can't figure out how to use the 
SLD ![CDATA[]] construct from within the CSS to ensure that my label consists 
of two lines.

How would the following SLD be represented in CSS?

Label
  
ogc:PropertyNameSTATE_NAME/ogc:PropertyName![CDATA[]](ogc:PropertyNameSTATE_ABBR/ogc:PropertyName)
/Label

Thanks in advance,

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

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] css Question

2012-03-15 Thread Chris Haste
Thanks for the quick response David.

So am I correct to read that it can't be done at the moment? That all entries 
in the label definition will be concatenated into a single string?

Thanks

ChrisI

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 15 March 2012 17:09
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

The CSS module never collapses whitespace inside of quotes, even across 
linebreaks.  Additionally, in the special case of labels any number of property 
values will be implicitly wrapped up in calls to the concat function, similar 
to the handling of  multiple values in SLD.

* {
label: [STATE_NAME] 
( [STATE_ABBR] );
}

I'm open to feedback on prettier notation for linebreaks but this seems 
functional at least.

--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Mar 15, 2012 at 12:51 PM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hello All,

I'm trying to use the CSS styling Module and can't figure out how to use the 
SLD ![CDATA[]] construct from within the CSS to ensure that my label consists 
of two lines.

How would the following SLD be represented in CSS?

Label
  
ogc:PropertyNameSTATE_NAME/ogc:PropertyName![CDATA[]](ogc:PropertyNameSTATE_ABBR/ogc:PropertyName)
/Label

Thanks in advance,

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

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.netmailto:Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver CSS Module

2012-03-09 Thread Chris Haste
Thank you David, that was a huge help!

Ok, the part of the documentation I found confusing was in how to actually make 
reference to the Hospital mark that the example defined.  I could understand 
the construction of the symbol but wasn't then sure how to assign it to points. 
It would also have helped if there was an explanation of what usage was doing.

I have one more question in this area which I can't find any documentation for..

I would like to define a rule which uses an external SVG file as a symbol for a 
point. How is this done in CSS? I have tried the following without success:

  mark: url(MySymbol.svg);

Where MySymbol.svg is located in the data_dir/styles directory.

Thanks

Chris


From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 06 March 2012 18:06
To: Chris Haste; geoserver-users
Cc: dwins...@openplans.org
Subject: Re: Geoserver CSS Module

Hi Chris,

I hope it's not a big deal to bring this to the users list; in general I prefer 
to answer CSS questions there so Google can help the next person to have your 
problem ;)

Yes, the docs are a bit confusing. (It's a common trap for developers - in SLD, 
styled marks rely heavily on nested XML structure, so finding a decent way to 
encode this in CSS was kind of tricky.  Then when I wrote up the documentation 
I only gave an example of the most complicated case - using multiple different 
symbols with different styling.  If you have suggestions on clarifying the 
documentation here I would be happy to incorporate some edits.)

Anyway, for basic styled marks, it's fairly straightforward: you can think of 
the mark as a new, polygon geometry and use stroke and fill parameters for 
that.  A rule with :mark in its selector will match these synthetic 
geometries (:stroke, :fill, and :shield work for geometries generated for 
stroke patterns, fill patterns, and label shields respectively, and you can 
also use :symbol to match any generated symbol.)

You need at least two rules: one to generate this synthetic geometry, and one 
to style it (but as a convenience, if you don't style it it will have a 
grey/black theme.)

* {
  mark: symbol('circle');
}

* :mark {
  fill: red;
  stroke: black;
}

Or, specifically for the example you gave:

[@scale3400][@scale6900][longest_runway_ft8000]{
  mark: symbol('circle');
  mark-size: 2;
  halo-radius: 3;
  halo-color: #FF;
  label: [icao_identifier];
  label-offset: 0.0 0.0;
  label-anchor: 0 0.5;
  -gt-label-padding: 20;
  -gt-label-priority: [longest_runway_ft];
}

[@scale3400][@scale6900][longest_runway_ft8000]
:mark {
  fill: #FF;
}

--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, Mar 6, 2012 at 6:30 AM, Chris Haste 
cha...@airdata.co.ukmailto:cha...@airdata.co.uk wrote:
Hi David,

I hope you will forgive the direct email.

I have been evaluating your CSS styling module for Geoserver. I am relatively 
new to Geoserver fullstop, but must say that I think the CSS option is a 
massive improvement over having to work with SLD, so a big thank you for the 
work being done in this area.

My question is probably quite a simple one but for the life of me I cannot find 
the answer anywhere!

I wish to use marks on my map (circles) and I wish them to be coloured based on 
an attribute of the data. I don't seem to be able to get any colour info to a 
symbol using CSS. I looked at the example of a hospital symbol, which would 
imply that it can be done, but I couldn't try this as I didn't know how to 
reference the 'hospital' as a mark (I tried - mark: symbol('hospital') but that 
didn't work).

As an example here is a CSS rule that I am defining:
[@scale3400][@scale6900][longest_runway_ft8000]{
  mark: symbol('circle');
  mark-size: 2;
  fill: #FF;
  halo-radius: 3;
  halo-color: #FF;
  label: [icao_identifier];
  label-offset: 0.0 0.0;
  label-anchor: 0 0.5;
  -gt-label-padding: 20;
  -gt-label-priority: [longest_runway_ft];
}

The fill:#FF; line is where I am expecting it to render red circles, but I 
just get grey ones!

I think this problem is a result of what I am doing and not necessarily a bug 
etc. so I would appreciate if you could tell me where I'm going wrong?

Many 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