Is is possible to expose a shapefile's FID field?
Shapefile readers do not list it and I can't find how to expose it.
I need to store that field's value in a control field to keep track of the original features.
Is is possible to expose a shapefile's FID field?
Shapefile readers do not list it and I can't find how to expose it.
I need to store that field's value in a control field to keep track of the original features.
Best answer by jdh
The FID is not a field that's part of the shapefile, it's an automatically generated objectID controlled by the ESRI software, if you edit the shapefile to delete a field, all the FIDs are regenerated.
It's not the best field to track changes to features, because it is not persistent file to file.
That said, use a Counter after the reader, starting at 0 in local mode. and you will end up with the equivalent of the FID. Note if you are reading multiple files, the counter name needs to be set to the fme_dataset so that the counter resets to 0 for each shapefile.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.