coordinate-systems

Coordinate Transformation (LL + Elevation to WGS84)

I'm currently working on a 3D visualization project, and I came across an issue that I noticed we've been doing in a hackish way. I'm not too experienced with the WGS84 system itself, and I was wondering if there was a "correct" way to convert a LL point into the WGS coordinate, given a specific value of elevation above the Earth's orbi...

Finding Cities within 'X' Kilometers (or Miles)

This may or may not be clear, leave me a comment if I am off base, or you need more information. Perhaps there is a solution out there already for what I want in PHP. I am looking for a function that will add or subtract a distance from a longitude OR latitude value. Reason: I have a database with all Latitudes and Longitudes in it ...

Polyline offset with closed polygon and islands

I have unsorted set of line segments without any binding to each other. Each line described with 2 points (x,y). I can search for lines with the same points, which means they should be connected. Every line have a thickness attribute. I need to offset each path by this thickness, and create 4 points describing the final plygon (for eac...

Problem with coordinate system and displaced Text in different PDFs using iTextSharp

Hello everyone, I'm working with iTextSharp and .NET 3.5 SP1 (in C#, as you can guess) and modify some existing PDFs using the PdfStamper class. Now I've got two problems: Transforming the coordinate system As I see it, iTextSharp is using (postscript?) points as unit of measurement, but I'd like to transform these coordinates to mill...

how to ascribe (x,y) coordinates to text?

Greetings, Does anyone have a suggestion on how I can either, a) map text on a grid (what i imagine is a Cartesian system where each character has a (x,y) coordinate, or b) if a grid is not possible, somehow measure text for i)location of a character, difference (delta) between one text location and another x2-x1 horizontal or difference...

Java String from Map of X-Y Coordinates

Hello, I have a Map where Coords is defined as so: class Coords { int x; int y; public boolean equals(Object o) { Coords c = (Coords)o; return c.x==x && c.y==y; } public Coords(int x, int y) { super(); this.x = x; this.y = y; } public int hashCode() { return new Inte...

Generating the function of the plane/surface that a given set of coordinates lie on...

This is something related with Mathematics as well. But this is useful in computing as well. Lets say you have 10 coordinates. (x1,y1)(x2,y2)..... in 2D Space. (i.e on a X-Y Plane). Can we find a single smooth curve going across the each coordinate. While expanding the question, If the space is 3D, then can we find an equation of a sm...

CALayer coordinate system

Hi, I'm quite new to Cocoa, but would like to know how to change a CALayer's coordinate system. I read the article Layer Geometry and Transforms from the Core Animation Programming Guide, but still need some practical advice. The default coordinate system has (0,0) at the lower left corner. I would like to change this to the center of t...

How can I represent a coordinate grid in Delphi?

I'm trying to represent a two-dimensional coordinate grid with a two-dimensional array. Problem is, declaring the array flips the X and Y coordinates because of the way Delphi allocates the array. This makes it difficult to read elements of the array. For example, the following program gives a range check error while trying to print: ...

How to convert TM-2 degree coordinate to lat lon on Android?

I am writing a program that convert TM-2 degree to lat/lon on Android, but I can't find formula for that. I do find some example on internet, but most of them are convert with open source library, that I can't use on Android platform. I also find a java class that do convert from UTM to lat lon, but it seems no suitable for TM 2 degreen ...

How to get from Row, Column to Excel A1 notation?

Given a Row and Column (As Long), how can you determine the spreadsheet notation using VBA in Excel (2007): e.g.: (R, C) = (1, 1) -> "A1" (R, C) = (2, 1) -> "A2" (R, C) = (2, 2) -> "B2" Thus if you had a function: Function CellRef(R As Long, C As Long) As String which provided that functionality, you could do something like: Work...

British National Grid Shapefile - convert to WGS84 Lat/Lon

I have a set of ESRI shapefiles which, I'm told, have been written using the British National Grid coordinate system. I need to convert these files to WGS84 lat/lons, for onward conversion to KML files. I'm having trouble doing this as follows: If I open each of the original files in MapInfo Professional telling it that my file has a pr...

Get X Y from lat lon in ozi calibrated map

I have some .map OZI calibrated maps. From those .map, I can get some calibration points (x y in the jpeg picture + lon lat in WGS84). MMPXY,1,142,142 MMPXY,2,5217,142 MMPXY,3,5217,3422 MMPXY,4,142,3422 MMPLL,1, -0.269639, 39.626293 MMPLL,2, -0.186306, 39.626293 MMPLL,3, -0.186306, 39.584626 MMPLL,4, -0.269639, 39.584626 With ...

How do I convert these coordinates to google map readable coordinates?

Hi guys I need to convert coordinates in the following form: N42-53.9° W072-16.2° INto something thats kinda like the following: -90.7311 0.346944 A php function would be greatly appreciated - or just a formula would also be nice enough :) ...

How can I convert coordinates on a square to coordinates on a circle?

I'm developing an indie video game, and have been operating under the assumption that because the thumbstick on my controller has a circular range of motion, it returns "circular" coordinates; that is, Cartesian coordinates constrained to a circular area (of radius 1). In fact, the coordinates are "square"; e.g., the top-right thumbstick...

Need to Convert Set of Coordinates

Hi guys, I'm stuck with another coordinates related query here. I have a number of CSV files and they all have a bunch of coordinates mentioned however the coordinates are in differing formats like some files have the coordinates shown as so: 40.0873°N 20.1531°E While some have them as so: 27°50′21″N 00°11′07″W I need a way to set ...

How to transform a path in svg so that it is parallel to its original location?

Hi, I have a path defined in SVG. I would like to make two copies of the path and translate them so that one sits parallel to the original on one side, and the other sits parallel on the other side. The idea is to end up with 3 paths, all parallel to each other and not overlapping. I have tried simple translations such as transform="tr...

[iphone] get touch coordinates (in the form of 0-480 and 0-320)

i dont get how to translate the coordinates of the iphone. if i make a single touch i get the coordinate. if i make a touch and keep it and release it it shows the difference of the starting and end point. how do i get the absolute position of the touch? thanks! -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ...

WPF: how to make the (0,0) in center inside a Canvas

The WPF Canvas has a coordinate system starting at (0,0) at the top-left of the control. For example, setting the following will make my control appear on the top-left: <Control Canvas.Left="0" Canvas.Top="0"> How can I change it to the standard cartesian coordinates? Basically: (0,0) at center flip Y I noticed this post is...

Is it possible in Java2D to move the coordinate system?

Hi, I need a 2D coordinate system to which renders a user space coordinate system to swing components on the screen. Now that is exactly what Java2D does. But what I need further is to move the relative position of the screen and the coordinate system to get a kind of scrolling. In Java 2D the default offspring (0,0) is in the upper le...