Re: [Geoserver-users] Geoserver CSS Module

2014-09-21 Thread Mark Cupitt
Hi Andrea, how did you go on the css module? Would be keen to try it if you need a tester? Cheers Mark Regards Mark Cupitt "If we change the world, let it bear the mark of our intelligence" Hire Me on Freelancer See me on Open StreetMap See

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Mark Cupitt
Hi Jody, that appears to have worked Ok (It generates two LineSymbolizers), thanks heaps for pointing that out. Cheers Mark Regards Mark Cupitt "If we change the world, let it bear the mark of our intelligence" See me on Open StreetMap See me o

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Andrea Aime
On Wed, Jun 25, 2014 at 2:35 PM, Mark Cupitt wrote: > Hi Andrea, no problem, I will just fix the recode as Jody suggested, that > is a great way to do things and keeps the code small so woudl be good for > you to test. I can alos give you my first cut as well, that is a little > more traditions.

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Mark Cupitt
Hi Andrea, no problem, I will just fix the recode as Jody suggested, that is a great way to do things and keeps the code small so woudl be good for you to test. I can alos give you my first cut as well, that is a little more traditions. Will zip them up and send them a bit later on. Cheers Mark Cup

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Andrea Aime
On Wed, Jun 25, 2014 at 4:40 AM, Mark Cupitt wrote: > Good Day all. I am still having trouble with the Geoserver CSS Module with > large CSS files. > > I have two smaller CSS files that process nicely and produce expected SLD, > but when I combine them, they produce a humungus 84K line sld > > I

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Jody Garnett
I don't think you did that correctly - you were trying to provide two expressions right - for different z-indexs? So keep using two expressions: stroke: [recode(highway, 'motorway', '#00')], [recode(highway, 'motorway', '#4169E1')] Jody Garnett On Wed, Jun 25, 2014 at 8:33 PM, Mark Cupitt

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Mark Cupitt
Hi Jody, I am using the z-index as follows In the polygon styling: water z-index: 50; forest z-index: 40; national parks z-index: 30; This should ensure that river polys are drawn over the top of forests and both drawn over the top of National Parks The docs to not specify any magnitudes for it

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Mark Cupitt
Hi Jody, FYI, I tried the recode function, it is excellent, however, it does not reproduce this stroke: #00, #4169E1; using .. stroke:[ recode(highway, 'motorway', '#00, #4169E1' )]; Which is sad .. that would be killer .. Cheers Mark Regards Mark Cupitt "If we change the

Re: [Geoserver-users] Geoserver CSS Module

2014-06-25 Thread Jody Garnett
I suppose I am just confused about the use of z-index there - I usually use a z-index 1 or 2 (and then only if needed based on funny overlapping - like simulating line casing, or ensuring that a polygon outline is drawn separately overtop of the fill). I recommend trying very simple examples like

Re: [Geoserver-users] Geoserver CSS Module

2014-06-24 Thread Mark Cupitt
Hi Jody, another example, (In case anyone else is struggling like me and needs an example) Could I improve on this any way? (I am trying to get a fill at 5M-1M with no graphic, then a graphic and a fill color at lower zoom levels, and labelling at < 100K) /* @title forest 5M - 1M */ [landuse

Re: [Geoserver-users] Geoserver CSS Module

2014-06-24 Thread Mark Cupitt
Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale>6][@scale<10]{ fill-size: 20px; } [landuse='forest'][@scale<6]{ fill-size: 30px; } [landuse='commercial'][@scale<100] { z-index: 40;

Re: [Geoserver-users] Geoserver CSS Module

2014-06-24 Thread Mark Cupitt
Hi Jody, Thanks so much. I am definitely styling on Scale and Attribute, for example [landuse='forest'][@scale>6][@scale<10]{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url(" http://icons.markware.net/geoserver/icons/img/areas/forest.png";); fill-size: 20px; } [landuse='forest']

Re: [Geoserver-users] Geoserver CSS Module

2014-06-24 Thread Jody Garnett
I expect you are producing a "power set" between when you combine your two files, this is often done by: 1) only using rules to style 2) doing your theme based on more than one aspect of your data - example; theme based on scale and attribute - example: theme based on two attributes - example: them

[Geoserver-users] Geoserver CSS Module

2014-06-24 Thread Mark Cupitt
Good Day all. I am still having trouble with the Geoserver CSS Module with large CSS files. I have two smaller CSS files that process nicely and produce expected SLD, but when I combine them, they produce a humungus 84K line sld I am certain I am missing something, or have I have possibly hit a l

Re: [Geoserver-users] Geoserver CSS Module

2014-06-20 Thread Mark Cupitt
Thanks Richard, Done .. Cheers Mark Regards Mark Cupitt "If we change the world, let it bear the mark of our intelligence" See me on Open StreetMap See me on LinkedIn *See me on StackExchange

Re: [Geoserver-users] Geoserver CSS Module

2014-06-19 Thread Richard Duivenvoorde
Hi Mark, I'm not a dev, but if you can confirm this behaviour on another computer it looks clearly as an issue. Best way to get this solved would be to create an issue on GeoServer's issue-tracker, and include some data and the css: http://jira.codehaus.org/browse/GEOS In that way devs can rep

Re: [Geoserver-users] Geoserver CSS Module

2014-06-19 Thread Mark Cupitt
Update, The process finally returned after about 25 minutes, on my 8 core 32GB ubuntu Box. I guess there is a much better way to write the CSS to prevent this, any suggestions very welcome. This amount of time will make it a long slow process :( Regards Mark Cupitt "If we change the world, let

[Geoserver-users] Geoserver CSS Module

2014-06-19 Thread Mark Cupitt
I have the CSS below. It causes the CSS Module to go off into Never Never Land, requiring a TomCat Restart to get it back. I presume it is in some form of infinite loop and the CPU is at 100%+ Geoserver 2.5.1 with the correct downloaded Module Version I think it is a logic problem with my CSS, bu

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

Re: [Geoserver-users] Geoserver CSS Module

2012-03-06 Thread David Winslow
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 XM