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
Highlighted
Occasional Contributor
Posts: 7
Registered: ‎06-26-2016

how to use function to extend streets

dears

i have two layers :
points and streets
how to use function to extend streets to nearest point ?

Staff
Posts: 132
Registered: ‎05-26-2016

Re: how to use function to extend streets

Calculate a distance from end point of street line to nearest point. There are a couple of ways to do this.

Simplest is to do an Aggregation of Street and points with 'accumulte nearest' with output

 min_dist - MIN(DISTANCE(Input.Geometry, Detail.Geometry, ProjectedMeas, Meter))

 

Then 3 functional Attributes using this result

 

FA1

 

Remainder - Input.min_dist

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)

 

This should create a query of the new lines, you can then save.

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