Le 19/12/2010 11:44, Mohammed Rashad a écrit :
thanks
One more thing
How to create a linestring by code knowing its two
LINESTRING (129 313, 188 266, 195 318, 190 317, 97 333)
To create linestring from its coordinates, use JTS's :

*com.vividsolutions.jts.geom.GeometryFactory*.createLineString(...)

or, if you already have its WKT string :

*com.vividsolutions.jts.io.WKTReader*.read("wkt string")


Michaël


2010/12/19 Michaël Michaud <michael.mich...@free.fr <mailto:michael.mich...@free.fr>>

    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  
<mailto: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
    <mailto:Jump-pilot-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
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

Reply via email to