geospatial

Read Information from garmin

I want to extract information such (longitude,latitude,location name) from garmin maps and use the database of this info in my java web application. but i dont know how to extract a region information such as a city from a garmin map as text or binary. If anyone know about it help me please. ...

GeoDjango Point object giving different wkt than was initialized with. What am I doing wrong?

Can someone please explain why the wkt (well-known text) of a point object in geodjango would be returning what seems to be different coordinates than the object was initialized with? I've got to imagine it's something I'm doing wrong, and not geos. The wkt should look like: "POINT (-122.432534 37.764021)" but instead it looks like: 'POI...

Generating Spatia Data in SQL Server 2008

Hi, I need to create a database that would have the spatial data of countries, sub-regions (states, districts ...) of the World. Which would be the best way to approach this? Is there a pre-defined logic (probably using latitude/longitude) to achieve this? Appreciate any help in this regard :) Thanks a lot! ...

Analytical approach to optimizing spatial indices in MsSql2008

What would be the best approach to optimizing spatial index on geometry data? Specifically: How to choose values for grid hierarchy? How to choose value for Max cells per object rule? These are very much data related so I'm looking for a sensible approach to analyzing the data and then testing out the values. ...

Help plotting Geographic Data in R using PBSMapping and Shapefiles

Using O'Reilly's Data Mashups in R as inspiration, I'm trying to plot a handful of addresses on a shapefile of Salt Lake County, Utah found here. I have data frame geoTable: > geoTable address Y X EID 1 130 E 300 S 40.76271 -111.8872 1 2 875 E 900 S 40.74992 -111.8660 2 3 2200 S 700 E 40.72298 -111.8...

Type Error running feature in Rail's Cucumber

I'm trying to run Cucumber for my Rails application and keep getting this error: > superclass mismatch for class Point (TypeError) There's a huge stack trace from this error, but it does not point to anything specific except a missing requirement. Here's the trace: rake features (in /Users/rob/blue/blue_web) /System/Library/F...

Differences when convert between Geometry & Geography instances

Hi there, Using SQL Server 2008: assuming I have a valid geography object geog1, converting it to a geometry instance geom1 (using the same SRID) and converting it back to an object geography geog2 shows no difference between geog1 and geog2. However, due to a problem already discussed here I cannot create a geography object containing...

Is it possible to extend Visual Studio Linq-to-Sql designer to support geometry types?

According to this blog post, Microsoft will not fix this problem soon. There is the technical possibility to do it ourselves, or we will have to wait for Visual Studio 2010 SP1? ...

Geocoding - Grouping multiple addresses into major cities

Been hunting through previous questions on Geocoding and while many are helpful I'm not finding one to my needs. I need to group multiple addresses to the nearest city centers. My only address information is city, country, and state (if applicable). For example, all addresses in San Francisco and within miles should be listed as San ...

Spatial analysis in SAS?

Hi all, Is there a way to do spatial analysis (NOT just graphics) in SAS? What I really want is the ability to geographic queries like one can do in PostGIS or SpatialLite in PROC SQL. I asked this on the SAS-L list and got nothing. Thanks! ...

Given a latitude and longitude, find users interested in that position

Given a table, +-----+---------+---------+---------+---------+---------+ | user| min_lat | max_lat | min_lng | max_lng | +-----+---------+---------+---------+---------+---------+ | a | 46 | 407 | 6 | 367 | | b | 226 | 227 | 186 | 188 | And a Point(x, y) Find users where the point is within the m...

Calculating bounding box a certain distance away from a lat/long coordinate in Java

Given a coordinate (lat, long), I am trying to calculate a square bounding box that is a given distance (e.g. 50km) away from the coordinate. So as input I have lat, long and distance and as output I would like two coordinates; one being the south-west (bottom-left) corner and one being the north-east (top-right) corner. I have seen a ...

Calculating distance from latitude, longitude and height using a geocentric co-ordinate system

I've implemented this method in Javascript and I'm roughly 2.5% out and I'd like to understand why. My input data is an array of points represented as latitude, longitude and the height above the WGS84 ellipsoid. These points are taken from data collected from a wrist-mounted GPS device during a marathon race. My algorithm was to conve...

What spatial SRID is this? (trying to convert a .shp file to WSG84)

Hi folks, I'm trying to import some Shapefile mapping data into Sql2008. Before I do that, I need to convert it to WGS84 / SRID 4326, because all my existing data is in this format. This is the source file info: GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0],UNIT["D...

How can I sort a coordinate list for a rectangle counterclockwise?

I need to sort a coordinate list for a rectangle counterclockwise, and make the north-east corner the first coordinate. These are geographic coordinates (i.e. Longitude, Latitude) in decimal form.1 For example, here are the 4 corners of a rectangle, starting with the north-west corner and moving clockwise: [ { "lat": 34.495239, "lng"...

Geography in a social network

I want to make a global social network, in which users can search for nearby users. What is the preferred way to allow users to easily specify where they are located? Zip code would be accurate, but is US-only. Lat/long would be accurate, but it is too difficult for mom and dad types. Drop-down menu of continent, country, province, m...

How to use linear interpolation estimate current position between two Geo Coordinates?

I have the following available: last reported lat,lon w/timestamp target lat,lon estimated time to target heading How can I interpolate an estimated position over time? I know that's enough to calculate the required average velocity for the remainder of the trip. Given a straight-line distance, it's pretty trivial. I know it has to ...

Equivalent of the php fmod in C#

Does anybody know what the C# equivalent of fmod is? I'm trying to convert this line of code to C#. $lon_rad = fmod(($long1+$dlon_rad + M_PI), 2*M_PI) - M_PI; Here's what I have so far. I just need the fmod converted. double lon_rad = ((lon1+dlon_rad + Math.PI), 2*Math.PI) - Math.PI; ...

Geospatial library for the iPhone

I'm thinking about creating a location-aware iPhone app that could work offline by coming packaged with a list of points of interest (POIs). The app would read the user's current location from CoreLocation and produce a list of the POIs in order of proximity to the user's current location. I need two basic geospatial functions to get t...

how to create image from gis data in C#

I'm using C# to pull spatial data from a sql server 2008 database. I'm then trying to perform operations on that data, but to start... I want to be able to visualize it. That is, I would like to create an image of the data, preferably in jpg format. I thought that I might do it by hand, but that is proving more challenging than I ha...