[gdal-dev] adding points to geometries

Paul Harwood runette at gmail.com
Sun Jan 26 04:36:48 PST 2025


I would have thought : create a linesegment that is the equator and perform
an intersection between that linesegment and the target geometry to
identify the point in question and then create a new geometry with the new
point, or something like that.

I am not sure what it would mean to add a point to polygon crosses the
equator - I would guess that would mean adding a vertex at the equator, in
which case I think the intersection would return a line (I have never done
it) and the vertices in question would be the points of the returned
linesegment.

On Sun, 26 Jan 2025 at 10:26, Javier Jimenez Shaw via gdal-dev <
gdal-dev at lists.osgeo.org> wrote:

> Hi
>
> I have a vector layer (like /usr/share/qgis/resources/data/world_map.gpkg)
> and I need to add a point at latitude 0 for every segment (in line or
> polygon) that crosses the equator.
>
> How can I do it?
>
> Thanks,
> Javier.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250126/deab482f/attachment.htm>


More information about the gdal-dev mailing list