Missing Fields in Appended Shapefile, SaveTo , ArcMap, File
System: Win7 Ent, 64bit, Admin rights (but did not run as admin), DNRGPS 6.0.0.8 (2/16/2012)
Appended waypoints to a shapefile using > SaveTo > ArcMap > File.
The Fields from DNRGPS are not recognized by ArcGIS... but the point is added. If the dbf if viewed in excel the appended fields are there.
ArcGIS will not let me add a field name that DNRGPS added but I just cant see them. Also then If i export the shapefile from ArcGIS and the new shapefile does not have the DNRGPS fields even when viewed in excel.
DNRGPS also adds the shapefile again eventhough it was already present as one of the layers.
+++++++++++++
Followup -
It is acting as if the shapefile is not properly formed but closing and reopening ArcGIS the fields show up normally!
Running DNRGPS "As Administrator" the theme was not added again but the fields were still missing until I restarted ArcGIS. Running ArcGIS "As Administrator" did not seem to matter either.
+++++++++++++
Appended waypoints to a shapefile using > SaveTo > ArcMap > File.
The Fields from DNRGPS are not recognized by ArcGIS... but the point is added. If the dbf if viewed in excel the appended fields are there.
ArcGIS will not let me add a field name that DNRGPS added but I just cant see them. Also then If i export the shapefile from ArcGIS and the new shapefile does not have the DNRGPS fields even when viewed in excel.
DNRGPS also adds the shapefile again eventhough it was already present as one of the layers.
+++++++++++++
Followup -
It is acting as if the shapefile is not properly formed but closing and reopening ArcGIS the fields show up normally!
Running DNRGPS "As Administrator" the theme was not added again but the fields were still missing until I restarted ArcGIS. Running ArcGIS "As Administrator" did not seem to matter either.
+++++++++++++
Leave a comment
Chris,
If the SaveTo -> ArcMap -> File, does the following:
Saves the GPS data to a shapefile, and then requests ArcMap to open the shapefile, then I think the problem is on your end. I'm guessing that you have not flushed/closed the shapefile before asking ArcMap to load it. The code on my end related to this is incredibly simple, and copied directly from some samples on the ESRI website. It seems works just fine given an arbitrary Shapefile.
If you point me to your calling code, I can take a look to see if there is something missing.
If I have misunderstood the semantics of SaveTo->ArcMap->File, then please correct me.
-Regan
If the SaveTo -> ArcMap -> File, does the following:
Saves the GPS data to a shapefile, and then requests ArcMap to open the shapefile, then I think the problem is on your end. I'm guessing that you have not flushed/closed the shapefile before asking ArcMap to load it. The code on my end related to this is incredibly simple, and copied directly from some samples on the ESRI website. It seems works just fine given an arbitrary Shapefile.
If you point me to your calling code, I can take a look to see if there is something missing.
If I have misunderstood the semantics of SaveTo->ArcMap->File, then please correct me.
-Regan
I'm pretty sure I'm closing the shapefile but I'll double check. I think it this problem only occurs with a layer that exists in ArcMap and then DNRGPS appends to it. It could be that my code isn't refreshing that layer correctly. I'll be away from work until the 19th and will look at this when I get back in.
Ah.. If you are writing to a file that is currently opened in ArcMap, I would expect strange behavior. I vaguely recall having a problem similar to this a long time ago. Reloading the datasource did not pick up schema changes made external to ArcMap. I had to restart ArcMap. This might be a limitation in ArcMap. If you can confirm exactly when the problem occurs, I might be able to see if there is some 'reload' command that will refresh ArcMap.