Subscribe to this thread
Home - General / All posts - Radian-->split with
klausk115 post(s)
#22-Feb-17 18:43

Is there any similar tansform tool in Radian like split with in Mfd 8??

Dimitri


7,413 post(s)
#22-Feb-17 19:02

I think that would probably be the transforms discussed in the topic at Overlay Topology

adamw


10,447 post(s)
#23-Feb-17 06:43

No direct equivalent yet, it is in the queue of things to add. If you are splitting with area boundaries, you can use topology overlays (GeomOverlayTopologyXxx), as suggested by Dimitri, or clips (GeomClip).

klausk115 post(s)
#23-Feb-17 18:21

clips (GeomClip)

If I use the expression work with a Drawing "Lines" und a drawing "Clip" what is the correct syntax

GeomClip(<geom>, <geom>, <inner>, <tolerance>)

GeomClip([Linien]([geom (i)]), [clip]([geom (i)]), <inner??>, 0)

Dimitri


7,413 post(s)
#23-Feb-17 19:30

what is the correct syntax

See the example topic Example: Clip Areas with a Transform Dialog Expression

klausk115 post(s)
#24-Feb-17 07:47

I habe seen it, but for Radian beginners like me it doesn't match my task. Maybe there will be more examples in future.

klausk115 post(s)
#24-Feb-17 17:37

Overlay Topolgoy Intersect does the job

adamw


10,447 post(s)
#24-Feb-17 06:07

GeomClip([Linien]([geom (i)]), [clip]([geom (i)]), <inner??>, 0)

This should be:

GeomClip([Linien].[geom (i)], [clip].[geom (i)], true, 0)

or

GeomClip([Linien].[geom (i)], [clip].[geom (i)], false, 0)

depending on whether you want to retain part of the first geom inside (true) or outside (false) the second geom.

klausk115 post(s)
#24-Feb-17 07:42

thx adamw

inside (true) or outside (false)

Would it be a good idea to write this direct into the template like

GeomClip([Linien]([geom (i)]), [clip]([geom (i)]), <inner true or outside false>, 0)?

adamw


10,447 post(s)
#24-Feb-17 09:02

We completely agree we have to explain the purpose of each parameter. We think this is best done via documentation (it is coming).

klausk115 post(s)
#24-Feb-17 17:29

if I run the transform GeomClip with the button Add Component I get an error message: 'Linien.geom(i)':Unkonwn.name

the log window tells

# SQL: manifold

# ?expression - Evaluate expression and print result.

# !fullfetch - Turn fetching all returned values for performance testing on and off.

> -- $manifold$

-- Auto-generated

-- Transform - Custom - Add Component

CREATE TABLE [Table 2 Transform] (

[mfd_id] INT64,

[geom] GEOM,

INDEX [mfd_id_x] BTREE ([mfd_id]),

INDEX [geom_x] RTREE ([geom]),

PROPERTY 'FieldCoordSystem.geom' 'EPSG:31468'

);

CREATE DRAWING [Table 2 Transform Drawing 2] (

PROPERTY 'Table' '[Table 2 Transform]',

PROPERTY 'FieldGeom' 'geom'

);

PRAGMA ('progress.percentnext' = '100');

INSERT INTO [Table 2 Transform] (

[mfd_id],

[geom]

) SELECT

[mfd_id],

GeomClip([Linien].[geom (i)], [clip].[geom (i)], true, 0)

FROM [clip]

THREADS SystemCpuCount();

'Linien.geom (i)': Unknown name.code

Attachments:
2017-02-24 18_29_10-Radian Studio.png

adamw


10,447 post(s)
#25-Feb-17 05:18

The FROM section of the SELECT only lists one table, yet the expression uses data from two tables, that's not going to work. You have to adjust the query to use two tables (perhaps joining the areas in the clip drawing into one geom), or just use one of the transforms for topology overlays. We will likely provide a transform for GeomClip in the future.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.