Package gov.nasa.worldwind.poi

Examples of gov.nasa.worldwind.poi.BasicPointOfInterest


                }

                if ( lat.equals("") == false && lon.equals("") == false && pla.equals("") == false )
                {
                        LatLon latlon = LatLon.fromDegrees(Double.parseDouble(lat), Double.parseDouble(lon));
                        PointOfInterest loc = new BasicPointOfInterest(latlon);
                        loc.setValue(AVKey.DISPLAY_NAME, pla );
                        lstPois.add(loc);
                                }
            }

            return lstPois;
View Full Code Here


        if (_isDecimalDegrees_(strsCoord))
        {
            Double d1 = Double.parseDouble(strsCoord[0].trim());
            Double d2 = Double.parseDouble(strsCoord[1].trim());

            return new BasicPointOfInterest(LatLon.fromDegrees(d1, d2));
        }
        else //may be in DMS
        {
            Angle aLat = Angle.fromDMS(strsCoord[0].trim());
            Angle aLon = Angle.fromDMS(strsCoord[1].trim());

            return new BasicPointOfInterest(LatLon.fromDegrees(aLat.getDegrees(), aLon.getDegrees()));
        }
    }
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.poi.BasicPointOfInterest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.