Skip to content

Android sample + JTS working - #1507

Merged
karussell merged 3 commits into
graphhopper:masterfrom
devemux86:android
Dec 19, 2018
Merged

karussell merged 3 commits into
graphhopper:masterfrom
devemux86:android

Conversation

@devemux86

Copy link
Copy Markdown
Contributor
  • VTM 0.10.0 OpenGL vector map library
  • Update Android sample build system
  • Downgrade JTS for work on Android

- Update Android sample build system
- Downgrade JTS for work on Android

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot!

Comment thread android/app/build.gradle Outdated
implementation 'org.mapsforge:vtm-jts:0.10.0'
implementation 'org.mapsforge:vtm-themes:0.10.0'
implementation 'com.caverock:androidsvg:1.3'
implementation 'org.locationtech.jts:jts-core:1.15.1'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this required if GH core contains the dependency to jts-core?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the future no, but now 0.12-SNAPSHOT contains the 1.16.0 and I excluded it above for Android to work.

Or we can split the PR in 2 steps, one for downgrade the JTS and one for update the Android sample (after new 0.12-SNAPSHOT is published)?

@karussell karussell Dec 19, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, will probably just manually add a commit with this dependency change and then we can wait until first snapshot is released.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@michaz are there any objections from your side to downgrade JTS from 1.16 to 1.15.1?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@karussell Not that I know of. I think everything I use in JTS has been there forever.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@devemux86 have now made the change and the snapshot is deployed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Then can remove the 2 lines:
exclude group: 'org.locationtech.jts', module: 'jts-core'
...
implementation 'org.locationtech.jts:jts-core:1.15.1'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@karussell now should be ok.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

karussell added a commit that referenced this pull request Dec 19, 2018
karussell added a commit that referenced this pull request Dec 19, 2018
@karussell
karussell merged commit 3479186 into graphhopper:master Dec 19, 2018
@karussell karussell added this to the 0.12 milestone Dec 19, 2018
@devemux86
devemux86 deleted the android branch December 19, 2018 17:25
karussell added a commit that referenced this pull request Feb 19, 2019
* make measurement possible again #1351

* refactored long flags into IntsRef

* more agressive caching

* made core + reader-osm modules working and tests pass

* made gtfs compiling. Finally all tests are green. Yeah

* removed TODO NOW, some for later some are no longer critical as all tests pass

* introduce separate parsing of shared EncodedValues like roundabout to avoid duplicative work

* merged master into intsref_refactoring

* enable to increase edge flags to more than 8 bytes

* parse bytes for edges properly

* JTS downgrade to 1.15.1 #1507

* introduced interfaces for EncodedValues; replaced StringEV with EnumAlikeEV; removed default for EV;

* minor missing renames to EnumEncodedVAlue

* fix bug with more than 4 bytes for edge flags

* made cachedIntsRef cleaner and reduce object creation when there are edges and shortcuts

* renamed EnumAlike to IndexBased and EnumEncodedValue to ObjectEncodedValue

* use cached IntsRef for CH preparation

* trying another approach

* for now make setSpeed protected

* Fixes some compile errors after merge, leaves some todos, only one test class is failing.

Signed-off-by: easbar <[email protected]>

* Adjusts debugPrint() methods to changed api and intsref.

Signed-off-by: easbar <[email protected]>

* minor fix.

Signed-off-by: easbar <[email protected]>

* Fixes EdgeBasedNodeContractorTest.

Signed-off-by: easbar <[email protected]>

* Adds more efficient shortcut method (prevents iterator), but sth is wrong.

Signed-off-by: easbar <[email protected]>

* Fixes error (write flags to edges DA instead of shortcuts) and uses new method for node- and edge-based CH.

Signed-off-by: easbar <[email protected]>

* minor

Signed-off-by: easbar <[email protected]>

* minor improvements

* Minor cleanup.

Signed-off-by: easbar <[email protected]>

* Avoids intsref for shortcut updates and removes IntsRef creation from CHEdgeIteratorImpl.

Signed-off-by: easbar <[email protected]>

* removed unnecessary getDirectFlags method and some minor cleanup

* shortcuts use cached chFlags but do not use setFlags

* Removes unused intsref.

Signed-off-by: easbar <[email protected]>

* minor cleanup

* add some final


Co-authored-by: easbar <[email protected]>
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