Category Archives: Spatial

Procedural Terrain Splatmapping

If you try searching for information on how to assign textures to Unity terrain through code (i.e. derive a “splatmap” of textures based on the terrain heightmap profile itself), you’ll probably end up being sent to this post on the … Continue reading

Posted in Game Dev, Spatial | Tagged , , , | 11 Comments

Importing DEM Terrain Heightmaps for Unity using GDAL

I know that some folks reading my blog are from the spatial/mapping community, and may have been disappointed that my posts of late have been more influenced by game development and Unity than by spatial data and Bing Maps. Well, … Continue reading

Posted in Game Dev, Spatial | Tagged , , , , | 7 Comments

Garbled Circuits, Location Privacy and Secret Proximity Testing

There are more and more location-aware services in the world. Twitter prompts you to “Add your location” to every tweet, Facebook will ask “Where was this photo taken?”, Foursquare will tell you how many other people have checked in to … Continue reading

Posted in Spatial | Tagged , | 5 Comments

Gridding Geometries (or, “Creating patchwork animals in SQL Server”)

This is one of those things that I can’t imagine anybody would ever really want to do but, seeing as I haven’t posted anything for a while, I thought I’d write about it just in case it’s of use to … Continue reading

Posted in Spatial, SQL Server | Tagged , , | 3 Comments

Google’s April Fools’ Day 8-bit Map

Today, Google launched its annual April Fool’s joke – go to http://maps.google.com right now and you’ll see a new “Quest” map style in addition to the regular satellite and aerial map styles. Looks a little…. familiar? Here’s the 8-bit tileset … Continue reading

Posted in Spatial | Tagged , | 3 Comments

Rotating Bing Maps

The question of how to “rotate” a Bing Map comes up a surprising number of times on the MSDN Bing Maps forums. The Bing Maps Silverlight Control has a Heading property, which, according to the documentation: “when overridden in a … Continue reading

Posted in Bing Maps, Spatial | Tagged , , | 3 Comments

“Point-of-Maximal Distance” queries (AKA Variations on a Theme of Nearest-Neighbours)

Nearest neighbour queries (or, for my international readers, nearest-neighbor queries), are a pretty common query pattern used in location-based applications and spatial analysis:- given a set of known locations of restaurants, customers, stations etc.,  “What/where is the nearest X to … Continue reading

Posted in Spatial, SQL Server | Tagged , , , | 2 Comments