Hi,
I am having trouble with the GeoJSONReader.
Basically all I want to do is buffer a point and perform an intersection between the buffer and another point file. I get the point from my user as WKT and use the WKTReader to create a geometry and store it in a variable called "userpoint". I then buffer user point and store that as the variable "userbuffer" by doing "userbuffer = userpoint.buffer(1000);" All good up until here!
I then have a GeoJSON array (created from QGIS) with a heap of points in there, I want to perform an intersection between the buffer and the GeoJSON array to see what points are inside the buffered area. I tried using the jsts.io.GeoJSONReader to convert my GeoJSON to a geometry but the result just gives me an array with none of the methods that a jsts.geom.Geometry object has. From the API documentation I expected the GeoJSONReader to return me a geometry object with my data, but I don't think that is what I have.
I have attached my js file which has the json array. I have declared the variable globally and I can see and access an array after using the GeoJSONReader, but like I said it has no methods that go with a geometry.
New to jsts but keen to learn more about it. Any help on how to get this array as a geometry so I can perform an intersection would be greatly appreciated.
Thanks
Andrew