i build my code like that michael. i modified the class like this

void selectFeatures(double [] posisix, double [] posisiy) {
for (int i=0;i<posisix.length;i++)
        {
        Geometry point = geomFactory.createPoint(new Coordinate(posisix[i],
posisiy[i]));
        ...
        FeatureIterator<SimpleFeature> iter = selectedFeatures.features();
            
        Set<FeatureId> IDs = new HashSet<FeatureId>();  
        ...

        selectedIds.addAll(IDs);
        }
        displaySelectedFeatures(selectedIds);
}

so in displaySelectedFeatures i have only selectedIds. so how can i get the
IDs within selected so i can set the rule??

"Or if you want to make it more flexible you might give is a Map
argument where the keys are feature IDs and the values are numbers or
names of feature categories that you want to display in separate
colours. It's really up to you."
what do you mean about this?

Darmawand


mbedward wrote:
> 
> Hi Darmawan,
> 
>> hmm can you give me an example code for it?
> 
> You really have all the example code that you need. I'm afraid that
> none of us here can write your app for you - at least not for free :-)
> 
>> but the IDs and IDs2 is in selectedIDs so how i set it. that's what i
>> mean
> 
> They are in the example code but they don't have to be in _your_ code.
> Simply modify the method. Give the method an extra Set argument if you
> like.  Or if you want to make it more flexible you might give is a Map
> argument where the keys are feature IDs and the values are numbers or
> names of feature categories that you want to display in separate
> colours. It's really up to you.
> 
> The examples are only there to get you started. They don't represent
> the only way to do things and they don't illustrate all that is
> possible. The idea is for you to study them, along with the wiki and
> javadocs, and then experiment with your own hacking.
> 
> Hope this helps.
> 
> Michael
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Get-the-data-from-Info-tools-in-MapDisplayLab-tp3843728p3857609.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to