On Mon, Jun 11, 2012 at 7:40 PM, Carl Hornibrook
<
carl.ho...@gmail.com> wrote:
> Hi there,
>
> I have a series of polylines representing roads. In a separate table I have
>> 10,000 rows representing objects such as signs, roadside furniture, lights
> etc with columns identifying which road/polyline and the chainage/road
> markers/distance in meters from the beginning of the road.
>
> Is there a way to programmatically create an object on (or offset from) a
> given polyline object based on the distance from the beginning of the
> object?
>
> Thanks in advance,
> Carl
Well it doesn't look like you've received a reply yet so my suggestion
is to use PostGIS which has various linear referencing functions. A
quick scan of the 1.5 doc's turned up the ST_Line_Interpolate_Point
function which
"Returns a point interpolated along a line. Second argument is a float8
between 0 and 1 representing fraction of total length of linestring
the point has to be located."
It's not a perfect fit for you but seems like it could be made to
work. You would just have to divide you distance by the total road
length. It would also be worth checking PostGIS 2.0 to see if it has
a function that allows you to just specify a distance or if there are
other linear referencing functions that would fit better.
You know that MapInfo can connect to a PostGIS db, right?
Rich
--
Richard Greenwood
richard....@gmail.com
www.greenwoodmap.com