Hi all,
I wrote a custom geotools Function class and I am using it for styling. I
want to pass all properties of SimpleFeature to evaluate() method but it
only gets geometry descriptor if I use like below:
*ff.function("gs", ff.literal("javascript"), ff.literal(propname))*
However, If I use "ff.property" with function call:
*ff.function("gs", ff.literal("javascript"), ff.property(propname)) *
It passes geometry descriptor and property with propname.
At evaluate() method i need all properties names.
* @Override*
* public <T> T evaluate(Object object, Class<T> context) {*
* .*
* .*
* .*
* if(attributeList == null) {*
* attributeList = new ArrayList<>();*
* if (object instanceof SimpleFeature) {*
* List<AttributeDescriptor> attList = ((SimpleFeature)
object).getFeatureType().getAttributeDescriptors();*
* for (AttributeDescriptor attributeDescriptor : attList) {*
* attributeList.add(attributeDescriptor.getLocalName());*
* }*
* }*
* }*
* .*
* . *
* }*
So, what should I do to get all properties?
Thanks
Cagri
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users