Le 19/12/2010 08:55, Mohammed Rashad a écrit :
How to get a point feature for the given attribute name?
What I mean is search for the point feature which has attribute name =
myattributename.
If you want to find a feature with a given attribute value (name =
'myname') you have to loop through all features
for (Feature f : features) {
if (f.getAttribute("name").equals("myname")) {
// do what you want
}
}
Remark 1 : you may have to handle the case where you have several
features with same value
Remark 2 : if you have many such request, you may have to build an index
(a TreeMap) mapping all distinct attribute values to features.
Michaël
--
Rashad
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel