Create Centerline between polygons

Create Centerline between polygons

neam
Collaborator Collaborator
4,891 Views
9 Replies
Message 1 of 10

Create Centerline between polygons

neam
Collaborator
Collaborator

Hello my dears:
in attached file I pose a problem,
Unfortunately, I search in internet but do't got the results
Except in ArcGIS-Esri Software
Is in the map3d software can be draw centerline like ArcGIS-Esri or need to code
I am grateful guide

0 Likes
Accepted solutions (1)
4,892 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
0 Likes
Message 3 of 10

neam
Collaborator
Collaborator

Thank you for reply mr.robert I am sure qgis and arcmap software doing it
but I'm on AUTODESK software bigotry.
Is it possible do it by lisp code.

0 Likes
Message 4 of 10

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Is it possible do it by lisp code.

Maybe ... if you can define he rules 😉

 

looking to your drawing, coord:

 X = 959805.5439     Y = 10716258.9879

Define the rule how to draw the centerline between these three polygons.

Try to describe the rule so it is useful for every complex type of corridor-crossing situation.

 

20170610_154514.png

 

If you draw it by hand you might find out yourself that this is not just a first shot, there are many possibilities how a line can run through that situation.

If such a rule exists, I try to get time for it (no promise, of course)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 10

neam
Collaborator
Collaborator

Hi dear Alfred:

I draw these (intersection between center lines) then to manually.

Though I don't need exact center lines, a minimum of precision is required. One more thing, the intersection of center lines does not matter much.

0 Likes
Message 6 of 10

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Though I don't need exact center lines, a minimum of precision is required

It's not a question of accuracy, it's a question of strategy

Before write a tool you need to have rules your application can follow to solve ALL that situations. When you have that rules, the accuracy will be a result of your calculations according to that rules.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 10

neam
Collaborator
Collaborator

Hi Alfred

You're absolutely correct ,Any solution that you easily write the code proposal is acceptable in my view.

For example, they can be two two together joint or fillet

0 Likes
Message 8 of 10

O_Eckmann
Mentor
Mentor
Accepted solution

Hi,

 

Because your polygon come from regular grid spaced 82.0210*82.0210, you could use a solution without programming.

1. create an array of points offseted half of your grid 41.0105*41.0105

CenterLine1.png

2. export your points and polygon in SDF file, and connect via FDO

3. create a buffer 5m on your polygon, and make overlay Substraction or indentity to remove points insed polygon and keep only points between original polygons

4. create a block with 8 lines and MAPIMPORT your points with this bloc

CenterLine2.png

5. explose blocks and export lines as SDF, and connect SDF via FDO

6. create a buffer 23m from your original polygons and FDO overlay (identity) to remove extra line

CenterLine3.png

7. MAPIMPORT your SDF of cutted lines, and MAPCLEAN with remove isolated node with a tolerance of 29

8. You should obtain only simple polyline between original polygone.

9. In some intersection you just have to remove unwanted segment

CenterLine4.png

10. once intersection are cleaned, MAPCLEAN to join all segment

 

Olivier

Olivier Eckmann

EESignature

Message 9 of 10

Alfred.NESWADBA
Consultant
Consultant

Wow ... ;))))

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 10 of 10

neam
Collaborator
Collaborator

Woooooooowwwww

 

Thanks very much for Alfred

and

Thanks very much for Olivier , You're a beautiful mind

0 Likes