Skip to content

Commit

Permalink
Merge pull request #31 from ngageoint/develop
Browse files Browse the repository at this point in the history
1.17 release
  • Loading branch information
bosborn authored Nov 21, 2017
2 parents de429cf + f252323 commit 0b186ab
Show file tree
Hide file tree
Showing 12 changed files with 1,197 additions and 372 deletions.
24 changes: 21 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,27 @@ Adheres to [Semantic Versioning](http://semver.org/).

---

## 1.17 (TBD)

* TBD
## [1.17](https://github.com/ngageoint/geopackage-mapcache-android/releases/tag/1.17) (11-21-2017)

* geopackage-android-map version updated to 2.0.0
* GeoPackage share fix for external GeoPackages
* Geometry simplifications for displayed map features based upon zoom level
* Only display and maintain features in the current map views
* Maintain active feature indices when editing map features
* Queryable map features (previously only available for feature tiles)
* Automatically select active feature table when editing features
* Update geometry envelopes when editing features
* Increase default max map features & max points per tile to 5000, max features per tile to 2000
* Updated preloaded GeoPackage url example files
* Updated various now deprecated Android library calls
* gradle plugin updated to 2.3.3
* android maven gradle plugin updated to 2.0
* maven google dependency
* compile SDK version 26
* build tools version updated to 26.0.1
* target SDK version updated to 26
* appcompat v7:26.0.2
* multidex version 1.0.2

## [1.16](https://github.com/ngageoint/geopackage-mapcache-android/releases/tag/1.16) (07-13-2017)

Expand Down
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
buildscript {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
mavenLocal()
}
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 class="project-name">GeoPackage MapCache Android</h1>
<img class="img" alt="GeoPackage" src="http://ngageoint.github.io/GeoPackage/images/GeoPackage.png" width="128px">
<h2 class="project-tagline">by the National Geospatial-Intelligence Agency</h2>
<a href="https://github.com/ngageoint/geopackage-mapcache-android" class="btn">GitHub</a>
<a href="https://github.com/ngageoint/geopackage-mapcache-android/releases/download/1.16/mapcache-1.16.apk" class="btn">APK</a>
<a href="https://github.com/ngageoint/geopackage-mapcache-android/releases/download/1.17/mapcache-1.17.apk" class="btn">APK</a>
<a href="https://github.com/ngageoint/geopackage-mapcache-android/zipball/master" class="btn">.zip</a>
<a href="https://github.com/ngageoint/geopackage-mapcache-android/tarball/master" class="btn">.tar.gz</a>
</section>
Expand Down
12 changes: 7 additions & 5 deletions mapcache/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def googleMapsApiReleaseKey = hasProperty('RELEASE_MAPS_MAPCACHE_API_KEY') ? REL
def googleMapsApiKeyDebug = hasProperty('DEBUG_MAPS_API_KEY') ? DEBUG_MAPS_API_KEY: ''

android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
compileSdkVersion 26
buildToolsVersion "26.0.1"

dexOptions {
javaMaxHeapSize "4g"
Expand All @@ -15,7 +15,7 @@ android {
defaultConfig {
applicationId "mil.nga.mapcache"
minSdkVersion 14
targetSdkVersion 25
targetSdkVersion 26
versionCode 18
versionName '1.17'
multiDexEnabled true
Expand Down Expand Up @@ -50,9 +50,11 @@ task androidAppVersion {
}

dependencies {
compile "mil.nga.geopackage.map:geopackage-android-map:1.4.1" // comment out to build locally
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:26.0.2'
compile "mil.nga.geopackage.map:geopackage-android-map:2.0.0" // comment out to build locally
//compile project(':geopackage-map') // uncomment me to build locally
compile 'com.android.support:multidex:1.0.2'
androidTestCompile 'com.android.support:multidex:1.0.2'
}

configure extensions.android, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,10 @@ private void shareDatabaseOption(final String database) {
// If external database, no permission is needed
if (manager.isExternal(database)) {
// Create the Uri and share
Uri databaseUri = Uri.fromFile(databaseFile);
Uri databaseUri = FileProvider.getUriForFile(getActivity(),
"mil.nga.mapcache.fileprovider",
databaseFile);
shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
launchShareIntent(shareIntent, databaseUri);
}
// If internal database, file must be copied to cache for permission
Expand Down Expand Up @@ -1083,7 +1086,7 @@ public void onClick(DialogInterface dialog, int id) {
}

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

GeometryType geometryType = GeometryType
.fromName(geometryTypeSpinner
Expand Down Expand Up @@ -1238,7 +1241,7 @@ public void onClick(DialogInterface dialog, int id) {
.isChecked();

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

// If not importing tiles, just create the table
if (tileUrl == null || tileUrl.isEmpty()) {
Expand Down Expand Up @@ -2049,7 +2052,7 @@ public void onClick(DialogInterface dialog, int id) {
.isChecked();

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

// Load tiles
LoadTilesTask.loadTiles(getActivity(),
Expand Down Expand Up @@ -2328,8 +2331,8 @@ private void createFeatureTilesTableOption(final GeoPackageTable table) {
Projection projection = null;
if (boundingBox == null) {
boundingBox = new BoundingBox(-ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WEB_MERCATOR_MIN_LAT_RANGE,
ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WEB_MERCATOR_MAX_LAT_RANGE);
projection = ProjectionFactory.getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
} else {
Expand Down Expand Up @@ -2449,7 +2452,7 @@ public void onClick(DialogInterface dialog, int id) {
.isChecked();

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

GeoPackageManager manager = GeoPackageFactory.getManager(getActivity());
GeoPackage geoPackage = manager.open(table.getDatabase());
Expand Down Expand Up @@ -2626,8 +2629,8 @@ private void addFeatureOverlayTableOption(final GeoPackageTable table) {
worldGeodeticBoundingBox = worldGeodeticTransform.transform(webMercatorBoundingBox);
} else {
worldGeodeticBoundingBox = new BoundingBox(-ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WEB_MERCATOR_MIN_LAT_RANGE,
ProjectionConstants.WGS84_HALF_WORLD_LON_WIDTH,
ProjectionConstants.WEB_MERCATOR_MAX_LAT_RANGE);
}

Expand Down Expand Up @@ -4117,18 +4120,15 @@ public boolean onLongClick(View v) {
break;
}
}
imageView.setImageDrawable(getResources().getDrawable(
drawableId));
imageView.setImageDrawable(ContextCompat.getDrawable(getActivity(), drawableId));
break;

case TILE:
imageView.setImageDrawable(getResources().getDrawable(
R.drawable.ic_tiles));
imageView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.ic_tiles));
break;

case FEATURE_OVERLAY:
imageView.setImageDrawable(getResources().getDrawable(
R.drawable.ic_format_paint));
imageView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.ic_format_paint));
break;

default:
Expand Down
Loading

0 comments on commit 0b186ab

Please sign in to comment.