Thanks Andrea for this! There is nothing to add from my point of view.
Frank
2010/10/3 Andrea Aime <[email protected]>
> On Sat, Oct 2, 2010 at 10:28 PM, Frank Gasdorf
> <[email protected]> wrote:
> > Hello,
> > I would like to get support for complete dynamic URL's for external
> graphics
> > read from feature attribute(s). But the applied patch for issue
> > http://jira.codehaus.org/browse/GEOT-3137 changes the API a bit and
> > therefore I would like to discuss it.
> > I'm not sure, there could be other ways to solve the problem, probably
> you
> > have one !
> > Please have a look at the patch, it's self-explained.
>
> Frank, I don't believe people will have time to look into the patch, we
> live in
> a condition where time is extremely scarce, so let me
> try to sum it up (I'll do my best, you'll correct me if I'm
> misunderstanding your patch).
>
> Frank wants to have dynamic symbolizers in external graphics work even in
> the case where the full url is an expression:
>
> <ExternalGraphic>
> <OnlineResource xlink:type="simple" xlink:href="${attributeImageURL}"/>
> <Format>image/png</Format>
> </ExternalGraphic>
>
> However there is a catch, the ExternalGraphic interface has:
>
> URL getLocation() throws MalformedURLException;
>
> as the only way to get to the location. However ${attributeImageURL} is
> not a valid URL, so trying to access the location like that will throw an
> exception.
>
> Internally the location is stored as a string anyways and we already have
> a setURI() method, so Frank is proposing to add to the GeoTools
> externalGraphic
> interface a:
> public String getURI()
> method.
>
> A possible variant could be to use getOnlineResource().getLinkage(), but
> that path a complete dead end at the moment (not really implemented and
> used).
>
> Cheers
> Andrea
>
> -----------------------------------------------------
> Ing. Andrea Aime
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584962313
> fax: +39 0584962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -----------------------------------------------------
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel