currently we have features stored shape files, and we query them by
"intersection" filter with a lat-lon point.
collection = myFeatureSource.getFeatures(query);
we would like to add certain custom attrs/data to the feature. currently we
pull out the standard properties by
FeatureIterator<SimpleFeature> iter = collection.features();
while (iter.hasNext()) {
SimpleFeature feature = iter.next();
Collection<Property> props = feature.getProperties();
but after I manually added the custom attr to the .xml data store file, the
above call on "feature.getProperties()" does not return this new
custom property.
I also tried SimpleFeature.getAttributes(), it's basically the same result
as getProperties()
anything else I could try??
Thanks a lot
Yang
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users