[Qgis-user] Interpolation of a geometry

Ujaval Gandhi ujaval at spatialthoughts.com
Sat Jan 8 06:13:26 PST 2022


 There's a tool 'Points along geometry' in the Processing Toolbox that can
do this. Can you use that?

If you are trying to do this with PyQGIS, share your code snippet so folks
can suggest how to do it.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: ujaval at spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sat, Jan 8, 2022 at 7:22 PM Asim al-sofi <asim56 at gmail.com> wrote:

> Dear all,
> I am asking for help with interpolating a geometry.
> I have a geometry say "*geom*" and want to add new points to it at fixed
> distances, say "*distance*".
> Using the method "interpolate" i.e., *geom*.interpolate(*distance*)
> returns only points at the interpolated distance(s), meaning the geometry
> points between the interpolated points are unknown.
> Is there a method to insert the interpolated points into the *geom*(of
> course at the right positions)?
> With other words, how to create a new geometry that contains the points of
> the old geometry and the interpolated points?
>
> Kind regards,
> Asim
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220108/8fa57fa2/attachment.html>


More information about the Qgis-user mailing list