Skip to content

Added UTM, MGRS, GARS, LatLon graticules and coordinate converters#16

Merged
EMaksymenko merged 7 commits intoWorldWindEarth:developfrom
EMaksymenko:feature/graticule
Oct 22, 2019
Merged

Added UTM, MGRS, GARS, LatLon graticules and coordinate converters#16
EMaksymenko merged 7 commits intoWorldWindEarth:developfrom
EMaksymenko:feature/graticule

Conversation

@EMaksymenko
Copy link
Copy Markdown
Member

@EMaksymenko EMaksymenko commented Apr 20, 2019

Description of the Change

Added UTM, UPS, MGRS coordinates converters and UTM, MGRS, GARS, LatLon graticules. The code was ported from the WorldWindJava SDK.

Why Should This Be In Core?

Graticules extend the usefulness of the SDK.

Benefits

When displayed, graticules can enhance the geospatial situational awareness.

Potential Drawbacks

Unknown.

Applicable Issues

Closes #11

@emxsys emxsys changed the title Feature/graticule Added UTM, MGRS, GARS, LatLon graticules and coordinate converters Apr 21, 2019
@emxsys
Copy link
Copy Markdown
Member

emxsys commented Apr 21, 2019

@Sufaev Thanks for this pull request. I updated the description and title to conform to the SDK standards. Please review it to ensure it is correct; embellish as you see fit.

Looks good. Are you already using this code in production? If so, I will approve and merge.

@EMaksymenko
Copy link
Copy Markdown
Member Author

EMaksymenko commented Apr 21, 2019

@emxsys I have not used this feature in production yet. It was done only month ago. But I spent about three days to test all types of graticule in all level of details. I think it will be better if someone else try to test them also and confirm quality.

Furthermore, I have not tested performance on low-end devices. I have no low-end devices to test. It will be good if somebody confirm that performance is good enough.

But from other hand, you can merge it and we will fix it if something will go wrong. It is not a main functionality and it will not influence main code stability.

@wcmatthysen
Copy link
Copy Markdown
Member

@Sufaev, I ported the fixes from the WorldWindJava code-base. However, I cannot commit to this pull-request as I don't have write-access to this repository. You can get the patch I made to this pull-request if you go to this gist. You just need to view the raw file contents by clicking on the "Raw" button and then saving the text to disk as:

0001-Ported-MGRS-fixes-from-WorldWindJava.patch

And then on this feature/graticule branch you do a:

git am 0001-Ported-MGRS-fixes-from-WorldWindJava.patch

to apply the patch to your branch. You can then push the changes to your fork.

@EMaksymenko
Copy link
Copy Markdown
Member Author

I am receiving an error:

git am ~/0001-Ported-MGRS-fixes-from-WorldWindJava.patch
Applying: Ported MGRS-fixes from WorldWindJava.
.git/rebase-apply/patch:354: trailing whitespace.
.git/rebase-apply/patch:368: trailing whitespace.
.git/rebase-apply/patch:378: trailing whitespace.
.git/rebase-apply/patch:398: trailing whitespace.
.git/rebase-apply/patch:403: trailing whitespace.
error: patch error: worldwind/src/main/java/gov/nasa/worldwind/geom/coords/MGRSCoordConverter.java:33
error: worldwind/src/main/java/gov/nasa/worldwind/geom/coords/MGRSCoordConverter.java: patch can not be applied

@wcmatthysen
Copy link
Copy Markdown
Member

@Sufaev, maybe try:

git am --ignore-whitespace 0001-Ported-MGRS-fixes-from-WorldWindJava.patch

It looks like whitespace errors.

@EMaksymenko
Copy link
Copy Markdown
Member Author

Done. Patch applied. Thanks.

EMaksymenko and others added 7 commits October 23, 2019 01:57
Ported the MGRS bugfixes that was made in WorldWindJava to this
code-base. The description for the changes were:

a) Index out of b typo in convertMGRSToUPS; clearly
the index should have been 1 instead of 12.
b) Conversions from geodetic to MGRS would fail for low southern
latitudes (zone 0). Geotrans 3.7 has this problem fixed. The WorldWind
conversion code was derived from NGA's Geotrans. Test case:
Lat: -89.345400 deg, Lon: -48.930600 deg ==> MGRS: AZN 45208 47747
It is not possible to test Navigator without WorldWindow instance.
@EMaksymenko EMaksymenko merged commit ba14661 into WorldWindEarth:develop Oct 22, 2019
@EMaksymenko EMaksymenko deleted the feature/graticule branch October 22, 2019 23:39
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.

Port graticule layers and coordinate converters from WorldWindJava

3 participants