coordinates

google maps: get coordinates from given street

hi all, i'm coding a app which uses google maps gps-coordinates. my question: what's the easiest way to get google maps coordinates with given address info (street, number, zipcode, city) by code (get/post method or such). thx ...

Digitizer-Ink-Screen coordinates conversion

I would like to obtain digitizer coordinates using IRealTimeStylus and the final values should be "floating-point" screen coordinates. In other words since stylus is more accurate, I would like to get in-between pixels sub-coordinates too. From the device characteristics I can get conversion to Ink space and IInkRenderer can be used to c...

Getting mouse co-ordinates on a mouse click in C#

I want to build myself an application that will run in the background (system tray) and log the co-ordinates of my mouse whenever I click the left or right buttons. I found this code online to get the mouse co-ordinates through an event that triggers: protected override void OnMouseMove(MouseEventArgs mouseEv) { txtMouseX.Text = m...

Can anyone convert this 60-bit value to geographic coordinates?!

I have a (DB2) database table containing location information, one column of which is a CHARACTER(16) and contains a single hexadecimal number. I have a program that displays these as points on a map, but no access to its source. Changing the numbers moves the points on the map — I just don't know the algorithm. Some examples (edited ...

iphone touch coordinates

Is there a way to get the coordinates off all touches currently on the display at any given time without having to keep track of all of the touchesBegan, touchesMoved, and touchesEnded. Because as far as I can tell getting the coordinates within any one of these functions by doing: NSSet *allTouches = [event allTouches]; UITouch *touch ...

Matching degree-based geographical coordinates with a regular expression

I'd like to be able to identify patterns of the form 28°44'30"N., 33°12'36"E. Here's what I have so far: use utf8; qr{ (?: \d{1,3} \s* ° \s* \d{1,2} \s* ' \s* \d{1,2} \s* " \s* [ENSW] \s* \.? \s* ,? \s* ){2} }x; Needless to say, this doesn't match. Does it have anything to do with the...

mismatch of event coordinates and view coordinates in Android?

I've been trying to write a little application that recognizes custom events in Android: you hold your finger over a TextView for a certain length of time, and it changes color. I'm using the MotionEvent coordinates and checking if they are within the bounds of a particular TextView, which is within a table. private boolean checkBoun...

barycentric coordinates using quads

Hi everyone, some of you know how fill a quads in 2D using barycentric coordinates?At the present, I'm splitting the quads into 2 triangles, but that way is inefficient because I have to iterate over the second bounding box which repeats pixel that were filled previously (by example, to fill the 2nd triangle I traversed the 1st triangle ...

Getting the 'co-ordinates' of a <TD> cell using jQuery

I'm building somewhat of a different website, below is my HTML markup and my question. Please don't be put off by this wall of text, I'm sure it's really not a difficult problem for someone who know's their stuff but it takes some explaining. <div id="0" class="cell" style="top: 0px; left: 0px;"> <table border="0" cellpadding="0" ce...

Custom TreeView move items and get updated coordinates

Hi all, I am using a Custom TreeView (whit custom item style) bound to an ObservableCollection. I have a function that walks the tree and calculates/stores items' coordinates with the purpose of drawing some custom shapes over the tree. It uses something like this: (...) FrameworkElement grid = VisualTreeHelper.GetChild(currentParent, 0...

SQL 2008 Spatial ordering of objects

I have a dataset containing the start and end points (both OSGB36 and corresponding WGS84 coordinates) of sections of a road network. I am able to import this data in SQL and create geometry and geography data types for the start and end points and for the entire object (LINESTRING etc). Viewing the coordinates in SQL query window enab...

How to export pixel coordinates of point objects from an image (with imagej?)

Dear all, I am on a project where I am interested in the spacing & distribution of point objects in an microscope image. So the image consists of darker, circular small dots from a rather complex background. It would be nice to do this with an feature extraction script automatically some day, but for now I am just hand-picking the poi...

Convert decimal coordinates to Degrees, Minutes & Seconds by c#

Has anyone know simple short code to convert this without use additional libraries ? ...

finding location of specific characters in UILabel on iPhone

I have a UILabel with some text, say "Hello World abcdefg" The label can have multiple lines, different font sizes etc. Question: How do I find the coordinates of all letters "d" in this UILabel. Logical first step is find the position of those characters in the string (UILabel.text), but then how do I translate that into coordinates w...

Sorting ArrayList of shapes

I have an ArrayList of MCommand objects (cmdList) and I want to sort it so that shapes with closest points are next to each other in the ArrayList. For example, say I have three lines in the ArrayList: line(xs, ys, zs, xe, ye, ze) cmdList[0] = line1(1.3, 2.5, 3, 4, 5, 6) cmdList[1] = line2(1, 5, 6.77, 7, 8, 2) cmdList[2] = line3(1, 6,...

How to draw fullscreen in android?

I'm using opengl es 2.0 on android 2.2. My problem here isn't with the canvas, or creating a fullscreen android view, that I already have figured out. I'm wondering how you would set the coordinates of a GL_QUAD, or 2 GL_TRIANGLES to perfectly cover the entire screen, for use as a texturing surface for a 2D game, for example. I current...

Displaying Live Location on a Map

Hey guys, I have a cellular phone which runs a program that uses GPS services. I want to be able to show the phone's current live location on a website. I have a VPS at my disposal. I'm using Waze's Map Services as my map (waze.co.il). I'm familiar with network protocols and client side / forms development but not very familiar with web...

Cocoa Touch - X,Y coordinates

I want to display a image at random places on the screen. My idea is to generate two random numbers one being a x-value or a y-value and then passing it into a method which displays the image on the xy coordinates provided. But, I dont know how to accomplish that so I need some help with coordinates...Also if you know a better way to ac...

screen coordinates with a horizontal scroll bar

Hi all, I need to place icons on a map image. Since the map image is bigger than my screen resolution 1280 x 1024, a horizontal scroll bar is shown. I use Location x and y to place icons, but the problem is: placing an icon at location (0, 0) when the horizontal scroll bar is at left-most position is different from when the horizon...

Rating the straightness of a line

I have a data set that defines a set of points on a 2-dimensional Cartesian plane. Theoretically, those points should form a line, but that line may be perfectly horizontal, perfectly vertical, and anything in between. I would like to design an algorithm that rates the 'straightness' of that line. For example, the following data sets...