On Tue, Oct 25, 2011 at 4:45 PM, Jan De Moerloose <
[email protected]> wrote:
> Problem is that i don't even reach this factory because my relative path
> cannot be turned into a valid url (no protocol) by the SLDParser.
>
Wait, did you just say relative path?
The SLDParser already resolved external graphic paths relative to the sld
file itself using the sourceUrl
field:
public void setInput(java.net.URL url) throws java.io.IOException {
source = new InputSource(url.openStream());
sourceUrl = url;
}
Ok, I guess I understand where you're going now.
I guess we could either expose a setter for that field or as you suggested
allow for
a OnlineResourceLocator to be set into the parser like you suggested, I'd be
fine with both.
I'm wondering about the SLD 1.1 parser though, not sure if it's supporting
such
relative location mechanism. Justin?
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
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
-------------------------------------------------------
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel