How to generate points kilometers from a road

24 views
Skip to first unread message

Juan Carlos F.

unread,
Jan 5, 2021, 2:12:56 PM1/5/21
to Django users
Hi everybody

I am new and I need to know if the library or how I could generate the kilometer points starting from a polyline. 

Thanks for the info  

Juan Carlos F.

unread,
Jan 5, 2021, 2:23:20 PM1/5/21
to Django users

Exactly, what I need is to calculate the point on the road from the kilometer point PK 50 + 350 meters on the road, but not in a straight line but following the road  

Juan Carlos F.

unread,
Jan 5, 2021, 2:23:43 PM1/5/21
to Django users

Exactly, what I need is to calculate the point on the road from the kilometer point PK 50 + 350 meters on the road, but not in a straight line but following the road  

El martes, 5 de enero de 2021 a las 14:12:56 UTC, Juan Carlos F. escribió:

hunter...@gmail.com

unread,
Jan 6, 2021, 1:56:00 PM1/6/21
to Django users
Have a look at the GEOSGeometry class:  https://docs.djangoproject.com/en/3.1/ref/contrib/gis/geos/#geosgeometry
If you just want to specify a location along a linestring, try the interpolate method.
Reply all
Reply to author
Forward
0 new messages