Hi all;
I have two shapefiles. One has buildings and the other has parcels (both of
them are multipolygons). I need to check if the given parcel has buildings
inside it or not. If it has building, get the coordinates of the building.
I have some difficulty in writing the filter for checking the buildings
inside the parcel.
The explanation on the javadoc for "contains" filter is;
" contains(Expression geometry1, Expression geometry2)"
What means expression here? May be The name of geometry of the parcel and
the building seperately?
SimpleFeature building = buildingiterator.next();
Geometry geom = (Geometry)
building.getDefaultGeometry();
String filterStr = "CONTAINS(the_geom, " +(geom) + ")";
Filter filter2 = CQL.toFilter(filterStr);
I have found this example on mailing list. And I want to understand what the
code exactly mean in bold and if it is true or wrong?
It is very urgent for my study.
Thanks.
Best regards,
Vurfem.
--
View this message in context:
http://n2.nabble.com/how-to-use-Contains-filter-tp3941195p3941195.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