turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Home
- :
- Design and Development
- :
- [tMap,GeoOperation](cities, regions)=>cities belon...

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-24-2009
08:25 AM

04-24-2009
08:25 AM

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!

Labels:

6 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-26-2009
12:34 PM

04-26-2009
12:34 PM

Hello,

Try Geometry.union() operation to do that.

Regards

Try Geometry.union() operation to do that.

Regards

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-27-2009
05:36 AM

04-27-2009
05:36 AM

hello,

I have no function Geometry.union available

Maybe you wanted to mention Geometry.intersection?

I attached a screenshot to this post. The cities are in blue. the region contour is in red and fits the cities' contour.

Thanks,

Mathieu

I have no function Geometry.union available

Maybe you wanted to mention Geometry.intersection?

I attached a screenshot to this post. The cities are in blue. the region contour is in red and fits the cities' contour.

Thanks,

Mathieu

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-27-2009
01:13 PM

04-27-2009
01:13 PM

Hello,

I'm sorry I would like to say : org.talend.sdi.geometry.union(Geometry geom)

The source code of all geometry operation in SDI was here: https://project.camptocamp.com/svn/c2c_talendgeotools/branches/V1_2_x/src/org/talend/sdi/geometry/Ge...

Regards

I'm sorry I would like to say : org.talend.sdi.geometry.union(Geometry geom)

The source code of all geometry operation in SDI was here: https://project.camptocamp.com/svn/c2c_talendgeotools/branches/V1_2_x/src/org/talend/sdi/geometry/Ge...

Regards

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-28-2009
02:35 AM

04-28-2009
02:35 AM

Hello,

I tried your method with Geometry.union(row1.the_geom,row2.the_geom)

but it tells me the method "union" is unknown...

The screenshot I attached shows how I tried to process this operation.

Thanks,

Mathieu

I tried your method with Geometry.union(row1.the_geom,row2.the_geom)

but it tells me the method "union" is unknown...

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.

The screenshot I attached shows how I tried to process this operation.

Thanks,

Mathieu

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-28-2009
09:41 AM

04-28-2009
09:41 AM

Hi,

On java yo do this :

org.talend.sdi.geometry A,B;

A.union(B);

On tMap you define A and B as a Geometry and you may be do A.union(B);

ctrl+space can help you to find the good operation.

Regards.

On java yo do this :

org.talend.sdi.geometry A,B;

A.union(B);

On tMap you define A and B as a Geometry and you may be do A.union(B);

ctrl+space can help you to find the good operation.

Regards.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

04-29-2009
01:48 AM

04-29-2009
01:48 AM

Hi,

It must be an advanced operation.

Could you tell me where I write these lines of code?

I wrote this line in my tMap:

but i get the following error:

"Starting job union at 09:44 29/04/2009.

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

The operator ! is undefined for the argument type(s) Geometry

at general.union_0_1.union.sShapefileInput_1_GIProcess(union.java:4012)

at general.union_0_1.union.runJobInTOS(union.java:4917)

at general.union_0_1.union.main(union.java:4833)

Job union ended at 09:44 29/04/2009.

"

It must be an advanced operation.

Could you tell me where I write these lines of code?

org.talend.sdi.geometry A,B;

A.union(B);

I wrote this line in my tMap:

row1.the_geom.union(row2.the_geom)

but i get the following error:

"Starting job union at 09:44 29/04/2009.

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

The operator ! is undefined for the argument type(s) Geometry

at general.union_0_1.union.sShapefileInput_1_GIProcess(union.java:4012)

at general.union_0_1.union.runJobInTOS(union.java:4917)

at general.union_0_1.union.main(union.java:4833)

Job union ended at 09:44 29/04/2009.

"