mapping

Are there any open source mapping / GIS frameworks written in Silverlight?

I've been looking for an open source mapping / GIS framework along the lines of OpenLayers but written in Silverlight. Unfortunately I have not been able to find one. Preferably it would be able to consume services (e.g., maps, tiles, geocoding services) from the major map / GIS providers, including (in order of preference): MapServ...

Should I use GeoDjango for mapping a floor plan?

I want to create a floor plan map of an interior space that has clickable regions. My first thought was to investigate GeoDjango since its the mapping app for Django. But considering the dependencies, the learning curve and overall complexity, I'm concerned that I may be trying to swat a fly with a bazooka. Should I use GeoDjango for ...

NHibernate mapping trouble

Hello. I have the following object model: A top-level abstract class Element with many children and descendants. A class Event. Each Element contains a bag of Events. Each Event has a pointer to the parent Element. Up till now - pretty standart one-to-many relationship. But, I want to use table per concrete class strategy. So, t...

Subdomain mapping to another external subdomain

I'm trying to map help.domain1.com to help.domain2.com. I've seen this on UserVoice. They let you map something.yourdomain.com to something.uservoice.com. On domain1.com I've set up a CNAME to help.domain2.com. It works fine but when I open help.domain1.com I get the content of domain2.com instead of help.domain2.com. After some exper...

Entity Framework: Conditional foreign key

Hi all, I have the following schema in the database: BillingReferences (ReferencingType tinyint, ReferencingId tinyint, ReferencedType tinyint, ReferencedId tinyint, IsActive bit) - where all fields (except IsActive) are part of a Unique Index. BillingType (BillingTypeId tinyint, Name varchar(50)) ReferencingType and ReferencedType i...

Legacy mapping with hibernate

For my current project I have to map a legacy database using hibernate, but I'm running into some problems. The database is setup using one 'entity' table, which contains common properties for all domain objects. Properties include (among others) creation date, owner (user), and a primary key which is subsequently used in the tables for ...

Problem with mapping in NHibernate

I've the following class: public class Customer { public virtual int CustomerID { get; protected set; } public virtual string AccountNumber { get; protected set; } public virtual string CustomerType { get; set; } public virtual int TerritoryID { get; set; } public virtual SalesTerritory Territory { get; protected set...

Minimum matching algorithm in 3D: Mapping a set of points to another set with minimal sum of distances

Given are two sets of three-dimensional points, a source and a destination set. The number of points on each set is arbitrary (may be zero). The task is to assign one or no source point to every destination point, so that the sum of all distances is minimal. If there are more source than destination points, the additional points are to b...

Affordable mapping or geocoding integration with winform application?

Hi we're a Micro ISV and I've been looking off and on for months to find a way to integrate street mapping functionality into our windows forms application. Our app is distributed online and I don't want to have to include map data so I thought integrating with an online solution would be best, however I've contacted Google, Microsoft, ...

How to specify table name in Fluent NHibernate ClassMap class?

Hi I am newbie to NHibernate and trying to use Fluent for mapping. My entity class name is different from the database table name it has to be mapped to. I am using mapping class derived from ClassMap<>, but I can't specify the table name: the property TableName from ClassMap is read-only. Thanks for your help. ...

How to handle "secondary" keys in Entity Framework

I'm evaluating using EF against an existing schema - the problem is that I can't work out how to set up associations between tables where the foreign key is NOT the primary key of the master table. As an example, a "foo" may have many "bars" is defined like this (forgive the pseudocode) table foo { int foo_id pk, char(10) foo_code...

Can I specify a hibernate relationship with a filter?

I have a foo that has a relationship to many bar's. When I delete bar's in my system I want to keep them in the database for some crazy business reason so I just set a deleted field to true. Can I specify in my hibernate mapping that I only want my collection to hold elements where that field is false? ...

Inheritance Mapping with Fluent NHibernate

Given the following scenario, I want map the type hierarchy to the database schema using Fluent NHibernate. I am using NHibernate 2.0 Type Hierarchy public abstract class Item { public virtual int ItemId { get; set; } public virtual string ItemType { get; set; } public virtual string FieldA { get; set; } } public abstra...

What is a good reverse db engineer tool for NHibernate?

Does anyone know of a good tool to reverse engineer mappings and business classes for NHibernate? NHibernate is best for greenfield development, but we also need to work with large legacy databases. I've tried NGen, which does ok, but it does the entire DB and you cannot select individual tables or map to sprocs and it maps a UNIQUEIDENT...

Map entities to database with Entity Framework

Hello, I've made a quite big domain model with entity framework. I wanted to know if it is possible to map it so i create automaticly the tables in the database wanted? I've looked up edmgen.exe but still couldn't find the right command. thank's for helping! Edit1: I know the tool LightSpeed from Mindscape ofer this features that's w...

How to avoid extra brackets from appearing while I paste into Vim

Hi, I use some maps while I code : imap ( ()<C-[>i imap [ []<C-[>i imap { {}<C-[>i so that when I put "(" , it writes "()" (same thing for "[" and "{" ). The problem is that when i paste something into Vim : for (i = 0; i < count; i++) { tab[i] = something() } I get for (i = 0; i < count; i++) { tab[i] = something() } )]}) I...

Fluent NHibernate, working with interfaces

I just switched to Fluent NHibernate and I've encountered an issue and did not find any information about it. Here's the case : public class Field : DomainObject, IField { public Field() { } public virtual string Name { get; set; } public virtual string ContactPerson { get; set; } public virtual bool Private ...

[NHibernate] Map unknown amount of columns to Dictionary

I have a legacy system that dynamically augments a table with additional columns when needed. Now I would like to access said table via C#/NHibernate. There is no way to change the behaviour of the legacy system and I dynamically need to work with the data in the additional columns. Therefore dynamic-component mapping is not an option si...

Input in Prolog

I'm currently working on a recursive Prolog program to link routes together to create a basic GPS of the Birmingham area. At the moment I can get output as so: Input routeplan(selly_oak, aston, P). Output P = [selly_oak, edgbaston, ... , aston] What I would like to do is have my program provide some sort of interface, so if I were...

Database Primary Key C# mapping - String or int

In the Northwind Starters Kit, Primary keys from database are mapped to Strings in C#. Is this good practice? And if so, why? thx, Lieven Cardoen ps: Sorry for the maybe wrong question... In Northwind Starters Kit some tables have a auto-incremental primary key with datatype int and others have a non auto-incremental primary key wit...