coordinates

Determine the urban district from coordinates

Hi, I am looking for a database that allows to find the name of an urban district from the coordinates. I have tried to use Google Maps or Open Street Map to find that information, but they do not seem to be able to deliver this data. I'm especially looking for a database for Germany Cheers, Michael ...

How can I calculate a trend line in PHP?

So I've read the two related questions for calculating a trend line for a graph, but I'm still lost. I have an array of xy coordinates, and I want to come up with another array of xy coordinates (can be fewer coordinates) that represent a logarithmic trend line using PHP. I'm passing these arrays to javascript to plot graphs on the...

Matlab: convert global coordinates to figure coordinates

If I get coordinates via coords = get(0,'PointerLocation'); How can I convert them into points gotten via ginput? i.e, I would like to get the same values from coords = get(0,'PointerLocation'); coords=someConversion(coords); As I would have gotten by calling coords=ginput(1); And clicking inside the figure in the same spot a...

Code coordinates to match compass bearings

Right now in Matlab (0,0) is the origin, 0 degrees / 2pi would be to the right of the cartesian plane and angles are measured counter clockwise with 90 degrees being at the top. I'm trying to write a simulator where the coordinates would match a compass bearing. 0/360 degrees or 2pi would be at the top and 90 degrees would be on the ri...

Blackberry: Return value of Coordinates.distance()

I want to know metric of the value returned by Coordinates.distance() ...

Converting from subarray coordinates to array coordinates

I know the center (x,y) coordinates of a subarray in terms of the subarray space and general array. For other parts of the subarray I also know the coordinates in the subarray space - but I want to find the coordinates in the general array? Is there an elegant way to do it in MATLAB? In principle I think you should still be able to find ...

Java Simple WGS84 Lat Lon to Pixel X, Y

I've read a multitude of information regarding map projection today. The amount of information available is overwhelming. I am attempting to simply convert lat, long values into a screen X, Y coordinate not using any map. I do not need the values projected onto any map, just on the window. The window itself is representing approx. a 1...

Get coordinates in parent, but not in stage.

I know about Flash's localToGlobal and globalToLocal methods to transform coordinates from the local system to the global system, but is there a way to achieve the intermediate? To transform coordinates from an arbitrary system to any other arbitrary system? I have a clickable object inside a Sprite, and the Sprite is a child of the sta...

How to get coordinates when iPhone is locked/sleeping?

For normal situations, the didUpdateToLocation (of CLLocationManager) does not work any more when the lock/sleep button is pushed, and your app cannot get further newLocation coordinates during the locked period. However, some apps CAN track during the locked period, and they will show the correct route when you unlocked and see the Map...

Why doesn't JFreeCharts correctly connect the points in my xy-line graph?

Each letter A,T,G,C represents a direction for the plot to graph. Specifically, “A” means move right, “T” is move down, “C” is move up, and “G” is move left. When the applet reads A,T,C, it plots the graph correctly. However, when I plot G, the graph is messed up. When I input "ACACACA," the graph is like a rising staircase. When I input...

Trigger J2ME application when GPS coordinates change

I need to know, how to trigger or open J2ME application when GPS coordinates changes ...

Setting the origin to center of the screen instead of the top left screen?(iPhone)

Hi, I am working on an iPhone app and I am trying to make something that has to do with line-circle collision detection. I am using the slope of the line and checking if the coordinates of a circle suffice the equation y = mx + b. But, with the current origin (0,0) at the top left it is a pain to get the slope. Any way I can convert the ...

Sort latitude and longitude coordinates into clockwise ordered quadrilateral

Problem Users can provide up to four latitude and longitude coordinates, in any order. They do so with Google Maps. Using Google's Polygon API (v3), the coordinates they select should highlight the selected area between the four coordinates. Question How do you sort an array of latitude and longitude coordinates in (counter-)clockwise...

How can I move an object left and right with silverlight?

I currently have two buttons that say left and right, and I want them to move a square object left and right respectively. What its currently doing when i press left is moving the square to the left, and if I press left again, it resets from the center and goes left. I want it so that when I press left, from where ever it is currently ...

I've got my 2D/3D conversion working perfectly, how to do perspective

Although the context of this question is about making a 2d/3d game, the problem i have boils down to some math. Although its a 2.5D world, lets pretend its just 2d for this question. // xa: x-accent, the x coordinate of the projection // mapP: a coordinate on a map which need to be projected // _Dist_ values are constants for the projec...

How do I update an MKAnnotation location with new coordinates?

Hi everyone, i'm having problems trying to update an annotation location with different coordinates. Is there any way I can change de location property without having to create another annotation? I've tried the code below with no luck. The annotation i'm trying to get is not updating its location. Please help! CLLocationCoordinate2D lo...

How to convert window coordinates relative to a specific view?

Example: I have a CGPoint in window coordinates: CGPoint windowPoint = CGPointMake(220.0f, 400.0f); There is aView which has a superview in a superview in a superview. Somewhere deep in the view hierarchy, probably even transformed a few times. When you get a UITouch, you can ask it for -locationInView: and it will return the coordin...

ActionScript Local X And Y Coordinates Of Display Object?

i'm trying to trace the x and y coordinates from within a sprite. i've added a rectangle to the stage: var rect:Rectangle = new Rectangle(10, 10, 200, 200); addChild(rect); rect.x = rect.y = 100; adding a Mouse_Move event to the rect, i can trace mouseX and mouseY to receive the coordinates of the stage while moving over the rect, bu...

Missing Coordinates. Basic Trigonometry Help.

please refer to my quick diagram attached below. what i'm trying to do is get the coordinates of the yellow dots by using the angle from the red dots' known coordinates. assuming each yellow dot is about 20 pixels away from the x:50/y:250 red dot at a right angle (i think that's what it's called) how do i get their coordinates? i beli...

Look for coordinates - display an info window with a name on Google Maps

In Google Maps v2 GClientGeocoder.getLocations() you can search for an address or for GLatLng. Is there a way to combine these two, namely: search for a string containing both values, something like Home @12.345,21.8970 have the result (anchored at the coordinates) on map with a place name (Home) in the info window? ...