Capturing a point (XY coordinates) along a line

63 views
Skip to first unread message

Ian Oldfield

unread,
Jan 10, 2023, 6:26:33 AM1/10/23
to MapInfo-L
Hi Guys,

I would be grateful for advice/information/solution on how to capture the coordinates part way along a line.  I have the following data (all in BNG):
Point data - with reference/coordinates eg. properties, such as housing, shops, etc
Line data - road centre-line segments from junction to junction.

I have used the Distance Calculator function to create lines from the property to the nearest point on the road segment.  That works very well and is easy to use.  However, what I would like to capture is a point, say typically about 4-5 metres, from the road line towards the point data.   I can do a simple calculation to get the mid-distance, but not part way along.

Hopefully, the map below shows the requirement.   Thank you very much for any help.
BTW, I'm using MI10 and prefer a non-MB solution if possible.

Thank you all very much.

Ian.

Ian Oldfield, MSc, CertEd.

Synthetic Data Ltd

Mob: 07508 944826

SDL_Logo_Badge_2022.png

CapturePoint.JPG

Ian Oldfield

unread,
Jan 10, 2023, 7:16:10 AM1/10/23
to MapInfo-L
Apologies,

I have an initial solution - by adding one-third of the respective distance to each coordinate.  This first example has given a good result but I'm not sure how well it will work on all the data, so any smart solutions still very much appreciated.  Here's my first sample map - red dots representing outside the property, ie. in the street.

Kind regards

Ian.
CapturePointUpdate.JPG

Peter Horsbøll Møller

unread,
Jan 16, 2023, 4:58:48 AM1/16/23
to mapi...@googlegroups.com

Hi Ian

 

I created a #MapInfoMonday post addressing your question.

 

I hope you find this useful

 

Peter

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: 'Ian Oldfield' via MapInfo-L <mapi...@googlegroups.com>
Sent: Tuesday, 10 January 2023 13.16
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Re: Capturing a point (XY coordinates) along a line

 

This message originated Externally. Use proper judgement and caution with attachments, links, or responses.

 

Apologies,

 

I have an initial solution - by adding one-third of the respective distance to each coordinate.  This first example has given a good result but I'm not sure how well it will work on all the data, so any smart solutions still very much appreciated.  Here's my first sample map - red dots representing outside the property, ie. in the street.

 

Kind regards

 

Ian.

On Tuesday, January 10, 2023 at 11:26:33 AM UTC Ian Oldfield wrote:

Hi Guys,

 

I would be grateful for advice/information/solution on how to capture the coordinates part way along a line.  I have the following data (all in BNG):

Point data - with reference/coordinates eg. properties, such as housing, shops, etc

Line data - road centre-line segments from junction to junction.

 

I have used the Distance Calculator function to create lines from the property to the nearest point on the road segment.  That works very well and is easy to use.  However, what I would like to capture is a point, say typically about 4-5 metres, from the road line towards the point data.   I can do a simple calculation to get the mid-distance, but not part way along.

 

Hopefully, the map below shows the requirement.   Thank you very much for any help.

BTW, I'm using MI10 and prefer a non-MB solution if possible.

 

Thank you all very much.

 

Ian.

Ian Oldfield, MSc, CertEd.

Synthetic Data Ltd

Mob: 07508 944826

 

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/94221b8b-3ae3-44ef-a59f-117c093eec52n%40googlegroups.com.

Ian Oldfield

unread,
Jan 16, 2023, 6:42:43 PM1/16/23
to MapInfo-L
Hi Peter,

I read through your solution.  Thank you very much for taking the time to explain your process in detail, very helpful.

I managed to resolve the issue, firstly by reversing the line direction (you allude to this in your explanation).  I then captured a point that was 4 metres from the road centre line towards the property and because I am using a rather crude raster base map, that puts the point in the road, near the kerb. Perfect.   I have had to do some single-line manual tidying up but now have around 50k points that are 'outside the property, in the street'.   I wish I had done this 10 years ago in the police, it is really cool and more accurately identifies the desired location.

Peter, thank you again for you time and expertise.

Kind regards

Ian.

Reply all
Reply to author
Forward
0 new messages