Hello,
I've got a question regarding the geographical set of operations avalaible in SDI.
here is my problem:
I've go two input shapefiles: one for the cities, another with regions. These input shapefiles are of multipolygon type...
I put some images with this post so as you figure it out...
I'd like to get a shapefile with all the cities belonging to these regions.
For this, I know I have to use the tMap component, but I don't know which GeoOperation function to use:
contains,
covers,
covered by,
intersects,
overlaps?
If my cities input is row1, my regions row2, could you tell me which expression I have to write?
Thanks!
Starting job Copy_of_contains at 10:34 28/04/2009.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method union(Geometry) in the type Geometry is not applicable for the arguments (Geometry, Geometry)
org.talend.sdi.geometry cannot be resolved to a type
at general.copy_of_contains_0_1.Copy_of_contains.sShapefileInput_1_GIProcess(Copy_of_contains.java:4014)
at general.copy_of_contains_0_1.Copy_of_contains.runJobInTOS(Copy_of_contains.java:4920)
at general.copy_of_contains_0_1.Copy_of_contains.main(Copy_of_contains.java:4834)
Job Copy_of_contains ended at 10:34 28/04/2009.
org.talend.sdi.geometry A,B;
A.union(B);
row1.the_geom.union(row2.the_geom)