Yup men, i give you one vote in jira ... so my fast solve / workaround ^^ was implement two attributes something like this:
<ExternalGraphic> <OnlineResource xlink:type = "simple" xlink:href = "http://${URL_BASE}/${RESOURCE}.png"/> <Format>image/png</Format> </ExternalGraphic> cos' i dont want to hardcode the url in my style file ... -- Ariel Falduto [email protected] On Jun 1, 2012, at 2:39 PM, Frank Gasdorf wrote: > Hello Guys, > > I created an issue for this problem a while ago : > https://jira.codehaus.org/browse/GEOT-3137 and attached a patch that solve > this problem. I guess the main reason why its still open is, that a few API > changes were required and I didn't requested on the geotools mailing list for > voting again.. > > Do you agree with me, that this feature should be in the core? Than should we > renew the request and let the PMC members vote on this... > > Cheers, Frank > > 2012/6/1 Andrea Aime <[email protected]> > On Fri, Jun 1, 2012 at 4:20 PM, Ariel Falduto <[email protected]> wrote: > Hi guys, im trying to make this sentence ... > > ... > <PointSymbolizer> > <Graphic> > <ExternalGraphic> > <OnlineResource xlink:type = "simple" xlink:href = "${URL_RECURSO}"/> > <Format>image/png</Format> > </ExternalGraphic> > </Graphic> > </PointSymbolizer> > ... > > but geoserver throws me in console some thing like: > > ERROR [lite.StyledShapePainter] - ShapePainter has been asked to paint a null > style!! > > woow ... but the variable was an value like: > > http://foo.com/public/images/D3B02AA2-3B12-4212-9B03-3493EC18DA78.png > > buuuut the BEST part is ... if i make partial expression IT WORKS !!! > > ... > <PointSymbolizer> > <Graphic> > <ExternalGraphic> > <OnlineResource xlink:type = "simple" xlink:href = > "http://foo.com/public/images/${ID_RECURSO}.png"/> > <Format>image/png</Format> > </ExternalGraphic> > </Graphic> > </PointSymbolizer> > ... > > whats wrong ?? why i need to define mixin string ... not is possible to > define whole expresion attribute at xlink:href ?? > > Exactly, it's not possible, as it's not a valid URL anymore. The code carries > the URL around for a bit, in the form > of a Java URL, so it has to be valid. Expression substitution happens only > later. > > 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 > > > ------------------------------------------------------------------------------ > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
