gis

MySQL GIS and Spatial Extensions - how to map regions and query against them

I am trying to make a smartphone app which will return a list of users within a certain proximity, say 100m. It's easy to get the coordinates of my BlackBerry and write them to a database, but in order to return a list of other users within 100m, I need to pull every other record from the database and compare the distance between the tw...

How to draw a map from images?

I want to write a navigator application, which draws maps from images. Maps need to be drawn dynamically, based on user's navigation. My idea is loading 9 images into memory, and then create a view to show needed map: When user navigates, the view is moved. When needed, images which no longer seen will be destroyed, and new ones will ...

Displaying fancy routes in cloudmade based service

I look for a way to display a route in a fancy way using the Cloudmade service. Currently, I can see computed routes like on this tutorial http://developers.cloudmade.com/projects/web-maps-lite/examples/routing, but I look for a fancier way to do it -- without A and B tags, and with colors, etc. Is this possible ? Thanks for your hel...

Combining bordering shapefiles in R

I have five shapefiles of bordering counties in California that I am trying to combine into one large shapefile and maintain the original borders of the counties. I then want to plot points such as this so the map only needs to be a simple map of county boundaries. Is there a way to do this in R or will I have to use something like Arc...

Android: how to get the walking distance between two geo coordinats?

I used this query URL http://maps.google.com/maps?q=from+A+to+B&output=kml ,which is given in the answer to this question. But after I tried it, it doesn't work with coordinates. It works with address names tho. I guess I could use google's geocoding to get the addresses first. But I wonder if there is another way to get the w...

How to convert a GEOS MultiLineString to Polygon using Python?

I am developing a GeoDjango application where users can upload map files and do some basic mapping operations like querying features inside polygons. I recognized that users happen to upload "MultiLineString"s instead of "Polygon"s sometimes. This causes the queries expecting closed geometries to fail. What is the best way to convert...

geo name database (city, points of interest)

Hi,I am building a travel website with django. When a user is typing in the destination city name (or points of interest, like yellow stone), I want to do ajax auto suggestion. The question is how I could get the suggestion database? Is there any web service? Best if it could also support foreign cities. Thanks a lot. ...

How can I convert a shapefile from AGD66 to GDA94 from a script, using open source libraries

How can I convert a shapefile from AGD66 to GDA94 programmatically, using open source libraries? I don't want to use arcgisscripting because I don't have a licence. This needs to be automatable. A bash or python script would be acceptable. This is a little more complicated than a normal reprojection, because a different ellipsoid is ...

How to create a HTML world map with GeoDjango ?

The GeoDjango tutorial explains how to insert world borders into a spatial database. I would like to create a world Map in HTML with these data, with both map and area tags. Something like that. I just don't know how to retrieve the coordinates for each country (required for the area's coords attribute). from world.models import World...

UK Postcode -> Easting, Northing

Hi, Is anyone aware of a free web service which allows me to translate uk postcodes to easting and northings. I found a website where I can use screen scraping but perhaps there is a nice FREE web service out there. Thanks! Christian ...

Split or save a subset of a ESRI Shape SHP file to a new file?

I'm working with shape files in GeoDjango. Right now I'm trying to write a test for code that loads in a shape file and saves it to a database. The shape file currently has a feature count of 64,118. I'd like to reduce this to a handful so the test can quickly load it and confirm everything is right. Since shape files aren't in a tex...

shape fitting - gis

Hi, Let us say I have two shapes. One is a polygon and the other a square. Each shape consists of lines which two points (a latitude/logitude pair). I would like to determine the degree to which the square is within the polygon (percentages 0 ... 100). Is this possible? Any pointers to relevant algorithms would be very much appreciated....

Use GIS to get geographic info for a single point

I am not quite sure where to start with this. I only just started looking into this in the past week, but hopefully someone can help point me in the right direction. The goal of my project is to be able to take a geohash, decode it to latitude and longitude, check the point against some GIS data, and find out some information about that...

Google maps Street View with custom view

I'm curious whether it's possible to use Google Maps Street View as a platform along with custom views. To be more clear, I'd like to build a seating chart for a venue, where seats would have uniques views. As the user scrolls around or clicks on different seats, they'd be taken around the venue, just like in a Street View on Google Ma...

How are Google maps formed?

How are Google maps formed? Are they based on satellite image solely? How are locations and places named? I sometimes see very minute details; gathering them doesn't look like an easy task. ...

Mercator Projection and scaling

http://wiki.openstreetmap.org/wiki/Mercator With the C# example in the above link, I am able to project lat/lon to x/y co-ordinates. However, I'm having problem with scaling. I wonder how much length (in miles?) each pixel have after projection. I would like to scale the map before rendering as 500 pixels per mile or something like that...

Drawing a polygon in pygame

hello friends, i am jaison i like to build an application for land survey process. for that i need to plot points in a canvas for a given gsi file. for example the points be a. .b c. .d .e these are the 5 points and i need to develop a tool to connect these points by line. while closin...

free api for place names area names etc.

Hi, I do not think there is something like this but I give it a go anyway. Let us say I have a square defined by two points (latitude, longitude combination). Is there a (free) API (gazetteer?) which returns the country/countries in which the square is located and possibly place names, cities, admin area names within the square? Anot...

Why compute geodistance with lat/lon instead of caching cartesean points?

When researching on how to do the classic "get POI in range" problem I've found that the most used algorithms are Haversine and if you need real accuracy then Vincenty's formula. I went the first one because high accuracy wasn't an issue. However, it got me thinking on something that hits me as odd, why is that I found no references to c...

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 ...