Re: [Geotools-devel] Geometry transformations ready to roll
boxplot ha scritto: > Hi, > > I try to setup this kind of style and receive the following error message > every time: > > Error message: > org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was > found starting with element 'ogc:Function'. One of > '{"http://www.opengis.net/ogc":PropertyName}' is expected. > org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was > found starting with element 'ogc:Function'. One of > '{"http://www.opengis.net/ogc":PropertyName}' is expected. > > SLD: > http://www.opengis.net/sld"; > xmlns:ogc="http://www.opengis.net/ogc"; > xmlns:xlink="http://www.w3.org/1999/xlink"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";> > > > StartEnd > > > > > > > > > > > the_geom > > > > > square > > 0x00FF00 > 1.5 > > > 8 > > > > > > > > > > the_geom > > > > > circle > > 0xFF > > > 4 > > > > > > > > > What am I doing wrong? Assuming you are using a recent enough version of GeoTools, you're still referencing the official SLD schema, which does not contain the gt2 specific extesions. Moreover, how are you parsing the SLD? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. -- ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Hi, I try to setup this kind of style and receive the following error message every time: Error message: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ogc:Function'. One of '{"http://www.opengis.net/ogc":PropertyName}' is expected. org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ogc:Function'. One of '{"http://www.opengis.net/ogc":PropertyName}' is expected. SLD: http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";> StartEnd the_geom square 0x00FF00 1.5 8 the_geom circle 0xFF 4 What am I doing wrong? Thanks! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geometry-transformations-ready-to-roll-tp4083419p5015650.html Sent from the geotools-devel mailing list archive at Nabble.com. -- ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Andrea, my compliments. I will be soon on new style editor in uDig (Jody we have to talk :) ) and this will be more than fun. Thanks, Andrea On Mon, Nov 30, 2009 at 12:34 PM, Andrea Aime wrote: > Andrea Aime ha scritto: >> >> The are more things that can be done creatively using the >> existing filter functions, and many more that can be done implementing >> your own new functions, but I hope this shows the potential of this >> new development. > > Speaking of other stuff that can be done with transformations, what > do you think of the attached trick? ;-) > > First the base is drawn, then an isometric extractions of the wall is > painted, and then a lighter rooftop is added using offset. > I've tried to use a single function but the root needs to be a different > color, so no go. > If I add the ability to specify an extrusion angle other than 90° I guess it > will be better to have two functions, isometric_walls and > isometric_rooftop to extract the root without having to compute > the offset with trigonometric functions. > > Cheers > Andrea > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Hello Andrea Not wanting to encourage you to show off, but this is really great! We will surely use it if it gets ported to 2.6.x Cheers and congrats Milton Andrea Aime wrote: > Hi, > I think I'm ready to commit, at least on GeoTools trunk, the geometry > transformations subsystem discussed here: > http://docs.codehaus.org/display/GEOTOOLS/Geometry+transformations+in+SLD > (the current patch has been updated with some fixes and is more focused > than the one attached to the wiki page, ping me if you want to have a > look at it) > > I wanted to share some maps that I've made using the transformations, > so I attached images and styles to this mail. > > line-buffer-one.png and line-buffer-two.png show simple geometry > buffering. If you look at the style you'll see the geometry has been > buffered by "200", which is meters since the data set was originally > in such unit. As you can see the operation works in real world units > and thus the buffer effect changes according to the current scale. > > > line-start-end.png shows the extraction of both start and end points > from a line, the start point depicted as a green square, the end point > as a red circle. > > polygon-shadow.png shows using the offset function to drop shadows > behind a polygon. > > polygon-vertices.png shows using the vertices function to extract the > vertices of a geometry as a multipoint, and then depict them > accordingly. > > The are more things that can be done creatively using the > existing filter functions, and many more that can be done implementing > your own new functions, but I hope this shows the potential of this > new development. > > I'll wait for some feedback before committing. Then I hope someone > other than me will play with transformations a little, and once > we're comfortable with it, we can discuss backporting to gt2 2.6.x > (and thus make the improvement available to GeoServer 2.0.x series > and uDig 1.2.x alike). > > Cheers > Andrea > > > > > > > > > > > > > > > > > > > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > > > ___ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel -- Milton Jonathan Grupo GIS e Meio Ambiente Tecgraf/PUC-Rio Tel: +55-21-3527-2502 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Michael Bedward ha scritto: > 2009/11/30 Francesco Izzi wrote: >> This is very very nice. > > Oh he's just showing off now - don't encourage him :-) What? Geometry transformations is serious stuff, it will give us animations, limitless energy and solve world hunger problems ;-) Cheers Andrea PS: seriously, I hope to see other interesting transformations pop up in the near future. Writing one is easy, even the isometric one is just around 200loc! -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
2009/11/30 Francesco Izzi wrote: > This is very very nice. Oh he's just showing off now - don't encourage him :-) Michael -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
This is very very nice. Congrat. 2009/11/30 Andrea Aime > Andrea Aime ha scritto: > > The are more things that can be done creatively using the >> existing filter functions, and many more that can be done implementing >> your own new functions, but I hope this shows the potential of this >> new development. >> > > Speaking of other stuff that can be done with transformations, what > do you think of the attached trick? ;-) > > First the base is drawn, then an isometric extractions of the wall is > painted, and then a lighter rooftop is added using offset. > I've tried to use a single function but the root needs to be a different > color, so no go. > If I add the ability to specify an extrusion angle other than 90° I guess > it will be better to have two functions, isometric_walls and > isometric_rooftop to extract the root without having to compute > the offset with trigonometric functions. > > > Cheers > Andrea > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > -- Francesco Izzi CNR - IMAA geoSDI - NSDI Responsabile Sviluppo Software C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob:+39 3402640314 mail: francesco.i...@geosdi.org skype: neofx8080 web: http://www.geosdi.org -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Andrea Aime ha scritto: The are more things that can be done creatively using the existing filter functions, and many more that can be done implementing your own new functions, but I hope this shows the potential of this new development. Speaking of other stuff that can be done with transformations, what do you think of the attached trick? ;-) First the base is drawn, then an isometric extractions of the wall is painted, and then a lighter rooftop is added using offset. I've tried to use a single function but the root needs to be a different color, so no go. If I add the ability to specify an extrusion angle other than 90° I guess it will be better to have two functions, isometric_walls and isometric_rooftop to extract the root without having to compute the offset with trigonometric functions. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. <><> http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";> Grass 0x00BB00 0.1 0xFF 0.1 geom 2 0x00BB00 0.1 0xFF 0.1 geom 0 2 0xAAFFAA 0.6 0xFF 0.1 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Really interesting results Andrea! I cannot really evaluate this at the moment, since I am trapped on 2.6.x... I thought your idea of a pixel() function was a good one; and note that we can "parse" some SE 1.1 concepts - into the use of this function. Jody On Mon, Nov 30, 2009 at 10:26 AM, Michael Bedward wrote: > Hi Andrea, > > Very nice ! I'll definitely try out the transformations when you > commit them and provide some feedback. > > Michael > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel
Re: [Geotools-devel] Geometry transformations ready to roll
Hi Andrea, Very nice ! I'll definitely try out the transformations when you commit them and provide some feedback. Michael -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel