HI
I am reading a shapefile with some mil2525 strings in its data base , I need
this strings to setup the icons to be rendered dynamically by using the new
interfaces Andrea Aime created for this purpose.
Please see
http://docs.codehaus.org/display/GEOTOOLS/Dynamic+SLD+Graphic+objects for
more information.

So i created a query , that will read also the mil2525att data from the
shapefile database like follows :
Query query = new DefaultQuery(typeName, Filter.INCLUDE,new
String[]{geomName , "mil2525att"});

I then created a FeatureCollection like follows :
FeatureCollection<SimpleFeatureType, SimpleFeature> fcol =
fs1.getFeatures(query) ;

So the Feature should then have the "the_geom" and the "mil2525att"
properties for the feature.
The problem is when i get the feature from the SLDStyleFactory it does not
contain the "mil2525att" property anymore.

I manage to track down the place where it seems to get missing.
Its in the StreamingRenderer.java's findStyleAttributes function , in this
function it only returns the "the_geom" attribute , and ignore the other
attributes the collection was created with in the first place?
I played around with the code so that the correct properties get passed back
then everything works fine.

Is this a bug or am i using it wrongly?

Thanks
Theuns Heydenrych

-- 
View this message in context: 
http://www.nabble.com/Streaming-Render-Attribute-problem-tp18030857p18030857.html
Sent from the geotools-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to