Hi,
I am creating SLD style file using geotools api. I sets point image like this.

ExternalGraphic eg = styleBuilder.createExternalGraphic("file://point.png", 
"image/png");
or 
File file = new File("point.png");
eg = sb.createExternalGraphic(file.toURI().toURL(), "image/png");

As result I receives xml file containing line

<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" 
xlink:href="file:/full_path/point.png"/>

Then I sends this file to geoserver and nothing happens. When I manually remove 
 'file' prefix from xlink:hrefl line everything works fine.

Not putting file prefix in styleBulder cause exception. 
The question: how to create externalgraphic using image without uri scheme (the 
'file' prefix). 

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to