Archive for the 'cumberland' Category

complex line symbols with cumberland

Saturday, June 6th, 2009

Back in the day, when I was writing some awesome ArcIMS app, I could create some elaborate line symbology in ArcXML:

...
      <LAYER type="featureclass" name="ROADS" visible="true" id="2">
        <DATASET name="ROADS" type="line" workspace="shp_ws-0" />
        <GROUPRENDERER>
          <SIMPLERENDERER>
            <SIMPLELINESYMBOL transparency="1.0" type="solid" width="8" captype="round" [...]

feature simplification

Monday, February 9th, 2009

I have just added an implementation of the Douglas-Peucker algorithm, which provides the ability to simplify complicated lines and polygons. This can be enabled from within a Style element:

<Style>
    <Simplify>true</Simplify>
    <SimplifyTolerance>0.000000001</SimplifyTolerance>
    ...

The advantage of this is you can set styles that are enabled at higher scales (more zoomed out) that will [...]

xml schema for maps

Wednesday, February 4th, 2009

I have been playing around a bit with xml schema.
XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents.
One cool thing is that both MonoDevelop and Visual Studio (and I am sure others) provide tag completion [...]

labels yo

Saturday, December 6th, 2008

in the quest to make cumberland contain the bare minimum of map making functionality, I added labelling. They can be set to angles, positioned relative to a point, and also outlined to make them stick out. The point in polygons is the centroid. Polylines are a little trickier. Ideally, you'd want [...]

VirtualEarth support

Thursday, December 4th, 2008

I added support for generating tiles for VirtualEarth to cumberland. I did it because it's super trivial after you have support for Google Maps. The tiles are the same except they have different min and max zoom levels and you need to save them with their quad key for VE. Luckily, MSDN [...]

Cumberland + KML = pure fire

Monday, December 1st, 2008

Keyhole Markup Language (KML) is the xml format used in Google Earth for overlaying data. I've implemented functionality for creating kml from a cumberland map and a command line tool (map2kml.exe) to use it. It creates a kml document with folders for each layer using the various styles, including thematic mapping, and adds [...]

Cumberland: TMS / OpenLayers support

Saturday, November 22nd, 2008

The TileProvider class and the tilepyramider tool have been updated to create tiles for the un-official Tile Map Service specification. The main reason for this is to use OpenLayers.
Check out a demo.
It's pretty simple to set up. There is a new TileConsumer, TileMapService. tilepyramider has a new 'consumer' option you [...]

cumberland 0.1

Friday, November 14th, 2008

I posted cumberland 0.1 on the project page.
I think it's a really elegant and simple API for drawing maps, and it's also under the awesomest, most reasonable, licensing scheme there is.

Cumberland 0.1 feature complete; release forthcoming

Monday, November 10th, 2008

After a few months, the first release of cumberland will probably occur by the end of the week, All that's left is testing and documentation.
The final feature I added was subqueries support for database feature sources. This can be used for filtering. For example, say I have some road data and I [...]

Google maps tile pyramid generation with Cumberland

Sunday, November 9th, 2008

Google's api allows you to overlay your own tiles on top of theirs, so you can utilize their awesome interface and base data as a platform to overlay your own spatial data for custom apps. I have previously mentioned generating these tiles on-the-fly, but if your data doesn't change often then why bother re-rendering [...]