No PointSymbolizers are rendered when Shapefile resides in a JAR.
------------------------------------------------------------------
Key: GEOT-1958
URL: http://jira.codehaus.org/browse/GEOT-1958
Project: GeoTools
Issue Type: Bug
Components: core render
Affects Versions: 2.4.4
Environment: Reproduced with Linux and Windows, Java 1.6.0_07, GT 2.4.4
Reporter: Stefan Alfons Krüger
Assignee: Jesse Eichar
Priority: Critical
No PointSymbolizers are rendered in the JMapPane when the Shape resides in a
JAR.
This only occures since GT 2.4.4. A workarround is to switch the
gt2-render-2.4.4.jar against gt2-render-2.4.2.jar. Then all works fine again.
I access the data by creating a DataStore from an URL that i get via a
ClassLoader... In the "JAR scenario" these URLs point to a .shp in a JAR...
When i pack the data in JARs i can start the application, but NO PointSymbols
are rendered! Line and Polygone are rendered. When I pack it in JavaWebStart
also no PointSymbols..other geometrys are all renderd. TextSymbolizers for
the points are rendered.
No exceptions are thrown!
1. I am sure, that the SHP files are imported successfully and the SLD is
imported successfully.
VIa debugging I checked that the correct Style-Object exists in the MapLayer
during
runtime and i can click the invisible points with my "info" tool. So
the data and styles are loaded in the MapContext.
Even the graphics.draw(..) method is executed in the ShapePainter...java class.
But i don't see any
points in the map!
When i simply unzip the data jars and put the direcory into the classpath
(instead
of the JAR) it works fine.
It did try different PointSymbolizers .. i am trying it with most simple MARK
graphics at the moment. But as mentioned above... it works as soon as i
unpack the JAR or switch back to gt-renderer-2.4.2.jar
So if anybody has any ideas why the PointPymbolizer breaks or acts differently
in the JAR scenario with 2.4.4...
I looked at the differences in the code between gt-renderer-2.4.2.jar and
gt-renderer-2.4.4.jar but i didn't find anything that could explain the problem.
I think this bug can be pretty evil if it moves up to 2.5. I am willing to
help/test if any GT2 developer that is more experienced than i am contacts me.
Skype: alfonx or krueger et wikisquare.de
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel