> Hi
>
> I have taken this further - I find that on line 65 of ImageGraphicFactory,
> this happens
>
> if (!supportedGraphicFormats.contains(format.toLowerCase()))
> return null;
>
> And my format (image/svg or image/svg+xml) isn't in the list. So that's
> obvious now. The samples (for example, here
> http://docs.geotools.org/latest/userguide/library/render/svg.html) show SVG
> as being supported.
Good hunting, we are actually not expecting ImageGraphicFactory to handle this
one .. so it should return null.
> Questions
> 1. It should end up in the SVGGraphicFactory implementation of
> ExternalGraphicFactory but it doesn't. Any ideas why ? I have gt-svg.jar in
> my path. Is it something to do with the StyleFactory and the hints you pass
> to it ?
>
>
>
Each StyleFactory gets a chance to check, put a breakpoint in and see what is
checked. If SVGGraphicFactory is not showing up at all we have a different
problem.
> 2. In ImageGraphicFactory - at the line shown - perhaps add a meaningful log
> message. The original error I repeated is not relevant, it says something
> about a null value but this reflects the fact that the method returned null
> when maybe it could have thrown a checked exception.
>
>
>
I am not sure we can, as it is giving the factory a chance to supply an image,
and it it does not it moves on to the next one.
Jody
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users