Decimal places in fishnet when there shouldn't be

185
1
11-29-2023 05:45 AM
AzharIbrahim
New Contributor III

I have an addin that creates a fishnet as an intermediate step. The input values for the coordinates are integers and after creating the fishnet, the coordinates contain decimal values. If I use the same inputs with the geoprocessing tool directly, there are no decimal values. 

I'm expecting the output to contain polygons on an even grid with no decimal values in the coordinates. I'm not sure why the same inputs return different results when one is run from the toolbox and the other through the sdk.

What I can do to fix the tool run in the addin?

0 Kudos
1 Reply
AzharIbrahim
New Contributor III

Posting here in case anyone else has the same issue. The only difference between the two was that the addin fishnet was in memory, and the other was a shapefile. Changing the output to a shapefile resolved the issue.

0 Kudos