Dissolve & Shape_Area / Shape_Length Fields

2849
2
Jump to solution
03-09-2015 07:56 AM
BenjaminMittler
Occasional Contributor III

Hello All,

I have written a script that takes an input,runs a couple of geoprocesses, exports to an excel sheet, and then runs a couple of manipulations on the excel sheet.

I have tried to make it so that by the time you are at the stage where your excel spreadsheet has been created the spreadsheet fields will always look the same no matter how many fields in the input. This allows me to easily manipulate the excel spreadsheet.

The one problem i am running into involves my dissolve step. I have it set up so that Dissolve is run on two fields. When my input is a shapefile and dissolve is run the output is a shapefile with those 2 fields. However, if my input is a gdb layer my output will contain those 2 fields with the addition of the Shape_Area / Shape_Length Fields.

Does anyone know why Shape_Area / Shape_Length are automatically added when using a gdb but not when using a shapefile?

Thanks,

Ben

0 Kudos
1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor

These automatic fields are one of the benefits of geodatabase feature classes. I don't believe you can turn them off.

View solution in original post

2 Replies
DarrenWiens2
MVP Honored Contributor

These automatic fields are one of the benefits of geodatabase feature classes. I don't believe you can turn them off.

BenjaminMittler
Occasional Contributor III

Well that is certainly unfortunate. Looks like i'll have to code in to turn off those two fields before exporting.

0 Kudos