Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the FID field to ID #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Close the GeoPackage file, so that the spatial indices and extents ar…
…e populated into the table
ryanfranz committed Apr 29, 2019
commit 8744fc8bba8e8e0d5505bb70cdf07d2a688952d4
5 changes: 5 additions & 0 deletions Converters/Option3.py
Original file line number Diff line number Diff line change
@@ -446,6 +446,11 @@ def translateCDB(cDBRoot, outputRootDirectory):
print("Translated " + str(featureCount) + " features.")
gpkgFile.CommitTransaction()

# Close the GeoPackage files
for gpkgPath in datasourceDict.keys():
datasourceDict[gpkgPath] = None;



if(len(sys.argv) != 3):
print("Usage: Option3.py <Input Root CDB Directory> <Output Directory for GeoPackage Files>")
7 changes: 6 additions & 1 deletion Converters/Option4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''
'''
Copyright 2018, US Army Geospatial Center, Leidos Inc., and Cognitics Inc.

Developed as a joint work by The Army Geospatial Center, Leidos Inc.,
@@ -457,6 +457,11 @@ def translateCDB(cDBRoot, outputRootDirectory):
print("Translated " + str(featureCount) + " features.")
gpkgFile.CommitTransaction()

# Close the GeoPackage files
for gpkgPath in datasourceDict.keys():
datasourceDict[gpkgPath] = None;



if(len(sys.argv) != 3):
print("Usage: Option4.py <Input Root CDB Directory> <Output Directory for GeoPackage Files>")