coordinate-systems

How can I determine if a GPS Coordinate is on or in an Ellipse?

青春壹個敷衍的年華 提交于 2019-12-08 13:28:54
问题 Ok, so I am still new to asking questions on Stack Overflow, so please be nice :) I have an issue that I have been trying to solve for a month now with failed results time and time again. I have found various questions somewhat similar to this, but nothing that has struck me as the definitive answer. The closest that I have found so far is this: Convert GPS coordinates to coordinate plane. In short, what I need is to know is if a GPS Coordinate is either on or inside an ellipse. KNOWNS: Width

How to convert MGRS to decimal degrees

≡放荡痞女 提交于 2019-12-08 08:19:57
问题 I am making an iPhone application. I want my app to Convert MGRS co-ordinates to Decimal Degrees. How to do this Programatically ? 回答1: I searched and founded : Determine the grid coordinates of a point on a military map . Here, they have given the manual process of how to determine the six-digit grid coordinates for the point on the map with a 100meter tolerance. You can go through that process and can create your Objective-C code for that. Take a look at this C++ Class : GeoCoords.cpp .

Transform device's attitude so that Z- axis is aligned with north and Y- is pointing gravity in CoreMotion?

戏子无情 提交于 2019-12-07 22:55:13
问题 I use CMAttitudeReferenceFrameXTrueNorthZVertical and this way rotation values roll, pitch and yaw are (0,0,0) when device is flat on table and X+ axis is pointing north. What I would like to do is to have (0,0,0) values when Z- axis is pointing north and Y is now pointing at gravity? Is this possible? 来源: https://stackoverflow.com/questions/9626749/transform-devices-attitude-so-that-z-axis-is-aligned-with-north-and-y-is-poin

Shiny click/brush not working with non-cartesian coordinates?

陌路散爱 提交于 2019-12-07 20:54:15
问题 I am working on a Shiny app that should let a user select geographical data points on a world map generated by ggplot2 (as in this example). This works if I use the regular coord_cartesian coordinate system (which distorts the maps) but fails if I use the more appropriate coord_map coordinate system. It seems like the click/brush events do not receive the correct coordinates after the projection. Is there any way I can work around or fix this without reverting back to cartesian coordinates?

Android Canvas Coordinate System

偶尔善良 提交于 2019-12-07 10:15:23
问题 I'm trying to find information on how to change the coordinate system for the canvas. I have some vector data I'd like to draw to a canvas using things like circles and lines, but the data's coordinate system doesn't match the canvas coordinate system. Is there a way to map the units I'm using to the screen's units? I'm drawing to an ImageView which isn't taking up the entire display. If I have to do my own calculations prior to each drawing call, how to I find the width and height of my

Normalized Device Coordinates

回眸只為那壹抹淺笑 提交于 2019-12-07 06:32:12
问题 I'm writing a library that deals with 2D graphical shapes. I'm just wondering why should my coordinate system range from [-1, 1] for both the x and y axis instead of [0, width] for x and [0, height] for y ? I went for the latter system because I felt it was straight forward to implement. 回答1: From Jim Blinn's A Trip Down The Graphics Pipeline , p. 138. Let's start with what might at first seem the simplest transformation: normalized device coordinates to pixel space. The transform is s_x * X

Not able to translate device co-ordinate system to world co-ordinate system on android

一世执手 提交于 2019-12-06 13:15:42
I have written a small code to convert the device co-ordinates into world co-ordinates by multiplying the Rotation matrix(using getRotationMatrix) and the vector (Ax,Ay,Az) which are the accelerometer values. When I run this, and the phone is static, I get a very fluctuating value for the Z axis(from 9.3 to 10.3) and the other two are 0. However when I give the phone some acceleration in any direction , it still doesn't show any change to those values and they remain zero. This is the part of the code where I get the values. if(ctp.getType()==Sensor.TYPE_ACCELEROMETER){ Ca[0]=event.values[0];

How to convert Earth Centered Inertial (ECI) coordinates to Earth Centered Earth Fixed (ECEF) AstroPy? Other?

China☆狼群 提交于 2019-12-06 12:04:13
问题 I have position (x,y,z) and velocity (Vx,Vy,Vz) vectors in Earth Centered Inertial Coordinates (ECI) for a satellite orbit, and ultimately want to end up with geodetic coordinates (Latitude, Longitude, & Altitude). According to this other Stack Overflow question it seems that I need to convert to Earth Centered Earth Fixed (ECEF) coordinates as an intermediate step (so ECI --> ECEF --> Lat/Lon/Alt). I know ECI and ECEF share the same origin point (the center of mass of Earth) and the same z

How to convert Longitude,Latitude, Elevation to Cartesian coordinates?

北城余情 提交于 2019-12-06 10:19:57
问题 I downloaded weather data and it has longitude (in decimal), latitude (in decimal), and elevation (in m) values. There is no information about the coordinate system used. How I can convert it to cartesian coordinates ?. My attempts are below. But, my problem is to find the right formulas def cartesian(self,longitude,latitude, elevation): R = 6378137.0 + elevation # relative to centre of the earth X = R * math.cos(longitude) * math.sin(latitude) Y = R * math.sin(longitude) * math.sin(latitude)

JFreeChart interactive chart editing handling ChartMouseEvent

自作多情 提交于 2019-12-06 07:54:40
I'm trying to intercept ChartMouseEvent in order to modify an XYSeries of a JFreeChart object created with ChartFactory.createXYLineChart method (and displayed using a JDialog). I retrieve successfully the coordinate of the mouse event this way: public void chartMouseMoved(ChartMouseEvent arg0) { int x = arg0.getTrigger().getX(); int y = arg0.getTrigger().getY(); The origin of the coordinate system (0,0) is located at the red square in the picture. Now, I would like to calculate in which interval is the mouse in. In order to do this I need: the top-left coordinate of the grey chart (green