How to get geometry between two points?
---------------------------------------

                 Key: GEOT-2354
                 URL: http://jira.codehaus.org/browse/GEOT-2354
             Project: GeoTools
          Issue Type: Wish
          Components: core filter, core geometry
    Affects Versions: 2.5-RC0
         Environment: Windows Xp SP3
JDK 1.6.0_10
Eclipe 3.4 Ganymede
            Reporter: İlker GÜRCAN


Hi everyone, i try to filter a FeatureSource (from a shapefile). I want to get 
the geometry between two points(new GeometryFactory().createPoint(
                                        new 
Coordinate(494980.7381827759,4415530.244274457))
...
And i use this filter but it throws an exception called No Such a Feature:
Filter aradakiYolFilter = ff.between(ff.property("the_geom"),
                                ff.literal(ilkNokta.getGeometry())
                                ,ff.literal(ikinciNokta.getGeometry()));
source.getFeatures(aradakiYolFilter);

ilkNokta--->FirstPoint
ikinciNokta--->SecondPoint

I know there is no such a feature between these two points because all the 
features in my shapefile are multilinestrings however, i dont want the whole 
multilinestring to be returned ..,i want only a piece of multilinestring , a 
piece which is between these two indicated points(and ofc there is no feature 
between these two points but there is a geometry, a line ,linestring or 
something else)...Do you have any suggestions for me...
Thanks for your future reply in advance...
İlker GÜRCAN-->Computer Engineering Student At Baskent University in 
Ankara in Turkey...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to