Help! I'm trying to do a simple calculation for square mileage and I keep getting 0's for every field. I am using a state plane PCS and I tried Float, Double, and Long and Short Integer fields with different settings for each.
I am definitely not an expert in Python so does anyone know what I might be doing wrong? And if so, a simple fix?
You might need to perform a repair geometry on your feature class first.
You mention you are doing this in Python. Can you post your code so it can be evaluated? If it is just a one-liner, a screenshot will do. If it is longer, see the following link for how to post code in GeoNet, as it is not intuitive:
Code Formatting... the basics++
Having the code posted in the correct formatting will help GeoNet users troubleshoot the issue.
Chris Donohue, GISP
Hi Keith,
Can you provide more information like data type and origin of data ( is it imported from CAD), you might once check projected coordinate system of data if possible reproject it.
As a test, have you tried simply right-clicking on the field name and selecting "Calculate Geometry?" This may help determine if it is a data-specific or python cause.