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

Conversation

ryanfranz
Copy link

Kevin,
I fixed option1.py to use the id field rather than the fid field. You are welcome to merge my change in, if you want.
Thanks,
Ryan

@kevinbentley
Copy link
Member

kevinbentley commented Mar 21, 2019 via email

@ryanfranz
Copy link
Author

One more change to fix a crash when a shapefile doesn't have a class-level dbf attribute file (caused a crash on Yemen CDB Navigation data)

ryanfranz and others added 2 commits March 27, 2019 16:40
Added converter procedure
#Read Featureclass records
featureTableName = converter.getFeatureAttrTableName(shpFilename)
copyFeaturesFromShapeToGeoPackage(shpFilename,outputGeoPackageFile)
#convertSHP(sqliteCon,shpFilename,outputGeoPackageFile, fClassRecords, True)
sqliteCon = sqlite3.connect(outputGeoPackageFile)
if(createExtendedAttributesTable(sqliteCon,shpFilename)):
if(0 and createExtendedAttributesTable(sqliteCon,shpFilename)):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ryan, could you please explain why you want to disable the above if statement ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code crashes on Yemen (Tiles\N12\E044\201_RoadNetwork\L00\U0\N12E044_D201_S002_T003_L00_U0_R0.shp). It is trying to get the CNAM attribute, but from an extended attribute DBF file where one doesn't exist. Since it wasn't converting correctly anyway, I disabled it.

ryanfranz and others added 8 commits April 8, 2019 17:14
Bug fixes for related tables
…input dir and output dir)

Fixed the setting of class-level attributes, fixed boolean and float fields
Various cleanups to make these files almost identical
…mn as integers to facilitate faster SQL queries
…o that an empyt class-level attribute file doesn't prevent attributes from being created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants