mapping

Decent, simple, GIS/mapping component for ASP.NET?

I need to display a map of the U.S. with states shown in different colors according to underlying data. I'd also like to have this map contain some facility for subscribing to hover/click events on each state in javascript, presumably using an imagemap. The data won't be changing in any kind of AJAX-y way, so ideally this component would...

Mapping latitude/longitude to a distorted map

I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map. Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this? At first I decided to create a system of linear equations for the three nearest lat/long points a...

Map Routing, a la Google Maps?

I've always been intrigued by Map Routing, but I've never found any good introductory (or even advanced!) level writeups talking about it. Does anybody have any pointers, hints, etc? update: I'm primarily looking for pointer as to how a map system is implemented, data structures, algorithms, etc. ...

Java code for WGS84 to Google map position and back

Searching for some sample code for converting a point in WGS84 coordinate system to a map position in Google Maps (pixel position), also supporting zoom levels. If the codes is well commented, then it can also be in some other language. You can also point me to a open source Java project :) Some resources found: OpenLayer implementa...

How do I calculate distance between two latitude longitude points?

Here's an easy one for you: How do I calculate the distance between two points points specified by latitude and longitude? EDIT: For clarification, I'd like the distance in kilometres, the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available. ...

Finding City and Zip Code for a Location

Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to http://stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.) Related question: http://stackoverflow.com/questions/158557/get-stree...

Why does Python's iter() on a mapping return iterkeys() instead of iteritems()?

It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the whole mapping (constituted by a set of key-value pairs). Is there a historical reason for this? ...

Which tool do I use if I want to map a programming framework visually and see the relationship between all entities?

I find myself to be a visual person and sometimes it's easier to learn something if I can draw diagram/pictures out of it. My question is which tool do I use if I want to map a programming framework (for example .net) visually and see the relationship between all entities (such as classes and members) ...

We're manually mapping our internal data elements to external vendors' xml schema. there's gotta be a better way...

I'm considering Altova MapForce (or something similar) to produce either XSLT and/or a Java or C# class to do the translation. Today, we pull data right out of the database and manually build an XML string that we post to a webservice. Should it be db -> (internal)XML -> XSLT -> (External)XML? What do you folks do out there in the wide...

Does such a procedure exist in a Scheme standard and if yes, how is it called?

I looked for the name of a procedure, which applies a tree structure of procedures to a tree structure of data, yielding a tree structure of results - all three trees having the same structure. Such a procedure might have the signature: (map-tree data functree) Its return value would be the result of elementwise application of f...

TIGER shapefiles - using and interpreting

I know of the US GIS TIGER file format from years ago, but have never used it. I'm very shortly going to need to very quickly implement simple geocoding and vector graphics of roads and other features. Where do I go for information - are there tutorials, example queries, etc? Are there other ways to include geocoding and basic mappi...

GIS/Mapping solutions that provide easy access to routing data

I'm look for a GIS/Mapping tool that will give me easy SERVER-SIDE access to route information (specifically, trip time and distance) in an ASP.NET web application. From what I can tell, Google and Yahoo maps do everything client-side in javascript, but neither provide services to retrieve just the route information. I'm interested in b...

Why isn't my NHibernate bag collection setting the 'parent id' of the children dynamically?

I have a new object with a collection of new objects within it on some property as an IList. I see through sql profiler two insert queries being executed.. one for the parent, which has the new guid id, and one for the child, however, the foreign-key on the child that references the parent, is an empty guid. Here is my mapping on the par...

Annotated Spring-MVC controller not recognized when controller extends interface

I'm using spring 2.5, and am using annotations to configure my controllers. My controller works fine if I do not implement any additional interfaces, but the spring container doesn't recognize the controller/request mapping when I add interface implementations. I can't figure out why adding an interface implementation messes up the con...

What is the ideal data type to use when storing latitude / longitudes in a MySQL database?

Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database? ...

Object-relational mapping: What's the best way to implement getters?

What should happen when I call $user->get_email_address()? Option 1: Pull the email address from the database on demand public function get_email_address() { if (!$this->email_address) { $this->read_from_database('email_address'); } return $this->email_address; } Option 2: Pull the email address (and the other User a...

Mapstraction as a library to access Google maps

Do you suggest Mapstraction (library) as a layer to access Google maps? Is it an actively maintained project? Do I stand to again/ lose anything by using this library apart from the primary reason that its provider independent? ...

Which map api would best support fictionally defined maps?

I am researching the feasibility of setting up a mapping tool for my alliance in an online game. The game is not based in the real world so I am not interested in the content of the map tools available, just the functionality. Minimally, I would like the map to display information about where allied cities are located in the world. Id...

Getting String Sets into Presentation Layer

We're working on an hospital information system that is being written on C# and using NHibernate to map objects to database. MVC pattern is being used to separate business logic from UI. Here is the problem, How do you get variable sized different set of strings to UI? For example a Contact object have a property named City that holds ...

Mapping multiple Values to a Value Object in NHibernate

Hi, i'm fairly new to NHibernate and although I'm finding tons of infos on NHibernate mapping on the web, I am too silly to find this piece of information. So the problem is, i've got the following Model: this is how I'd like it to look. One clean person that has two Address Properties. In the database I'd like to persist this in ...