When I upload a shapefile using the existing WAB Geoprocessing widget Shapefile uploader. Below is the screenshot. What could be the cause of the problem?
The image below was supposed to show the shape of Kenya. The issue happens in other polygons too.
-
1Perhaps run the shapefile through the Check Geometry tool, and optionally the Repair Geometry tool. Do the polygons look fine when you view the shapefile directly in ArcMap or Pro? – mkennedy Feb 14 '18 at 19:29
-
Yes, they are fine. Now it is fixed. It was spatial reference issue... – wondim Feb 14 '18 at 19:31
The reason for the problem was the spatial reference for the Shapefile uploader (wkid: 4326) was different from the map spatial reference (wkid: 102100). When I changed it, it started to render the shapes correctly.