Re: [Geoserver-users] Possible application questions
Hi Joe, just to build a little on Simone's answer, a lot would depend on how dynamic your data was .. if it changed slowly over time, exporting it to another format might work .. you could use a script to csv or kml, etc on a daily basis. There would be a number of ways to approach it .. This of course assumes you actually have the coordinates in the MySql database .. Personally, to achieve the filtering you want, I would do it in Postgres, add a Postgres database to the server, then use a synchronising script on the server run on a cron .. check the sql database for changes then update the postgres database. Regards Mark Cupitt "Never give up .. its the end if you do .. find a way .. dig deep .." "If we change the world, let it bear the mark of our intelligence" On Tue, Feb 21, 2017 at 12:06 AM, Joe Hogan <joeho...@gmx.com> wrote: > Hello, > > I am writing to ask if GeoServer will work for our application. > > We are working on a project that wiow us to place on a map of our > country various projects. WE want to be able to filter them based on > various piecs of information, including, for example: > > year of project > population > project budget > etc... > > We are compiling the data in a CRM(MySQL database), and want to use the > data from the CRM to feed the mapping software. > > 1 - can I map the type fo information that I need? > 2 - can we use the data directly from the CRM database if we tell the > mapping software what data to use(so t can be read on the fly, live from > the databe?), or does it need to be exported before using inthe mapping > software? > 3 - It it needs to be in its own exported format, how to I get it from > MtSQL tothe correct format? > > > Thanks for any and all help. > > Joseph > > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] [HOT] OpenAerialMap - Catalog Tech Challenge
In case there are any developers out there .. who want to submit a proposal .. [HOT] OpenAerialMap - Catalog Tech Challenge As you may have heard (we hope you have) the Humanitarian OpenStreetMap Team is actively developing the relaunched OpenAerialMap project, an effort to make aerial imagery easier to organize, share and use. http://hot.openstreetmap.org/get_involved/openaerialmap_catalog_tech_challenge If you are a developer who is interested in the project, we really hope you will review the challenge and submit a proposal. Applications must be received by March 5th, 2015. Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Question: Graphic symbology in GeoServer/External Graphics
I think I ran into this at some point a while ago. I solved it by puttingall the icons in a separate domain, ie: icons.domain.com that pointed to the directory that contained the icons on the same machine. and then used the full http://uri to the icon There would obviously be a small performance hit but it was negligable for us I ended up moving them to another server on the same network, the advantage was that the SLD worked on any Geoserver Instance and I only had to maintain one set of icon files. Again a small performance hit could be expected. This might at least get you going ... Cheers Mark Cupitt 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 https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Oct 1, 2014 at 3:26 PM, Deeb Haddad dhad...@irdglobal.org wrote: Hi, I am a JAVA programmer, we are using Geoserver for our system mapping. What I am asking about, that I need to insert resource link icons, relative folder on our servers, and when tried to update the Styles for layers it gives me an error. *The XML code is: se:OnlineResource xlink:type=simple xlink:href=icons/cluster.png/* *And the Error is:* *Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException: URI is not absolute* If please could help or guide me to another way as spent three days trying to figure this out. Best regards, *Deeb N. Haddad |System Support Engineer* International Relief Development (Regional Office) 22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan T: 962 6 5857756 | F: 962 6 5857751 | M: +962790218658 www.ird.org -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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 https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 7:56 PM, Andrea Aime andrea.a...@geo-solutions.it wrote: On Wed, Jun 25, 2014 at 4:40 AM, Mark Cupitt markcup...@gmail.com 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 am certain I am missing something, or have I have possibly hit a limitation of the CSS module. ANy help or suggestions are very much appreciated. The files are available at http://markware.net/css.zip osmph_polys.csss (4 seconds to process) (160 lines) osmph_polys.sld ( result = 2895 lines) osmph_polys_landuse.csss (5 seconds to process) (357 lines) osmph_polys_lamduse.sld ( result = 1209 lines) osmph_polys_combined.csss ( 9 minutes to process, 100% cpu, 100% java Container Memory) (500 lines) osmph_polys_combined.sld (result = 80,440 lines) Hi, is it possible to share some of these long css styles? I'm working on a java version of the css parser/translator (the current one is written in scala) and addressing directly the issue of large css styles by building an efficient filtered power set generator. I'm still not done with the translator, so I cannot give you something to try out, but it would be nice to have some complex css styles to work against as tests Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/NWWaa2 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 --- -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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 world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 5:59 PM, Jody Garnett jody.garn...@gmail.com wrote: 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 this and reviewing the SLD that is produced. Jody Garnett On Wed, Jun 25, 2014 at 2:42 PM, Mark Cupitt markcup...@gmail.com wrote: Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale6][@scale10]{ fill-size: 20px; } [landuse='forest'][@scale6]{ fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } [landuse='forest']{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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, and it appears to be a way of grouping styles within a feature type style and ordering the featuretypestyle so the rendering is as required. For roads, I am using the following CSS stroke: #00, #3CB371; stroke-width: 5.0px, 3.0px; which forces two draws of the line. the first at # 5px, then drawn again with #3CB371 at 3px to give the thinner line with a black casing. I do use z-index on the roads to ensure that motorways are drawn on top of trunks, which are drawn on top of primary's, which are drawn on top of secondary's, etc Cheers Mark Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 5:59 PM, Jody Garnett jody.garn...@gmail.com wrote: 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 this and reviewing the SLD that is produced. Jody Garnett On Wed, Jun 25, 2014 at 2:42 PM, Mark Cupitt markcup...@gmail.com wrote: Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale6][@scale10]{ fill-size: 20px; } [landuse='forest'][@scale6]{ fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } [landuse='forest']{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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 Cupitt Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 7:56 PM, Andrea Aime andrea.a...@geo-solutions.it wrote: On Wed, Jun 25, 2014 at 4:40 AM, Mark Cupitt markcup...@gmail.com 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 am certain I am missing something, or have I have possibly hit a limitation of the CSS module. ANy help or suggestions are very much appreciated. The files are available at http://markware.net/css.zip osmph_polys.csss (4 seconds to process) (160 lines) osmph_polys.sld ( result = 2895 lines) osmph_polys_landuse.csss (5 seconds to process) (357 lines) osmph_polys_lamduse.sld ( result = 1209 lines) osmph_polys_combined.csss ( 9 minutes to process, 100% cpu, 100% java Container Memory) (500 lines) osmph_polys_combined.sld (result = 80,440 lines) Hi, is it possible to share some of these long css styles? I'm working on a java version of the css parser/translator (the current one is written in scala) and addressing directly the issue of large css styles by building an efficient filtered power set generator. I'm still not done with the translator, so I cannot give you something to try out, but it would be nice to have some complex css styles to work against as tests Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/NWWaa2 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 --- -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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 https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 7:42 PM, Jody Garnett jody.garn...@gmail.com wrote: 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 markcup...@gmail.com wrote: 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 world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 5:59 PM, Jody Garnett jody.garn...@gmail.com wrote: 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 this and reviewing the SLD that is produced. Jody Garnett On Wed, Jun 25, 2014 at 2:42 PM, Mark Cupitt markcup...@gmail.com wrote: Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale6][@scale10]{ fill-size: 20px; } [landuse='forest'][@scale6]{ fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } [landuse='forest']{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Geoserver CSS Module
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 limitation of the CSS module. ANy help or suggestions are very much appreciated. The files are available at http://markware.net/css.zip osmph_polys.csss (4 seconds to process) (160 lines) osmph_polys.sld ( result = 2895 lines) osmph_polys_landuse.csss (5 seconds to process) (357 lines) osmph_polys_lamduse.sld ( result = 1209 lines) osmph_polys_combined.csss ( 9 minutes to process, 100% cpu, 100% java Container Memory) (500 lines) osmph_polys_combined.sld (result = 80,440 lines) Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
Hi Jody, Thanks so much. I am definitely styling on Scale and Attribute, for example [landuse='forest'][@scale6][@scale10]{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); fill-size: 20px; } [landuse='forest'][@scale6]{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } (I use scale a lot to change the colors or graphic fills, and have a ton of poly attributes to style) I use z-index a lot to get the featuretypestyles in the right order. I need to get my head out of SLD thinking .. I think that is my biggest issue. I would love to attend your workshop, but I am quite remote in the philippines so it is not practical for me, unfortunately. It is a loong way to travel, but I do avidly look forward to the published papers Regards Mark Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 12:17 PM, Jody Garnett jody.garn...@gmail.com wrote: 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: theme based on scale and several attributes You can notice this if your resulting SLD has many rules that accomplish the same thing, except at a different scale (or with a different attribute combination). Recommendation: 1) Use rules for scale first! Since that *only* works for rules. If you need to break up the party you can set up a group layer with several child layers - each child layer configured with CSS for a a different scale. Clients can draw the group layer and GeoServer will draw the appropriate child based on scale. This also has the *key* advantage of allowing you to draw simplified datasets when zoomed out which is a killer optimisation technique. This approach will prevent a power set based on differences of scale, you are stuck with some duplicate configuration but you would get that anyway as you optimise performance. 2) Use a combination of rules and symbology encoding functions when theming based on more that one attribute. This is especially useful when the aspect you are theming is contained like font size or polygon color. - http://boundlessgeo.com/2012/08/thematic-map-creation-with-sld-is-now-much-easier/ Here is an example of recode from a workshop I am doing at foss4g this year: * { fill:[ recode(mapcolor9, 1,'#8dd3c7', 2,'#b3', 3,'#bebada', 4,'#fb8072', 5,'#80b1d3', 6,'#fdb462', 7,'#b3de69', 8,'#fccde5', 9,'#d9d9d9') ]; stroke: gray; stroke-width: 0.5; } The alternative is: [mapcolor9=1] { fill: #8dd3c7; } [mapcolor9=2] { fill: #b3; } [mapcolor9=3] { fill: #bebada; } [mapcolor9=4] { fill: #fb8072; } [mapcolor9=5] { fill: #80b1d3; } [mapcolor9=6] { fill: #fdb462; } [mapcolor9=7] { fill: #b3de69; } [mapcolor9=8] { fill: #fccde5; } [mapcolor9=9] { fill: #d9d9d9; } * { stroke: gray; stroke-width: 0.5; } Now if you imagine doing this with scale rules as well the power set idea is clear: 1) With mapcolor9 rules and 5 zoom levels we have 45 SLD rules generated 2) With mapcolor9 recode function and 5 zoom levels we have 5 SLD rules generated Hope that helps Mark. If you want to attend the workshop it is here: https://2014.foss4g.org/schedule/workshops/ Both the docs.geoserver.org and foss4g websites are down for me right now, hopefully they will be back when you get this. Jody Garnett On Wed, Jun 25, 2014 at 12:40 PM, Mark Cupitt markcup...@gmail.com wrote: Good Day all. I am still having trouble with the Geoserver CSS
Re: [Geoserver-users] Geoserver CSS Module
Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale6][@scale10]{ fill-size: 20px; } [landuse='forest'][@scale6]{ fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } [landuse='forest']{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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='forest'][@scale100][@scale500] { fill: #CBEBB6; } /* @title forest 1M - 100K */ [landuse='forest'][@scale10][@scale100] { fill-size: 15px; } /* @title forest 100K - 60K */ [landuse='forest'][@scale6][@scale10] { fill-size: 20px; font-size: 11px; label: [name]; } /* @title forest 6K - 0K */ [landuse='forest'][@scale6] { fill-size: 30px; font-size: 12px; label: [name]; } [landuse='forest']{ z-index: 30; stroke-width: 0.75px; fill-opacity: 0.75, 0.50; font-fill: #ee; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark Cupitt Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 12:42 PM, Mark Cupitt markcup...@gmail.com wrote: Hi Jody, in thinking through your remarks, in my last response would this be a better approach to the example I gave? [landuse='forest'][@scale6][@scale10]{ fill-size: 20px; } [landuse='forest'][@scale6]{ fill-size: 30px; } [landuse='commercial'][@scale100] { z-index: 40; stroke: #5F9EA0; fill: #87CEFA, url( http://icons.markware.net/geoserver/icons/img/areas/commercial.png;); stroke-width: 0.5px; fill-opacity: 0.75; label: [name]; font-size: 10px; font-fill: #00; } [landuse='forest']{ z-index: 30; stroke: #CBEBB6; fill: #CBEBB6, url( http://icons.markware.net/geoserver/icons/img/areas/forest.png;); } Regards Mark -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] [Geoserver-devel] GeoServer 2.5.1 bug when displaying LayerGroup in KML format: java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been pro
Hi Jody, problem is resolved, wow, what a difference. I knew I was missing the obvious .. Thanks so much .. Cheers Mark Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Wed, Jun 25, 2014 at 12:20 PM, Jody Garnett jody.garn...@gmail.com wrote: Franck: We have a user list for discussion of tips, tricks and issues setting up GeoServer. We keep the geoserver-devel list open for volunteers who are working on the GeoServer codebase to make it better for everyone. If you would like to be helpful you could report you issue to the issue tracker. These communication tips, and email list / issue tracker instructions, are available on our website: http://geoserver.org/comm/ -- Jody Jody Garnett On Wed, Jun 25, 2014 at 1:33 AM, THEETEN Franck franck.thee...@africamuseum.be wrote: Dear list. I’m using GeoServer 2.5.1 and get the following message when I want to display a layer group in KML format: java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided. However, forcing GeoServer to automatically compute the bounding box of one of the underlying layer before resetting the bounding box to its original value seems to solve the problems. Here is the situation when the bug occurs: 1: the first layer, “watermark_world” is a vector layer (polygon), coming from PostGIS, whose extent is “ -180,-90,180,90”. It is in EPSG:4326 2: the second layer “of the group is a geotiff layer called “image” with bbox “0,0,2,2” . Its CRS is also EPSG:4326 3: I publish the vector layer “watermark_world” under a new name “watermark_image1” with the same bounding box as “image1”. 4: I create a layer group gathering “image1” and “watermark_image1” together, having the same bounding box as ”image 1” Problem 1: the BoudingBox can be displayed in OpenLayers, but not in KML. Error message: “java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided” Problem 2: the same error message appears when trying to compute automatically the bounding box of the group The following workaround solution actually fixes the bug: Work around 1: The problem is solved by editing the bounding box of “watermark_image1” layer by clicking on “Compute from data” and “Compute from native bounds” (it then displays “ -180,-90,180,90”) and resetting the bounding box field to its original values. Work around 2: The same trick applies when creating “watermark_image1” . It solve the problem when groups are generated via the REST interface. Maybe this problem could be investigated further? Best regards, Franck *Franck Theeten * *Database Manager* *ICT* *Royal Museum for Central Africa* http://www.africamuseum.be/ *3080 Tervuren* *Belgium* *0032/2/769-56-24* -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Geoserver-devel mailing list geoserver-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Open source business process management suite built on Java and Eclipse Turn processes into business applications
[Geoserver-users] Geoserver CSS Module
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, but I just cannot see it .. This happens after I paste the CSS into the Stylesheet box but before I submit it. No Errors in the Tomcat of Geoserver Logs .. /* * @title OSMPH_Lines * @abstract Styles for all Roads at High Zoom Levels. */ /* GLOBAL - */ *{ mark-mime: 'image/svg+xml'; } /* 30K - 15K- */ /* @title Traffic Lights 30K - 15K */ [highway='traffic_signals'][@scale15000][@scale3] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 4px; } /* @title Barriers 30K - 15K */ [barrier='gate'][@scale15000][@scale3] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 10px; } /* @title Parking 30K - 15K */ [amenity='parking'][@scale15000][@scale3] { mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg' ); mark-size: 10px; } /* 15K - 30K- */ /* @title Traffic Signals 15K - 6K */ [highway='traffic_signals'][@scale6000][@scale15000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 6px; } /* @title Barriers 15K - 6K */ [barrier='gate'][@scale6000][@scale15000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 12px; } /* @title Parking 15K - 6K */ [amenity='parking'][@scale6000][@scale15000] { mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg' ); mark-size: 15px; } /* 6K - 3K- */ /* @title Traffic Signals 6K - 3K */ [highway='traffic_signals'][@scale3000][@scale6000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 8px; } /* @title Barriers 6K - 3K */ [barrier='gate'][@scale3000][@scale6000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 15px; } /* @title Parking 6K - 3K */ [amenity='parking'][@scale3000][@scale6000] { mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg' ); mark-size: 20px; } /* 3K - 0K- */ /* @title Traffic Signals 3K - 0K */ [highway='traffic_signals'][@scale3000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 10px; } /* @title Barriers 3K - 0K */ [barrier='gate'][@scale3000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 20px; } /* @title Parking 3K - 0K */ [amenity='parking'][@scale3000] { mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg' ); mark-size: 25px; } /* END - */ Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Geoserver CSS Module
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 it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http://ph.linkedin.com/in/markcupitt *See me on StackExchange http://gis.stackexchange.com/users/17846/mark-c* === The contents of this email are intended only for the individual(s) to whom it is addressed and may contain confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute, or use the contents of this email. If you have received this email in error, please notify the sender immediately and delete the email and any attachments. === On Fri, Jun 20, 2014 at 11:55 AM, Mark Cupitt markcup...@gmail.com wrote: 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, but I just cannot see it .. This happens after I paste the CSS into the Stylesheet box but before I submit it. No Errors in the Tomcat of Geoserver Logs .. /* * @title OSMPH_Lines * @abstract Styles for all Roads at High Zoom Levels. */ /* GLOBAL - */ *{ mark-mime: 'image/svg+xml'; } /* 30K - 15K- */ /* @title Traffic Lights 30K - 15K */ [highway='traffic_signals'][@scale15000][@scale3] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 4px; } /* @title Barriers 30K - 15K */ [barrier='gate'][@scale15000][@scale3] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 10px; } /* @title Parking 30K - 15K */ [amenity='parking'][@scale15000][@scale3] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/parking.svg'); mark-size: 10px; } /* 15K - 30K- */ /* @title Traffic Signals 15K - 6K */ [highway='traffic_signals'][@scale6000][@scale15000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 6px; } /* @title Barriers 15K - 6K */ [barrier='gate'][@scale6000][@scale15000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 12px; } /* @title Parking 15K - 6K */ [amenity='parking'][@scale6000][@scale15000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/parking.svg'); mark-size: 15px; } /* 6K - 3K- */ /* @title Traffic Signals 6K - 3K */ [highway='traffic_signals'][@scale3000][@scale6000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 8px; } /* @title Barriers 6K - 3K */ [barrier='gate'][@scale3000][@scale6000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 15px; } /* @title Parking 6K - 3K */ [amenity='parking'][@scale3000][@scale6000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/parking.svg'); mark-size: 20px; } /* 3K - 0K- */ /* @title Traffic Signals 3K - 0K */ [highway='traffic_signals'][@scale3000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg'); mark-size: 10px; } /* @title Barriers 3K - 0K */ [barrier='gate'][@scale3000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg'); mark-size: 20px; } /* @title Parking 3K - 0K */ [amenity='parking'][@scale3000] { mark: url(' http://icons.markware.net/geoserver/icons/traffic/parking.svg'); mark-size: 25px; } /* END - */ Regards Mark Cupitt If we change the world, let it bear the mark of our intelligence See me on Open StreetMap https://www.openstreetmap.org/user/Mark_Cupitt See me on LinkedIn http