GeoMedia Discussions

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

how to use function to extend streets


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

Posts: 156
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




Remainder - Input.min_dist

Endofline - ENDPOINT(Input.Geometry)




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




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


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