World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-17-2012, 09:38 AM   #1
gabrieles
Junior Member
 
Join Date: Jul 2012
Posts: 2
gabrieles is on a distinguished road
Default MGRS, boundary and neighbouring

Hi all,

I would like develop the following methods, and for both method the main problem is the "irregular shape" of MGRS's between different zones.


/**
* Retrieves the four corners (as pairs of latitudine/longitude) of a MGRS square.
*
* @param mgrs the MGRS reference a square
* @return vector of four corners of mrgs (each corner has a pair of latitudine/longitude), in the following order:
* south-west, north-west, north-east, south-east
*/
public Angle[] retrieveMgrsBoundary(MGRSCoord mgrs) {
return null; //TODO
}

/**
* Retrieves a MGRS adjacent at a MGRS.
*
* @param mgrs the MGRS reference of a square
* @param eastingOffset the distance of MGRS's square in east direction
* @param northingOffset the distance of MGRS's square in north direction
* @return the MGRS adjacent of mrgs
* E.g.:
* If both eastingOffset and northinOffset are zero, the MGRS returned is itself,
* if eastingOffset is -1 and northingOffset is 0, the MGRS returned is the MGRS immediately on the left.
*/
public MGRSCoord retrieveMgrsNeighbouring(MGRSCoord mgrs, int eastingOffset, int northingOffset) {
return null; //TODO
}


Do you have any hints/suggestions to implement above methods in the better way?

Thanks in advance,

Gabriele
gabrieles is offline   Reply With Quote
Old 08-20-2012, 06:17 PM   #2
gdulus
Junior Member
 
Join Date: Aug 2012
Posts: 1
gdulus is on a distinguished road
Default

Hey Gabriele. I would like to ask you, if you had solution for you problem. I am searching for something similar.

Cheers

Paweł
gdulus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:39 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.