You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to convert the following WKT using the toObject() function, but the object extent is filled with NaN values. Can you guys help me solve this?
The code:
var wkt = new Wkt.Wkt();
wkt.read(wktString);
var config = {
spatialReference: {
wkid: 4674
}
};
var geometry = wkt.toObject(config);
In the file wicket-arcgis,js, line 212 there is a if statemente wich return the rings in case there is no holes in the WKT.
The problem is that the esri.Polygon doesn't recognize the ring. Removing the if statemente solved the problem and the geometry is now showing on ArcGis maps.
I will open a PR later
mrgr4v3s
pushed a commit
to mrgr4v3s/Wicket
that referenced
this issue
Nov 22, 2019
… holes causes some polygons not recognizable by ARCGIS maps. Simply removing this if statement works just fine for every polygon or multipolygon. In addition to this change, I'm inserting the .idea folders to be ignored by git
I'm trying to convert the following WKT using the toObject() function, but the object extent is filled with NaN values. Can you guys help me solve this?
The code:
The poligon should look like this:
The WKT (wich is kinda HUGE):
The text was updated successfully, but these errors were encountered: