8 thoughts on “Split a Polygon by Line in OpenLayers”

  1. Pingback: Split a Polygon with holes by Line in OpenLayers - Spatial Dev Guru

  2. I try to implement this code to my project. I use node_modules and it throws an error like this.
    OL3Parser.js:43 Uncaught TypeError: Cannot read properties of undefined (reading ‘Point’)
    Row 166 as below:
    //Parse Polygon and Line geomtry to jsts type
    let b = parser.read(linestring.getGeometry());

    let a = parser.read(polygon.getGeometry());

Leave a ReplyCancel reply