Hexagon Geospatial
MENU

GeoMedia

Search for an answer, post a question, or answer other users' questions in our GeoMedia support discussions. This discussion board is a great way to collaborate with industry peers around the world. It is intended for discussion and support of the GeoMedia Desktop and Add-on applications.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 9
Registered: ‎09-19-2017
Accepted Solution

Create Polyline between 2 point features but with a fix lenght.

Hi guys,

 

I need create a polyline between two ppoint features but with a fix lenght. For example, I have to point features separated by 20 meters but I need create a polyline between this points only with 10 meters.

 

Many thanks.

 

Jorge Lopes

Highlighted
Staff
Posts: 133
Registered: ‎05-26-2016

Re: Create Polyline between 2 point features but with a fix lenght.

[ Edited ]

If your digitizing with Insert Feature

 

Select a Line feature (Two-Point line placement)

Right Click to get Construction Aid menu

Enable Segment Length Constraint(S)

Enter Distance in Menu (ie 10)

Select first point then second point for direction

A line of length 10 m will be drawn from 1st point in direction of 2nd point.

 

With Functional Attribute queries (line)

 

(In this example it assumes a line exists between the two points)

(If not , then you would probably place the two points in a selection query first, to determine angle with a functional attribute query)

 

FA1

Segment_length – 10 (user defined distance, ie 10 m)

Angle of line - ANGLE(Input.Geometry, TrueMeas, Degree)

Remainder - LENGTH(Input.Geometry, ProjectedMeas, Meter)-Output.Segment_length

Endofline - ENDPOINT(Input.Geometry)

 

FA2

End_of_LIine - MOVEBYDISTDIR(Input.Endofline, Input.Remainder, ORIENTATION(Input.Endofline) +180, ProjectedMeas)

 

FA3

New_Line - CREATEPOLYLINE(STARTPOINT(Input.Geometry), Input.End_of_Line)

 

You now have a New_line query feature you can save to warehouse.

 

 

With Functional Attribute queries(point)

 

(In this example it assumes two points in a selection set)

 

Create an Analytical Merge query of the selection set first.

 

FA1

line_seg - CREATEPOLYLINE(POINTS(Input.Geometry))

 

FA2

line_seg_angle - ANGLE(Input.line_seg, TrueMeas, Degree)

 

FA3

Segment_length – 20 (user defined distance, ie 20 m)

 

New_Line - CREATEPOLYLINE(STARTPOINT(Input.line_seg), MOVEBYDISTDIR (STARTPOINT(Input.line_seg), Output.Segment_Length, Input.line_seg_angle, ProjectedMeas))

 

You now have a New_line query feature you can save to warehouse.

 

 

Occasional Contributor
Posts: 9
Registered: ‎09-19-2017

Re: Create Polyline between 2 point features but with a fix lenght.

Hi,

 

Many thanks for your support. All yours solutions were valid in different situations.

In my case, the one that best fits is the third with a small change. line_seg - CREATEPOLYLINE(Input.Geometry1,Input.Geometry)) because I have a query result made by dinamic segmentation tool from PTGeom1 to PTGeom. I tested and the second solution was also valid.

 

My test set consisted of 16000 points. Uuufff!

 

Many thanks.

 

Best regards.

Jorge Lopes

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.