Skip to content

Change the FID field to ID#1

Open
ryanfranz wants to merge 13 commits into
Cognitics:masterfrom
ryanfranz:master
Open

Change the FID field to ID#1
ryanfranz wants to merge 13 commits into
Cognitics:masterfrom
ryanfranz:master

Conversation

@ryanfranz
Copy link
Copy Markdown

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
Copy Markdown
Member

kevinbentley commented Mar 21, 2019 via email

@ryanfranz
Copy link
Copy Markdown
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
Comment thread Converters/Option1d.py
#convertSHP(sqliteCon,shpFilename,outputGeoPackageFile, fClassRecords, True)
sqliteCon = sqlite3.connect(outputGeoPackageFile)
if(createExtendedAttributesTable(sqliteCon,shpFilename)):
if(0 and createExtendedAttributesTable(sqliteCon,shpFilename)):
Copy link
Copy Markdown

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
Copy Markdown
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