Skip to main content

Questions tagged [jsts]

Use this tag when referring to the jsts (javascript) library

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

how to do difference operation with jsts / ES6 module

In TypeError: a.union is not a function I asked about how to do a union operation and was told that to do so I'd need to do this: import UnionOp from 'jsts/org/locationtech/jts/operation/union/UnionOp....
neubert's user avatar
  • 360
0 votes
1 answer
1k views

TypeError: a.union is not a function

I'm trying to get the union of two polygons but every time I try I get a TypeError: a.union is not a function error. Here's my code: import GeoJSONReader from 'jsts/org/locationtech/jts/io/...
neubert's user avatar
  • 360
1 vote
0 answers
101 views

Using function "buildGeometry" of JavaScript library JSTS with 'ol.interaction.Select' and 'ol.Collection.<ol.Feature>' objects?

What type is the argument of a function "buildGeometry" of JavaScript library JSTS? How to use JSTS function "buildGeometry" with OpenLayers 3 selection, which is created is this ...
Kamil Szmit's user avatar
0 votes
0 answers
712 views

OpenLayers & JSTS - Unable to convert Polygon using OL3Parser

In a project that I am working on I need to split up a feature. In order to do so I have found a guided explanation online on how to achieve this: Explanation. At some point you need to convert the ...
Stephen's user avatar
  • 285
1 vote
0 answers
654 views

Spatial operations with JSTS

I'm working with Leaflet and I'm also working with JSTS to do the spatial operations. In most of the cases I want to create Polygons inside another Polygon Geometry. In this case the yellow shape is ...
VFA's user avatar
  • 51
1 vote
1 answer
993 views

OpenLayers JSTS dealing with polygon difference that splits polygon

I have some polygon features on a map layer in OpenLayers. They are contained within a 'boundary' polygon (a field boundary, for context) and fit together perfectly with no 'holes' inside of the ...
Helen Danger Burns's user avatar
2 votes
1 answer
2k views

Using OpenLayers and JSTS to create buffer geometry

So far I have found similar questions like this one but none have quite expressed or fixed my exact issue. I'm using Openlayers v4.6.5 and JSTS 1.4.0 The problem I'm having is with the buffer() ...
Hank's user avatar
  • 325
1 vote
1 answer
2k views

turfjs cannot detect all self intersections

I am working with OpenLayers/Turfjs to detect self intersection in users manually drawn polygons on a web map. The function that detects the self intersection is a property of the condition of the ...
user3523583's user avatar
1 vote
1 answer
2k views

Using meters to buffer with JSTS?

I'm trying to create a buffer using OpenLayers with JSTS library. However, even after transforming geometry from EPSG:4326 to EPSG:3857, the buffer method doesn't create distance in meters as ...
Stanislav Dušek's user avatar
2 votes
0 answers
722 views

How to transform coordinates for a geometry in Javascript Topology Suite JSTS

I would like to transform coordinates of geometries in JSTS (Javascript Topology Suite). I want to use a coordinate filter so I don't need to worry about what type of geometry is being transformed (e....
pythonjsgeo's user avatar
3 votes
1 answer
2k views

Creating buffers using JSTS + ES6 modules not working

Creating a buffer from a Point or other Geometry objects in JSTS seems to be quite simple when reading the documentation, but still I can't produce a buffer from a Point in my React application. Let ...
Eduardo G.R.'s user avatar
2 votes
3 answers
1k views

Using JSTS isValid() with ES6 modules

I am trying to configure JSTS to load using ES6 modules so that I don't have to include the entire library. There are minimal examples of how to do this online, including using an extend function to ...
Alex's user avatar
  • 159
1 vote
0 answers
840 views

JSTS Buffered Polyline in route Service (google maps V3)

I do not know if someone has already lived the same thing as me, I work with JSTS API to create a polygon that surrounds the route of the google services but the problem is that when there are ...
Karouani Yassine's user avatar
1 vote
0 answers
251 views

Making unification function [closed]

Well i make a map with OpenLayers 4 in draw a a brunch of polygons and try to union them if they intersect. i made this code : function unification(){ var parser = new jsts.io.OL3Parser(); var ...
geoNoobImba's user avatar
1 vote
0 answers
280 views

Transforming to WKTLine using JSTS library is very slow

I have a performance issue with JSTS library. When my OpenLayers.Geometry.LineString has more than 1000 components (OpenLayers.Geometry.Point), transforming theses points with the JSTS library is very ...
mkul's user avatar
  • 121
7 votes
3 answers
7k views

Creating buffer around point in LeafletJS?

I am using LeafletJS. I want to create buffer around point. After Selecting a point buffer radius will be specifed by user in feet. After searching of a while I found this link of JSTS. Does JSTS ...
apaleja's user avatar
  • 405