mapping

Looking for an algorithm to map out an area and then methodically trace over the area.

I'm looking at playing with some basic robotics, I'm looking at building a simple bot that navigates around a room. The idea is that it would find edges and as it goes it would build up a map of the area. Once that's done I'd like it to be able to walk methodically over the entire area to find any obstacles inside the area. Does anyone...

Mapping a list of Enums

I have a table called UserPermissions with a FK to the users table by userId and then a string column for the string value of an enum. The error I am seeing is NHibernate.MappingException: An association from the table UserPermissions refers to an unmapped class: GotRoleplay.Core.Domain.Model.Permission My Permission Enum: public ...

Spring + Hibernate Dynamic Mapping

Apologies if this is a repost, I could not find the search terms to locate a similar question. The application that I work on has support for plugins that can be loaded or unloaded at runtime. There are several API hooks that allow these plugins, among other things, to register richer objects then those provided out of the box. When a p...

Hibernate Embeddable Inheritance

I have an object with a field that can be a number of object types. This object is encoded in a single table with a discriminator column for the field's subtypes. Each of these subtypes have their fields mapped to a column in the parent objects table. I cannot seem to model this in hibernate. The code bellow will return null for getSubfi...

Mapping two integers to one, in a unique and deterministic way

Imagine two positive integers A and B. I want to combine these two into a single integer C. There can be no other integers D and E which combine to C. So combining them with the addition operator doesn't work. Eg 30 + 10 = 40 = 40 + 0 = 39 + 1 Neither does concatination work. Eg "31" + "2" = 312 = "3" + "12" This combination operation...

Building a buffer over a terrain model

I have a polygon and a terrain model (can be either grid or TIN). I'd like to a build, say, a 1km buffer so that the 1km is measured over the surface of the terrain, i.e. not planimetric. The buffer must always be at least 1km from the polygon and prefer a measure over the flattest part of the terrain. Anyone know a good way to do th...

Creating BizTalk map with multiple input schema

Is there anyway to create a BizTalk map with multiple input schema "from scratch" ? i.e. not creating an orchestration and a transform shape and selecting multiple messages in the Source ...

XNA or OpenGL sphere texture mapping

I'm trying to map a completly normal texture into a sphere. I can't change my texture to a wrapped one, so I need to find some mapping function. This is my vertex shader code: vec3 north = vec3(0.0, 0.0, 1.0); vec3 equator = vec3(0.0, 1.0, 0.0); vec3 northEquatorCross = cross(equator, north); vec3 vertexRay = normalize(gl_Vertex.xyz);...

Google Polyline algorithm license

Does anyone know if the Google polyline algorithm has a license attached to it? I would like to use the algorithm in a different mapping solution I am developing but I'm unsure of it's restrictions. There doesn't appear to be any info on the algorithm description page. ...

Mapping an Oracle Date to a Java object using Hibernate

I get the message "literal does not match format string". For instance, here are some methods from a Java class: public String getDateTime(); public void setDateTime(String date_time); Here is the mapping from the Hibernate config file for that class: <property name="dateTime" column="date_time"> and here is the DDL for that col...

Excluding the first instance of an unbounded element in a BizTak map

I have a schema that is the souce with an element that is unbounded. I have a similar element on the destination schema that is also unbounded. I'm trying to figure out how in the map I can ignore the first instance in the source map? ...

Biztalk Database Lookup functoid and Value Extractor no match

I have an element in the source schema of a map that contains a code. I am using this as an input to a database lookup functoid. The output of the database lookup functoid is being passed as an input parameter to a value extractor functoid, which is outputting a column value. So far so good all as expected. My question is how do I handl...

Hibernate error: cannot resolve table

I'm trying to make work the example from hibernate reference. I've got simple table Pupil with id, name and age fields. I've created correct (as I think) java-class for it according to all java-beans rules. I've created configuration file - hibernate.cfg.xml, just like in the example from reference. I've created hibernate mapping for...

BizTalk Database Lookup functoid fixed condition

Is there a way to further restrict the lookup performed by a database lookup functoid to include another column? I have a table containing four columns. Id (identity not important for this) MapId int Ident1 varchar Ident2 varchar I'm trying to get Ident2 for a match on Ident1 but wish it to only lookup where MapId = 1. The functoid o...

Fluent-nhibernate: discriminate objects to load the hierrachy correctly

Update Well, as i was told by Stuart Charles and James Gregory, my model was weird enough to begin with. Apparently double-way references between classes while discriminating between the different kinds of relations isn't done, and apparently for a very good reason. I tore the model down, changed it to a different one using HasManyToMa...

FluentNHibernate and Enums

I have an enum called Permissions. A user can be assigned permissions, or permissions can be asigned to a role and the user can be given a role. User and Role both have a property like this: public virtual IList<Permission> Permissions { get; set; } I want to use an enum for Permissions so in my code I can do things like public sta...

C#: How can Server.Mappath read a file?

I have a Visual Studio 2008 solution that contains a handful of projects. One project contains a WCF Service I'm deploying. That WCF Service references some code in one of the other projects. That code is trying to read a file that's in a folder in the WCF project. Pseudo-project structure: Solution Project1 myclass.cs string ...

Mapping complicated references in NHibernate

I am trying to build the following association in NHibernate (the base Entity class contains an Id property, it and the attributes are from S#arp Architecture) public class Terminal : Entity { public virtual string Name { get; set; } } public class Order : Entity { [NotNull] public virtual Terminal Terminal { get; set; } } ...

vim mapping

I am trying to set up a vim key mapping that will map the key ';' to A; - i.e. I want to auto append ';' to the end of the line. However I am having difficulty in setting this mapping up. I would also like to limit this to only java files if possible. Can this be done? Thanks ...

GUI to Business Object Mapping VB.Net

The issue I'm currently having is mapping multiple GUI fields to object properties (i.e. Presentation layer to Business Logic Layer mapping). To be more specific, this is in VB.Net 2.0 WinForms. The nature of the solution requires us to have 4 columns which exhibit the same type of behavior on our GUI - each column consisting of 11 tex...