Hi,

You can query the shapefile with a geographic function to filter that area
( use for example bbox function ).

Have you seen this tutorial:
http://docs.geotools.org/stable/tutorials/filter/query.html ?

In that tutorial you have information about how to filter an area in a
datastore.
For example:

Filter filter = CQL.toFilter("BBOX(the_geom, 110, -45, 155, -10)");

Query query = new Query(typeName, filter, new String[] { name });

SimpleFeatureCollection features = source.getFeatures(query);


Cheers,
André Matos


2012/9/20 Boided <[email protected]>

> hi,
>       I am new to geotools. i am using geotools 8.0 without maven. Please
> suggest how to select an area of interest after opening a shapefile and
> fetching all the features of the area selected.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/How-to-select-an-area-of-Interest-in-a-shapefile-tp5003230.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to