1

I have two shapefiles that looks something like this:

enter image description here

One point file and one polyline file.

I want to find the points where the points and line would intersect if you drew a perpendicular line between them (the shortest distance). The next step is to mark these points on the polyline or a rasterized version of the polyline, but first I need to find a way to define them.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 28, 2018 at 15:24
1

1 Answer 1

1

Because you have just two points and one line, so it's simple to implement what you need manually.

By start edit season on the line shapefile, create a feature (line).

start to draw line from the point 1 to the line (use right click>>prependicular). and draw another line from point 2 in the same way.

Then save and end the edit season.

If you would like to mark the result points, you can use (Add geometry attributes)

You can use also (Near tool) if you have advanced license.

answered Mar 28, 2018 at 15:55
5
  • Thank you for the answer. I have tried this method on one of the points and it does indeed let me draw a line prependicular to the polyline. It's unfortunate I have a lot more points in my real file ... Commented Mar 28, 2018 at 16:25
  • I don't have Near unfortunately. Are you saying I can also use Spatial join to create prependicular lines between the points and the line? Commented Mar 28, 2018 at 16:49
  • Unfortunately no, because you have many to many relation. BTW, near and spatial join gives you just the shortest distance between (e.g one point to the other features, or one line to the other features). Commented Mar 28, 2018 at 17:06
  • 1
    @Linebeck QGIS has something similar to Near, if you like, I can update my answer for that Commented Mar 28, 2018 at 17:23
  • I eventually went for a different solution involving Locate Features Along Routes to find the locations. It worked on some of the lines but unfortunately not all of them. Commented Apr 5, 2018 at 11:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.