ngageoint / geopackage-android

GeoPackage Android Library
http://ngageoint.github.io/geopackage-android
MIT License
94 stars 33 forks source link

geopackage cannot open attribute table by ArcMap #44

Closed ghost closed 6 years ago

ghost commented 6 years ago

Please fill out as much known and relevant information as possible.

Version Information:

Why did I make an error in ArcGIS through the gpkg created by Geopackage-Android and written to the data?

Expected Results:

Observed Results:

Steps to Reproduce:

  1. Step One
  2. Step Two
  3. ...

Relevant Code:

// Code to reproduce the problem?

Test Files:

Additional Information:

bosborn commented 6 years ago

Can you provide details on what you are doing? Are you using geopackage-android to create a GeoPackage? If so, can your provide the resulting GeoPackage file and/or code you are calling?

Are you then trying to open that in ArcGIS and getting an error? Do you have that error or log? If you are creating a valid GeoPackage, then you may need to direct your issue to Esri.

If the created GeoPackage is not valid, this could be a result of how the API is being called or a potential bug.

bosborn commented 6 years ago

If you are upgrading this project from geopackage-android:1.4.1 to 2.0.0, see the warnings on the 2.0.0 major release.

From OGC feedback, the constructor order was changed on BoundingBox and TileGrid.

* WARNING - BoundingBox.java (geopackage-core) coordinate constructor arguments order changed to (min lon, min lat, max lon, max lat)
Pre-existing calls to BoundingBox coordinate constructor should swap the min lat and max lon values
* WARNING - TileGrid.java (geopackage-core) constructor arguments order changed to (minX, minY, maxX, maxY)
Pre-existing calls to TileGrid constructor should swap the minY and maxX values

Try changing the arguments order to the BoundingBox constructor in these classes.

Example: BoundingBox boundingBox = new BoundingBox(minLon, maxLon, minLat, maxLon, maxLat);