I'm developing custom widgets for WAB (Develper Edtion) 2.17, Launchpad Theme, on 3D Scenes (ArcGIS API for javascript 4.17).
I have a layer which I need that the polygon areas which are computed automatically, will be correct.
So I use a 2D feaure layer whose spatial reference WKID is 2039 (Israel TM Grid).
But I have a problem - I need to create a buffer, and I am using this code:
var buffers = geometryEngine.geodesicBuffer(
geometries, // geometries
[bufferDistance], // distance
"meters", // unit
true // unionResults into SINGLE polygon
);
but it fails, with a weird error mesage: "not implemented yet".
What I assume, is that somehow I don't know how to create a buffer from geometries in a layer,
whose spatial reference wkid is NOT 102100 (that is 3857 WGS 1984 Web Mercator),
but is wkid:2039 (Israel TM Grid).
But I need use wkid:2039 as the layer spatial reference in order that the automatically computed polygon areas will be correct.
Help will be greatly appreciated!
Michael Lev
Solved! Go to Solution.
Michael,
As a general rule, use geodesicBuffer if the input geometries have a spatial reference of either WGS84 (wkid: 4326) or Web Mercator.
Meaning you should be using buffer and not geodesicBuffer. Also be sure that the input geometries have the spatialReference property with wkid 2039.
@RobertScheitlin__GISP - Dear Robert, no one responded till now... Can you help please?
Michael,
As a general rule, use geodesicBuffer if the input geometries have a spatial reference of either WGS84 (wkid: 4326) or Web Mercator.
Meaning you should be using buffer and not geodesicBuffer. Also be sure that the input geometries have the spatialReference property with wkid 2039.