<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Nodes &#187; MapGuide</title>
	<atom:link href="http://www.jasonbirch.com/nodes/category/mapguide/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonbirch.com/nodes</link>
	<description>...Jason Birch's geospatial ramblings</description>
	<lastBuildDate>Wed, 01 Sep 2010 05:14:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>MapGuide Maestro 2.0: now with more Maestro!</title>
		<link>http://www.jasonbirch.com/nodes/2010/03/10/398/mapguide-maestro-2-0-now-with-more-maestro/</link>
		<comments>http://www.jasonbirch.com/nodes/2010/03/10/398/mapguide-maestro-2-0-now-with-more-maestro/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 06:26:58 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[MapGuide Maestro]]></category>
		<category><![CDATA[OSGeo]]></category>
		<category><![CDATA[Release]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=398</guid>
		<description><![CDATA[Kenneth Skovhede recently announced the official release of MapGuide Maestro 2.0, the culmination of over a year of feature development and usability enhancements to the open source MapGuide authoring tool. Here are my picks for the top 10 features of MapGuide Maestro 2.0: 1. Theming, with ColorBrewer Suport Being able to theme maps based on [...]]]></description>
			<content:encoded><![CDATA[<p>Kenneth Skovhede recently <a href="http://lists.osgeo.org/pipermail/mapguide-users/2010-March/021675.html">announced</a> the official release of <a href="http://trac.osgeo.org/mapguide/wiki/maestro">MapGuide Maestro</a> 2.0, the culmination of over a year of feature development and usability enhancements to the open source MapGuide authoring tool.  Here are my picks for the top 10 features of MapGuide Maestro 2.0:</p>
<p><strong>1. Theming, with ColorBrewer Suport</strong></p>
<p>Being able to theme maps based on data distribution is a basic mapping function, and this release of Maestro delivers.  Adding support for <a href="http://colorbrewer2.org/">ColorBrewer</a> means that you can be confident that your colour scheme is visually distinct and cartographically appropriate for the message that you are conveying.  The Maestro UI automatically constrains the colour choices based on the underlying data categories:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/ColorBrewer.png" alt="" title="ColorBrewer" width="392" height="397" class="alignnone size-full wp-image-401" /></p>
<p><strong>2. Expression Editor</strong></p>
<p>MapGuide and the underlying FDO data providers support a powerful expression language, and previously you were on your own to write valid expressions.  Thanks to <a href="http://themapguyde.blogspot.com/">Jackie Ng</a>, MapGuide Maestro was able to use the same expression editor that FDO Toolbox is using, giving expression-completion, valid value extraction, and more:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/ExpressionEditor.png" alt="" title="ExpressionEditor" width="497" height="300" class="alignnone size-full wp-image-413" /></p>
<p>Check out Jackie&#8217;s posts on the <a href="http://themapguyde.blogspot.com/2009/07/expression-editor-gets-bit-smarter.html">FDO Expression Editor</a> and the follow-up where he talks about the <a href="http://themapguyde.blogspot.com/2009/09/fdo-toolbox-v082.html">addition of value auto-completion</a>.</p>
<p><strong>3. Resource Validation</strong></p>
<p>The Maestro resource validator walks from application to map to layers to data, warning if it detects any common errors such as broken references or potential performance issues like unmatched projections.  This is an invaluable tool for troubleshooting problems in your maps:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/Validator_1.png" title="Validator_1" alt="Resource Validator Init" width="268" height="133" class="alignnone size-full wp-image-399" /></p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/Validator_2.png" alt="Resource Validator Results" title="Validator_2" width="603" height="303" class="alignnone size-full wp-image-400" /></p>
<p><strong>4. Improved XML Editor</strong></p>
<p>While Maestro&#8217;s GUI is great for most purposes, there are times when you need to access the full power of MapGuide XML configuration syntax, like when you&#8217;re editing complex XML-based stylization elements.  Maestro makes it easy for you to edit any resource as XML simply by right-clicking on it and choosing &#8220;Edit as xml&#8221;.  Maestro 2.0 comes with many improvements to the XML editor, including validation against the schema, cursor position (important when tracking down errors), and the ability to attach arbitrary files to the current resource, which is critical when making bitmap-based symbols:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/XML_Editor.png" alt="" title="XML_Editor" width="618" height="427" class="alignnone size-full wp-image-405" /></p>
<p><strong>5. Profiling</strong></p>
<p>Profiling allows you to easily find the performance bottlenecks on a given map, or quickly determine whether changes to theming or other items are having an impact on performance:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/Profiler_Init.png" alt="" title="Profiler_Init" width="123" height="56" class="alignnone size-full wp-image-406" /></p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/Profiler_Output.png" alt="" title="Profiler_Output" width="191" height="84" class="alignnone size-full wp-image-407" /></p>
<p><strong>6. Package Management</strong></p>
<p>MapGuide packages are a zipped export of the DBXML repository including XML resources, associated binary files, and a manifest.  Typically these are managed on the server, but Maestro allows you to create, edit, and load these files via the GUI. This can be really handy when you&#8217;re migrating changes between servers.  One of my favourite tricks is to export both test and prod as packages, unzip them, and compare using <a href="http://www.scootersoftware.com/">Beyond Compare</a> (not free, but worth every penny).</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/PackageMenu.png" alt="" title="PackageMenu" width="250" height="96" class="alignnone size-full wp-image-411" /></p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/PackageCreator.png" alt="" title="PackageCreator" width="692" height="324" class="alignnone size-full wp-image-410" /></p>
<p><strong>7. Custom Resource Templates</strong></p>
<p>Any time you are creating a new data source, layer definition, map definition, etc, you are basically just creating a new XML document.  If you find that you are always performing certain steps as part of creating these resources, you can create your own custom resource types with customized versions of these XML documents.  For instance, I like to start layer creation using the version 1.3 of the LayerDefinition schema, with a default scale range of 1:1->1:500,000, and none of the feature types being displayed.  All I had to do was create a new LayerDefinition with these settings, save it to the MapGuideMaestro\Templates directory with a name like &#8220;Nanaimo Layer.xml&#8221;, and it shows up when I want to create a new resource:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/NewCustomResource.png" alt="" title="NewCustomResource" width="415" height="276" class="alignnone size-full wp-image-412" /></p>
<p><strong>8. Duplicate Resource</strong></p>
<p>This might not seem like a big deal, but when creating dozens of similar layers it can be a huge timesaver.  Simply right-click on any resource and choose &#8220;Duplicate&#8221; and a copy of that resource is created and ready for you to customize:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/Duplicate2.png" alt="" title="Duplicate" width="312" height="353" class="alignnone size-full wp-image-427" /></p>
<p><strong>9. Colour-Coded Resource Tree</strong></p>
<p>When editing many resources at once, things can get a bit confusing.  Crispin Hoult from <a href="http://www.1spatial.com/">1Spatial</a> contributed a feature that colour-codes currently open resources in green, and resources that have unsaved changes in pink. The currently active resource comes up in a darker shade.  This feature makes it much easier to keep track of what&#8217;s going on in your work area, and is surprisingly useful:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2010/03/ColourCoding.png" alt="" title="ColourCoding" width="225" height="147" class="alignnone size-full wp-image-424" /></p>
<p><strong>10. General Usability</strong></p>
<p>OK, maybe this doesn&#8217;t count as a feature, but a LOT of thought has been put into how various user interactions work, and countless small refinements have been made.  A few examples: </p>
<ul>
<li>inserting a new layer into a map definition when you have a group selected inserts the layer into that group, and places the layer into the overall draw order right after the bottom-most layer in that group
</li>
<li>you can now right-click on any resource and copy its ID (like Library://Nanaimo/Data/MyFile.FeatureSource) to the clipboard, which can be incredibly useful when writing code to access resources</li>
<li>you can multi-select many layers for insertion into a MapDefinition at once</li>
<li>maestro keeps track of references when you rename or move resources, prompting you for whether you want dependent resources updated</li>
</ul>
<p>All of the little enhancements in this release added together have saved me hours of work (I&#8217;ve been using the pre-release versions for a few months).</p>
<p>All-in-all this is a very impressive release, with countless new features and enhancements to existing functionality.  Give it a spin, and I&#8217;m sure you&#8217;ll turn up your own favourites!</p>
<p>Thanks Kenneth, and great work.</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2010/03/10/398/mapguide-maestro-2-0-now-with-more-maestro/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>FWTools FTW &#8230; because GDAL FTW didn&#8217;t sound as cool!</title>
		<link>http://www.jasonbirch.com/nodes/2009/08/11/290/fwtools-ftw-gdal/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/08/11/290/fwtools-ftw-gdal/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 07:32:16 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[FWTools]]></category>
		<category><![CDATA[GDAL]]></category>
		<category><![CDATA[Nanaimo]]></category>
		<category><![CDATA[NanaimoMap]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=290</guid>
		<description><![CDATA[I’ve received a bunch of compliments on the performance of the NanaimoMap application that the City of Nanaimo launched last week.  There is a lot involved in making a web map perform.  Hardware, vector generalization, and underlying mapping technology all play a role, but one of the most important parts of any successful web map is raster data optimization.  Read on to find out how FWTools (and GDAL) allowed me to handle this with ease.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve received a bunch of compliments on the performance of the <a href="http://maps.nanaimo.ca/nanaimomap/" title="Nanaimo Map">NanaimoMap</a> <a href="http://mapguide.osgeo.org/">MapGuide</a> / <a href="http://trac.osgeo.org/fusion">Fusion</a> application that the <a href="http://www.nanaimo.ca/">City of Nanaimo</a> <a href="http://www.jasonbirch.com/nodes/2009/08/10/328/nanaimomap-testers-wanted/">launched in beta</a> last week.</p>
<p>There is a lot involved in making a web map perform, especially if you are not leveraging tile caching.  One part of the story is hardware, and I&#8217;m lucky enough to share space on a dual quad-core machine with 4GB RAM and relatively fast disk. Another part is proper generalization of the vector data for display; no point in carrying sub-micron precision on a map that will generally be displayed at 1:500 or smaller. And of course, there&#8217;s MapGuide&#8217;s inherent speed when properly configured. This leaves out one of the most important parts though: raster data.  </p>
<p>Raster data is big, brutish and hard to work with, and optimizing raster access is often one of the most important parts of delivering a successful web map.  Users have come to expect &#8220;satellite&#8221; imagery on their web maps, and complain when it doesn&#8217;t perform as well as Google Maps.  One of the best ways that I have found of flipping and folding raster data is Frank Warmerdam&#8217;s <a href="http://fwtools.maptools.org/">FWTools</a>, which wraps <a href="http://www.gdal.org/">GDAL</a> and some other utilities in a single easy-to-use package.</p>
<p>My starting point consisted of:</p>
<ul>
<li>  79 TIFF + Worldfile images, 10cm resolution, about 1.1GB each</li>
<li>  14 TIFF + Worldfile images, 30cm resolution, about 600MB each</li>
</ul>
<p>So, I was working with about 100GB of images, none of which were optimized for web-based display, and which did not contain the spatial reference information that the FDO Raster Provider (also based on GDAL!) works best with.</p>
<p>The first thing I did was set up a batch process to optimize the individual images.  This involved three steps:</p>
<p>1. Obtain a correct .prj file containing the WKT spatial reference information for my images.  The easiest place for me to get this was  <a href="http://spatialreference.org/">SpatialReference.org</a>, but you might just have one hanging around.</p>
<blockquote><p><a href="http://spatialreference.org/ref/epsg/26910/">http://spatialreference.org/ref/epsg/26910/</a></p></blockquote>
<p>2. Reprocess the image into a Tiled GeoTIFF, with no compression and a relatively large internal block size, and specifying the projection file obtained above.  The caret (^) is the DOS line continuation character:</p>
<p><code>gdal_translate   ^<br />
    -co "TILED=YES"   ^<br />
    -co "PROFILE=GEOTIFF"   ^<br />
    -co "INTERLEAVE=BAND"   ^<br />
    -co "BLOCKXSIZE=512"   ^<br />
    -co "BLOCKYSIZE=512"  ^<br />
    -a_srs utm83-10.prj  ^<br />
    infile.tif   ^<br />
    outfile.tif<br />
</code></p>
<p>You can obtain more information on <a href="http://gdal.org/gdal_translate.html">gdal_translate</a> and the <a href="http://gdal.org/frmt_gtiff.html">GeoTIFF options</a> on the GDAL website.  Depending on your source data and intended use, other values could be more appropriate, and you really should experiment.</p>
<p>3. Create internal pyramids in each image so that the entire image does not need to be fetched when zoomed out.  This is one of the easiest performance gains you can get if you can afford the extra disk space. </p>
<p><code>gdaladdo -r gauss output.tif 2 4 8 16 32 64 128<br />
</code></p>
<p>Once this was done, I had a really decent set of fast images to work with, but these would only be appropriate to load at large scales when only one or a very few of the images need to be opened on each map view.  For smaller scales, I needed to reduce the size of the images being processed, and also reduce the number of files being accessed on each fetch.  I decided to go with a simple two-tier approach:  Load the individual images at scales larger than some fixed value, and load a single overview image at scales smaller than that value.  </p>
<p>The only problem was that I did not have an appropriate overview image.  I wanted something that was relatively small, highly optimized, and which had white fill in its nodata areas.  Fortunately GDAL and the awesome folks in the #gdal channel at freenode came to the rescue again, this time with four steps.</p>
<p>1. The first thing I needed to do was build a list of all of the images I wanted to have as part of the overview and feed these into the <a href="http://gdal.org/gdalbuildvrt.html">gdalbuildvrt</a> command to build a single <a href="http://www.gdal.org/gdal_vrttut.html">virtual image</a>.  You could do this manually, but I have the awesome <a href="http://gnuwin32.sourceforge.net/">GnuWin32</a> utilities installed so used these instead; they&#8217;re almost enough to make me not miss the days when I spent most of my time in Unix:</p>
<p><code>find images/ -name "*.tif" | xargs gdalbuildvrt -resolution highest all_images.vrt<br />
</code></p>
<p>2. Because I wanted a white background on my overviews, I then edited the all_images.vrt, adding a &lt;NoDataValue/&gt; section at the top of each of the three &lt;VRTRasterBand /&gt; sections:</p>
<p><code>  &lt;VRTRasterBand dataType="Byte" band="1"&gt;<br />
    &lt;NoDataValue>255&lt;/NoDataValue&gt;<br />
</code></p>
<p>3. The <a href="http://gdal.org/gdalinfo.html">gdalinfo</a> command gave me the dimensions of the virtual image, each of which I then divided iteratively to give me reasonable overview dimensions which I could feed into gdal_translate.</p>
<p><code>gdal_translate   ^<br />
    -outsize 53120 14000   ^<br />
    -co "TILED=YES"   ^<br />
    -co "PROFILE=GEOTIFF"   ^<br />
    -co "INTERLEAVE=BAND"   ^<br />
    -co "BLOCKXSIZE=512"   ^<br />
    -co "BLOCKYSIZE=512"   ^<br />
    all_images.vrt   ^<br />
    all_images.tif<br />
</code></p>
<p>When this completed, I deleted the all_images.tif.aux.xml file because I did not want to carry the additional metadata that GDAL maintains in that file.  </p>
<p>Careful with sizes here.  If you&#8217;re using an application that supports it, you can specify the -CO &#8220;BIGTIFF=YES&#8221; option to generate files larger than 4GB, but you&#8217;re likely better off generating an intermediate level of aggregated and resampled tiles instead.</p>
<p>4. The final step was to once again generate internal pyramids to allow for better performance at small scales:</p>
<p><code>gdaladdo -r gauss all_images.tif 2 4 8 16 32 64 128<br />
</code></p>
<p>Once these two data sets were processed, I simply used <a href="http://trac.osgeo.org/mapguide/wiki/maestro">MapGuide Maestro</a> to make two raster data connections.  For the first data connection, I added all of the individual TIFF images to a composite raster type, and Maestro generated a configuration document which allows MapGuide to know which image to access for a given extent.  For the second layer, I just pointed to the overview GeoTiff.  I then created layers for these, experimented until I found the scale where the overview image started looking pixelated, and set the layers&#8217; view scale properties accordingly.  There are some notes on <a href="http://trac.osgeo.org/mapguide/wiki/maestro/UserGuides/RasterFeatureSource"> working with rasters</a> in the Maestro documentation.</p>
<p>More performance could probably be gained by having an intermediate level where the coverage area was aggregated into larger tiles before being combined into one large overview image, but for the initial launch this was deemed to have high enough performance.</p>
<p>On my production server, I&#8217;m lucky enough to have a fast, high-spindle-count RAID shelf dedicated to storing these uncompressed TIFFs, and they scream off the disk.  My test server is VMWare-based, and disk performance and space are both at a premium.  In this case, I still used the TIFF overview map, but at large scales I access a set of tiled MrSID files instead.  This seemed like a decent compromise given the constraints, but did seem to thrash the CPU a bit.</p>
<p>GDAL was one of the first open source geospatial applications I tried (not counting GRASS and MOSS) and is constantly coming in handy, whether I&#8217;m reprojecting, adding spatial reference information to images, or converting between formats.</p>
<p>Thanks to hobu (Howard Butler), FrankW (Frank Warmerdam) and EvenR (Even Rouault) from the #gdal IRC channel on freenode for helping me work my way to this solution.  Amazing support!</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/08/11/290/fwtools-ftw-gdal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NanaimoMap Testers Wanted</title>
		<link>http://www.jasonbirch.com/nodes/2009/08/10/328/nanaimomap-testers-wanted/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/08/10/328/nanaimomap-testers-wanted/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:52:36 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[Nanaimo]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Fusion]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=328</guid>
		<description><![CDATA[The City of Nanaimo is launching our new MapGuide Open Source / Fusion based map in beta. I&#8217;d love to see some feedback from testers, and to get help generating some real-world usage patterns. You can only do so much with canned load tests. If you&#8217;ve got a few minutes to play with it, please [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.nanaimo.ca/">City of Nanaimo</a> is launching our new <a href="http://mapguide.osgeo.org/">MapGuide Open Source</a> / <a href="http://trac.osgeo.org/fusion/">Fusion</a> based map in beta.  I&#8217;d love to see some feedback from testers, and to get help generating some real-world usage patterns.  You can only do so much with canned load tests.</p>
<p>If you&#8217;ve got a few minutes to play with it, please join us here:</p>
<p><a title="Nanaimo Map" href="http://maps.nanaimo.ca/nanaimomap/">NanaimoMap</a> Beta</p>
<p>It&#8217;s in beta because of the issues that will likely be shaken out by more widespread use, and because we have not yet built out the layers and search functionality required to match our current MapGuide 6.5 ActiveX-based mapping portal CityMap.  This will be completed before the end of the year.</p>
<p>Thanks!</p>
<p>-J</p>
<p>P.S. This application was developed by <a href="http://www.dmsolutions.ca/">DM Solutions Group</a>.  We&#8217;re running Fusion 1.1 with the latest test build (r4114) of MapGuide.  We wouldn&#8217;t have been able to launch&#8211;even in beta&#8211;without some last minute fixes by Trevor Wekel of <a href="http://www.otxsystems.com/">OTX Systems</a> and Haris Kurtagic of <a href="http://www.sl-king.com/">SL King</a>.  From a personal perspective, these guys are both amazing to work with, moderately priced for the value they offer, and are great resources if you&#8217;re stuck with a problem in MapGuide core that you can&#8217;t fix on your own.  As always, the opinions offered on this blog are my own, not necessarily those of my employer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/08/10/328/nanaimomap-testers-wanted/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Pretty tiles&#8230;</title>
		<link>http://www.jasonbirch.com/nodes/2009/06/17/299/pretty-tiles/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/06/17/299/pretty-tiles/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 15:23:22 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OpenLayers]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=299</guid>
		<description><![CDATA[Zac Spitzer just tweeted: one of my projects just went live &#8211; http://www.exploreaustralia.net.au/ This is a pretty cool implementation. I believe that the maps on this site (e.g. Victoria) use OpenLayers, hitting an S3-hosted tile set generated by MapGuide Open Source, and show off some of MapGuide&#8217;s advanced renedering capabilities. -J]]></description>
			<content:encoded><![CDATA[<p>Zac Spitzer just <a href="http://twitter.com/zackster/status/2204495271">tweeted</a>: </p>
<blockquote><p>one of my projects just went live &#8211; <a href="http://www.exploreaustralia.net.au/">http://www.exploreaustralia.net.au/</a></p></blockquote>
<p>This is a pretty cool implementation.  I believe that the maps on this site (e.g. <a href="http://www.exploreaustralia.net.au/Victoria">Victoria</a>) use OpenLayers, hitting an S3-hosted tile set generated by MapGuide Open Source, and show off some of MapGuide&#8217;s advanced renedering capabilities.</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/06/17/299/pretty-tiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MapGuide 2.1 Beta 1</title>
		<link>http://www.jasonbirch.com/nodes/2009/05/26/291/mapguide-21-beta-1/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/05/26/291/mapguide-21-beta-1/#comments</comments>
		<pubDate>Tue, 26 May 2009 17:07:32 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[OSGeo]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=291</guid>
		<description><![CDATA[Late last night, Tom <a href="http://lists.osgeo.org/pipermail/mapguide-users/2009-May/018412.html">announced</a> the release of the first <a href="http://trac.osgeo.org/mapguide/wiki/Release/2.1">MapGuide 2.1</a> Beta.  

Jackie Ng has...]]></description>
			<content:encoded><![CDATA[<p>Late last night, Tom <a href="http://lists.osgeo.org/pipermail/mapguide-users/2009-May/018412.html">announced</a> the release of the first <a href="http://trac.osgeo.org/mapguide/wiki/Release/2.1">MapGuide 2.1</a> Beta.  </p>
<p>Jackie Ng has a <a href="http://themapguyde.blogspot.com/2009/05/mapguide-open-source-21-beta-released.html">better description</a> of this than I could write.</p>
<p>Apart from the improved scalability and stability of this release, I&#8217;m most excited about the <a href="http://wix.sourceforge.net/">WiX</a>-based open source MSI <a href="http://trac.osgeo.org/mapguide/browser/trunk/Installer">installer</a> that I got to work on alongside Jackie and Kenneth.  Huge learning curve, but not having to count on Autodesk resources to build new installers should allow us to push new releases as needed.  It also means that someone who understands the installer can easily create custom deployments for internal use.</p>
<p>Anyway, please give this beta a try.  If you notice anything it&#8217;s not doing right, please <a href="http://trac.osgeo.org/mapguide/wiki/SubmitTicket">let us know</a>.</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/05/26/291/mapguide-21-beta-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now we&#8217;re cooking! MgCooker for MapGuide Tile Seeding</title>
		<link>http://www.jasonbirch.com/nodes/2009/02/19/284/now-were-cooking-mgcooker-for-mapguide-tile-seeding/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/02/19/284/now-were-cooking-mgcooker-for-mapguide-tile-seeding/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 05:57:09 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[OSGeo]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[MapGuide Maestro]]></category>
		<category><![CDATA[MgCooker]]></category>
		<category><![CDATA[Tile]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/2009/02/19/284/now-were-cooking-mgcooker-for-mapguide-tile-seeding/</guid>
		<description><![CDATA[The latest preview release of MapGuide Maestro comes with a nice little surprise:  a tool for pre-seeding tile caches. [more...]]]></description>
			<content:encoded><![CDATA[<p>The latest preview release of <a title="MapGuide Maestro .net authoring tool" href="http://trac.osgeo.org/mapguide/wiki/maestro">MapGuide Maestro</a> (r3620 currently) comes with a nice little surprise:&#160; a tool for pre-seeding tile caches.&#160; MgCooker can be run from the command line (more on this later), or through the Maestro GUI.&#160; It couldn&#8217;t be simpler.&#160; Open up a Map Definition that has a Base Layer Group, highlight the group that you want to cook, and click on the MgCooker icon:</p>
<p><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="213" alt="image" src="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/02/image2.png" width="502" border="0" /> </p>
<p>In the following dialog, either leave the default of all checked, or choose to only pre-render certain zoom levels of your data, the choice is yours (probably best to start with the smallest scale &#8211; in this case 100,000):</p>
<p><a href="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/02/image3.png"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="image" src="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/02/image-thumb.png" width="413" border="0" /></a> </p>
</p>
<p>Then click &quot;Build tiles now&quot; and sit back and watch the tiles cook:</p>
<p><a href="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/02/image4.png"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="202" alt="image" src="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/02/image-thumb1.png" width="502" border="0" /></a> </p>
<p>Of course, this isn&#8217;t practical for a production environment where you would want to batch this operation.&#160; That&#8217;s where the second option comes in; clicking on &quot;Save as script&quot; generates a Windows batch file similar to the following that you can script to your heart&#8217;s desire:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&quot;C:Program FilesOSGeoMapGuide MaestroMgCookerCommandline.exe&quot; batch
   --mapdefinitions=&quot;Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition&quot;
   --basegroups=&quot;Base Layer Group&quot;
   --scaleindex=7
   --mapagent=&quot;http://localhost:8008/mapguide/mapagent/mapagent.fcgi&quot;</pre>
</div>
<p>I have no idea if the MgCookerCommandLine.exe works under Mono, but given that the rest of Maestro seems to work fairly well there I would not be surprised.</p>
<p>Great job Kenneth; this is something we have been sorely missing since <a title="MapGuide Open Source" href="http://mapguide.osgeo.org/">MapGuide</a> 1.2, and it&#8217;s great to see it as part of Maestro!</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/02/19/284/now-were-cooking-mgcooker-for-mapguide-tile-seeding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MapGuide REST Extension. Feedback wanted!</title>
		<link>http://www.jasonbirch.com/nodes/2009/01/31/269/mapguide-rest-extension-feedback-wanted/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/01/31/269/mapguide-rest-extension-feedback-wanted/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 13:41:24 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[OSGeo]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Nanaimo]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SL-King]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/2009/01/31/269/mapguide-rest-extension-feedback-wanted/</guid>
		<description><![CDATA[By linking to open source components such as MapGuide, FDO, POCO, CTemplate, and libkml, Haris has built a framework that is very simple and powerful.  With absolutely no programming, a site administrator can build out customised HTML and KML representations of their data, and enable access to default GeoJSON and FDO-based XML representations.  Pair these representations with static HTML pages that expose "service metadata", and you have data that is easily crawlable by search engine spiders, and easily understood by anyone wanting to access the data for other applications. [open article to read more]]]></description>
			<content:encoded><![CDATA[<p>Traditionally, access to municipal geospatial data has been application-centric, either through a web interface with a steep learning curve, or through data downloads or services for use in desktop GIS.&#160; While these are both much better than not providing access at all, neither strategy is particularly effective in getting the data to the people most interested in it: local residents.&#160; This limitation has become painfully clear in an age when you can find almost any other information by typing a few words into a search engine.&#160; Also, in the absence of ready access to our data, citizens are spending countless hours re-creating it, when they could instead be adding value and stimulating the economy.&#160; </p>
<p>By linking to open source components such as MapGuide, <a href="http://fdo.osgeo.org/">FDO</a>, <a href="http://pocoproject.org/">POCO</a>, <a href="http://code.google.com/p/google-ctemplate/">CTemplate</a>, and <a href="http://code.google.com/p/libkml/">libkml</a>, the MapGuide REST framework is very simple and powerful.&#160; With absolutely no programming, a site administrator can build out customised HTML and KML representations of their data, and enable access to default <a href="http://geojson.org/">GeoJSON</a> and FDO-based XML representations.&#160; Pair these representations with static HTML pages that expose &quot;service metadata&quot;, and you have data that is easily crawlable by search engine spiders, and easily understood by anyone wanting to access the data for other applications.&#160; Enough talk; let&#8217;s go over some examples from the City of Nanaimo&#8217;s live web site.</p>
<p><strong>Data URI</strong>:&#160; <a href="http://maps.nanaimo.ca/data/">http://maps.nanaimo.ca/data/</a>&#160;</p>
<p>This is where all of the City&#8217;s RESTful GeoData will be exposed.&#160; Currently, there is a single resource type exposed for Property information, but more is on the way and will be interlinked when it makes sense.&#160; The index page for this directory is a static HTML page pointing to various features of the Property resource type.</p>
<p><strong>Property Resources</strong>:&#160; <a href="http://maps.nanaimo.ca/data/property/">http://maps.nanaimo.ca/data/property/</a>&#160; </p>
<p>This currently displays a page that allows users to search by one of three attributes by HTML forms, and contains links to <a href="http://www.opensearch.org/">OpenSearch</a> (with <a href="http://www.opensearch.org/Specifications/OpenSearch/Extensions/Geo/1.0/Draft_1">draft Geo</a>) documents that define some of the other search and representation capabilities.</p>
<p>OpenSearch link:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">link</span>
  <span style="color: #ff0000">rel</span><span style="color: #0000ff">=&quot;search&quot;</span>
  <span style="color: #ff0000">type</span><span style="color: #0000ff">=&quot;application/opensearchdescription+xml&quot;</span>
  <span style="color: #ff0000">title</span><span style="color: #0000ff">=&quot;Properties by Street&quot;</span>
  <span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;<a href="http://maps.nanaimo.ca/data/property/search_by_street.xml">/data/property/search_by_street.xml</a>&quot;</span>
<span style="color: #0000ff">&gt;</span></pre>
</div>
<p>As well, there is a link to a <a href="http://maps.nanaimo.ca/data/property/index_street.html">Street Index</a> which acts as a form of sitemap, providing web crawlers with an equal-length trip to every property in the City.</p>
<p><strong>Example Property HTML Representation</strong>:&#160; <a href="http://maps.nanaimo.ca/data/property/123170.html">http://maps.nanaimo.ca/data/property/123170.html</a></p>
<p>As much as this looks like a regular web page, it is cram-packed with features that make it distinguishable as a geospatial resource.&#160; Most visibly, it displays an image of the property&#8217;s shape in context, and provides a link to the KML representation of that property.&#160; Digging a little bit deeper, the page header contains links to alternate representations:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">link</span>
  <span style="color: #ff0000">rel</span><span style="color: #0000ff">=&quot;alternate&quot;</span>
  <span style="color: #ff0000">type</span><span style="color: #0000ff">=&quot;application/vnd.google-earth.kml+xml&quot;</span>
  <span style="color: #ff0000">title</span><span style="color: #0000ff">=&quot;KML representation of 2143 AARON WAY&quot;</span>
  <span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;<a href="http://maps.nanaimo.ca/data/property/123170.kml">http://maps.nanaimo.ca/data/property/123170.kml</a>&quot;</span> <span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">link</span>
  <span style="color: #ff0000">rel</span><span style="color: #0000ff">=&quot;alternate&quot;</span>
  <span style="color: #ff0000">type</span><span style="color: #0000ff">=&quot;application/json&quot;</span>
  <span style="color: #ff0000">title</span><span style="color: #0000ff">=&quot;GeoJSON representation of 2143 AARON WAY&quot;</span>
  <span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;<a href="http://maps.nanaimo.ca/data/property/123170.json">http://maps.nanaimo.ca/data/property/123170.json</a>&quot;</span> <span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">link</span>
  <span style="color: #ff0000">rel</span><span style="color: #0000ff">=&quot;alternate&quot;</span>
  <span style="color: #ff0000">type</span><span style="color: #0000ff">=&quot;text/xml&quot;</span>
  <span style="color: #ff0000">title</span><span style="color: #0000ff">=&quot;XML representation of 2143 AARON WAY&quot;</span>
  <span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;<a href="http://maps.nanaimo.ca/data/property/123170.xml">http://maps.nanaimo.ca/data/property/123170.xml</a>&quot;</span> <span style="color: #0000ff">&gt;</span></pre>
</div>
<p>and some simple geotags:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;ICBM&quot;</span> <span style="color: #ff0000">content</span><span style="color: #0000ff">=&quot;49.18882, -123.9785&quot;</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;geo.region&quot;</span> <span style="color: #ff0000">content</span><span style="color: #0000ff">=&quot;CA-BC&quot;</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;geo.placename&quot;</span> <span style="color: #ff0000">content</span><span style="color: #0000ff">=&quot;Nanaimo&quot;</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">meta</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;geo.position&quot;</span> <span style="color: #ff0000">content</span><span style="color: #0000ff">=&quot;49.18882;-123.9785&quot;</span><span style="color: #0000ff">&gt;</span> </pre>
</div>
<p>Finally, within the page content itself, you will find both <a href="http://microformats.org/wiki/adr">adr</a> and <a href="http://microformats.org/wiki/geo">geo</a> <a href="http://microformats.org/">microformats</a>.</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;adr&quot;</span><span style="color: #0000ff">&gt;</span>
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;extended-address&quot;</span><span style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;street-address&quot;</span><span style="color: #0000ff">&gt;</span>2143 AARON WAY<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>,
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;locality&quot;</span><span style="color: #0000ff">&gt;</span>NANAIMO<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>,
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;region&quot;</span><span style="color: #0000ff">&gt;</span>BC<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;country-name&quot;</span> <span style="color: #ff0000">style</span><span style="color: #0000ff">=&quot;display:none;&quot;</span><span style="color: #0000ff">&gt;</span>CANADA<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span>

<span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;geo&quot;</span><span style="color: #0000ff">&gt;</span>
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;latitude&quot;</span><span style="color: #0000ff">&gt;</span>49.18882<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>,
  <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">class</span><span style="color: #0000ff">=&quot;longitude&quot;</span><span style="color: #0000ff">&gt;</span>-123.9785<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
</div>
<p><strong>Example Property KML Representation</strong>:&#160; <a href="http://maps.nanaimo.ca/data/property/123170.kml">http://maps.nanaimo.ca/data/property/123170.kml</a></p>
<p>The KML representation uses Atom Author and Link elements to define the publisher of the data, and to store the KML&#8217;s URI and that of its alternate HTML representation.&#160; It also uses a combination of ExtendedData and BalloonStyle entities to separate data from presentation, though I have also included a link to the HTML representation in the Description entity for earlier clients.&#160; Finally, it uses external Style and Schema definitions to reduce the size of the file and to maintain consistency across the site.&#160; I&#8217;d encourage you to view the source of the KML file to see how these elements work together.</p>
<p><strong>Example JSON Representation:</strong>&#160; <a href="http://maps.nanaimo.ca/data/property/123170.json">http://maps.nanaimo.ca/data/property/123170.json</a></p>
<p><strong>Example XML Representation:</strong>&#160; <a href="http://maps.nanaimo.ca/data/property/123170.xml">http://maps.nanaimo.ca/data/property/123170.xml</a></p>
<p><strong>Example PNG Representation:</strong>&#160; <a href="http://maps.nanaimo.ca/data/property/123170.png">http://maps.nanaimo.ca/data/property/123170.png</a> </p>
<p>The native GeoJSON and FDO XML representations are provided by the extension.&#160; No customization is possible, which ensures a consistent implementation from site to site.&#160; The PNG representation is also native (not template), but allows you to specify a MapGuide map definition and a layer for selection.</p>
<p><strong>&quot;Endpoints&quot; (because I&#8217;m not sure what to call them):</strong></p>
<p><a href="http://maps.nanaimo.ca/data/property/index.kml">http://maps.nanaimo.ca/data/property/index.kml</a></p>
<p>This is a static file that allows KML clients to interact with the property information dynamically through View Based Refresh.&#160; Basically, this file tells <a href="http://earth.google.com/">Google Earth</a> to request the .kmz endpoint below using a BBOX element that will be used to return only features in view, or a warning if the viewport is too large.</p>
<p><a href="http://maps.nanaimo.ca/data/property/.html">http://maps.nanaimo.ca/data/property/.html</a></p>
<p><a href="http://maps.nanaimo.ca/data/property/.kmz">http://maps.nanaimo.ca/data/property/.kmz</a></p>
<p><a href="http://maps.nanaimo.ca/data/property/.json">http://maps.nanaimo.ca/data/property/.json</a></p>
<p><a href="http://maps.nanaimo.ca/data/property/.xml">http://maps.nanaimo.ca/data/property/.xml</a></p>
<p>These allow users to perform queries on the data.&#160; There are quite a few variations possible, but they basically support standard FDO filters, bbox, count, and start GET parameters.&#160; There are also some funky parameter patterns that allow for easy searching from HTML forms, in the format: filter_[0-9]_(and|or)_(equal|like|likeleft|likeright|lt|gt)_attributename</p>
<p><a href="http://maps.nanaimo.ca/data/property/.schema">http://maps.nanaimo.ca/data/property/.schema</a></p>
<p>This is a special &quot;endpoint&quot; that allows a smart client to determine the data schema for the XML representations of the feature.</p>
<p><strong>Applications</strong></p>
<p>Now, providing read-only representations of these features is pretty cool on its own, and that is all that the City of Nanaimo is prepared to do at this point.&#160; However, the extension can be configured to allow full RESTful data access:&#160; GET, POST, PUT, DELETE.&#160; Combined with a yet-to-be-released FDO REST provider, users of applications that implement FDO (such as AutoCAD <a href="http://www.autodesk.com/map3d">Map 3D</a>, <a title="Safe Software, makers of FME data transformation" href="http://www.safe.com/">Safe Software</a>&#8216;s <a href="http://www.safe.com/">FME</a>, <a href="http://www.1spatial.com/">1Spatial</a>&#8216;s <a href="http://www.1spatial.com/products/maprelate/index.php">MapRelate</a> and <a href="http://www.1spatial.com/products/radius_studio/index.php">Radius Studio</a>, and MapGuide) will be able to read, write, update, and delete data from this extension the same way as they would from local data stores.&#160; I was experimenting with this against an internal server using Map 3D, and it was pretty cool to be able to edit data directly from a web site.</p>
<p>Applications that implement GeoJSON, such as Safe Software&#8217;s FME can also take advantage of this format to read and (untested) write to the exposed data.</p>
<p><img title="json001" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="259" alt="json001" src="https://www.jasonbirch.com/nodes/wp-content/uploads/2009/01/json001.png" width="578" border="0" /> </p>
<p>The GeoJSON representation has a considerable upside for light-weight mobile data editing, for instance in an <a href="http://openlayers.org/">OpenLayers</a> application running inside Google Chrome (or another Gears-enabled browser) and for minimal-packet data access from mobile phone applications.</p>
<p>All of these are really cool applications from a geospatial professional standpoint, but they don&#8217;t really address the primary goal of the original requirement:&#160; enabling easier access to spatial information by residents.&#160; That&#8217;s OK though, just by making these representations available and well-linked, the search engines will pick them up and do this part of the work for me.&#160; </p>
<p>This site has been active for less than two weeks, and Google is already ranking some of the property reports first in the results for generic searches within British Columbia and specific searches elsewhere.&#160; For instance, when I search from home for &quot;<a href="http://www.google.com/search?q=881+Hunter+St">881 Hunter St</a>&quot; (one of the <a href="http://www.google.com/search?q=site%3Amaps.nanaimo.ca">properties Google has indexed</a>) it comes up as number 1.&#160; When Haris searches from Slovenia, that isn&#8217;t the case, but if he searches for &quot;<a href="http://www.google.com/search?q=881+Hunter+St%2C+nanaimo%2C+bc">881 Hunter St, Nanaimo, BC</a>&quot; then it does.&#160; Most municipalities have high authority for their location name, and this is a great way of taking advantage of that authority to provide a higher level of service to our residents.</p>
<p><strong>Weaknesses</strong></p>
<p>The current implementation has a few issues.&#160; Unfortunately these will require a substantial refactoring to resolve, so we&#8217;re looking at another month or so before we have a public-ready build of the code. Some of these problems are as follows:</p>
<ul>
<li>HTTP status codes are often not correct.&#160; For instance, a search that returns a single feature should redirect to that representation rather than displaying the single feature under the search representation. </li>
<li>Fine control over methods is required, such as enabling/disabling specific methods, requiring SSL, requiring certain group access, etc. </li>
<li>Existing configuration system grew in odd ways as the code was modified, and needs to be de-Frankenstein-ed </li>
<li>More control over URI patterns needs to be extended to users, for instance to allow the creation of -edit representations that return pre-populated HTML forms. </li>
<li>Need revision numbering or data checksum to reduce chance of overlapping writes. </li>
<li>Need parameter/http header overrides for method (to deal with firewalls) and format (to allow selection from HTML forms) </li>
<li>Other miscellaneous issues. </li>
</ul>
<p><strong>Updates</strong></p>
<p>Based on feedback, Haris has enabled JSONP for the .json representations.  Just add the argument _callback to the URI, with the name of your desired function as the value.  e.g.: <a href="http://maps.nanaimo.ca/data/property/.json?filter_1_and_equal_street=ROSSTOWN+ROAD&amp;_callback=rosstown">http://maps.nanaimo.ca/data/property/.json?filter_1_and_equal_street=ROSSTOWN+ROAD&amp;_callback=rosstown</a></p>
</p>
<p><strong>Call for Feedback</strong></p>
<p>If you have a chance to look at the current implementation and see any areas where it could be improved, we&#8217;re really interested in making changes required to meet REST best practices.&#160; We&#8217;ve been trying to pay attention to current guidance, but without a real implementation it has been hard to truly understand what is needed.</p>
<p>Thanks!</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/01/31/269/mapguide-rest-extension-feedback-wanted/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web GIS Job at City of Vancouver</title>
		<link>http://www.jasonbirch.com/nodes/2009/01/11/246/web-gis-job-at-city-of-vancouver/</link>
		<comments>http://www.jasonbirch.com/nodes/2009/01/11/246/web-gis-job-at-city-of-vancouver/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 05:42:49 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[City of Vancouver]]></category>
		<category><![CDATA[job]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=246</guid>
		<description><![CDATA[If you&#8217;re looking for a challenging job as part of a team developing and maintaining a complex web mapping infrastructure, you could do far worse than joining up with the City of Vancouver&#8217;s award-winning GIS Sustainment Team: http://vancouver.ca/humanresources/jobs/09-0012O2P.htm Vancouver is a beautiful place and the people I know in that group are all good folks. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for a challenging job as part of a team developing and maintaining a complex web mapping infrastructure, you could do far worse than joining up with the City of Vancouver&#8217;s award-winning GIS Sustainment Team:</p>
<p><a href="http://vancouver.ca/humanresources/jobs/09-0012O2P.htm">http://vancouver.ca/humanresources/jobs/09-0012O2P.htm</a></p>
<p>Vancouver is a beautiful place and the people I know in that group are all good folks.</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2009/01/11/246/web-gis-job-at-city-of-vancouver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing selection colour in MapGuide AJAX viewer</title>
		<link>http://www.jasonbirch.com/nodes/2008/12/02/213/changing-selection-colour-in-mapguide-ajax-viewer/</link>
		<comments>http://www.jasonbirch.com/nodes/2008/12/02/213/changing-selection-colour-in-mapguide-ajax-viewer/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:51:50 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[OSGeo]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[selection colour]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=213</guid>
		<description><![CDATA[One of the annoyances that people have faced with MapGuide Open Source is that the selection colour was hard-coded in one of the C++ rendering functions. There were a few ways of getting around this without recompiling, but they were all a lot of work. RFC 38 included some code changes that made it possible [...]]]></description>
			<content:encoded><![CDATA[<p>One of the annoyances that people have faced with <a href="http://mapguide.osgeo.org/">MapGuide Open Source</a> is that the selection colour was hard-coded in <a href="http://trac.osgeo.org/mapguide/browser/branches/1.2.x/MgDev/Common/Stylization/GDRenderer.cpp#L1464">one of the C++ rendering functions</a>.  There were a few ways of getting around this without recompiling, but they were all a lot of work.  <a href="http://trac.osgeo.org/mapguide/wiki/MapGuideRfc38">RFC 38</a> included some <a href="http://trac.osgeo.org/mapguide/browser/branches/2.0.x/MgDev/Common/Renderers/GDRenderer.cpp#L1471">code changes</a> that made it possible to modify this value on the fly, but it doesn&#8217;t look like this capability was taken advantage of by the AJAX viewer that was distributed with MGOS 2.0.x.</p>
<p>If you&#8217;re using MapGuide Open Source 2.0 (2.0.2 recommended) and are not happy with the default blue selection colour, you can easily change it on a per-install basis by modifying the mapviewerajax template file.  This is located at:</p>
<blockquote><p>(INSTALLDIR)\WebServerExtensions\www\viewerfiles\ajaxmappane.templ</p></blockquote>
<p>You will need to find the function called RequestMapImage, which includes a line that looks like this:</p>
<p><code><br />
url = webAgent +<br />
 &quot;?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&amp;FORMAT=PNG&amp;VERSION=1.0.0&amp;SESSION=&quot;<br />
+ sessionId + &quot;&amp;MAPNAME=&quot; + encodeComponent(mapName)<br />
+ &quot;&amp;SEQ=&quot; + Math.random();<br />
</code><br />
</p>
<p>You will need to modify this to change the VERSION to 2.0.0, and add the BEHAVIOR and SELECTIONCOLOR parameters:</p>
<p><code><br />
url = webAgent +<br />
 &quot;?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&amp;FORMAT=PNG&amp;VERSION=<strong>2.0.0</strong>&amp;SESSION=&quot;<br />
 + sessionId + &quot;&amp;MAPNAME=&quot; + encodeComponent(mapName)<br />
 + &quot;&amp;SEQ=&quot; + Math.random() <strong>+ &quot;&amp;BEHAVIOR=7&amp;SELECTIONCOLOR=FF5300FF&quot;</strong>;<br />
</code><br />
</p>
<p>Before:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2008/12/mapguide_selection_colour_default.png" alt="" title="MapGuide Selection Colour Default" width="400" height="433" class="alignnone size-full wp-image-221" /></p>
<p>After:</p>
<p><img src="http://www.jasonbirch.com/nodes/wp-content/uploads/2008/12/mapguide_selection_colour_modified1.png" alt="" title="MapGuide Selection Colour Modified" class="alignnone size-full wp-image-220" /></p>
<p>The BEHAVIOR parameter is a bitmask that controls what is rendered, and is described in <a href="http://trac.osgeo.org/mapguide/wiki/MapGuideRfc38">RFC 38</a>.  The SELECTIONCOLOR parameter is a hex string in <a href="http://en.wikipedia.org/wiki/RGBA_color_space">RGBA format</a>, or its integer equivalent.  Note for geeks:  the A (opacity) portion of the string is ignored; the server code masks this out of the passed value, and then adds 200 (C8) as the line opacity and 160 (A0) as the fill opacity.</p>
<p>Note, the mapagent call allows you the flexibility to add more complicated behaviour to your viewer, such as changing the selection colour dynamically based on the map name, but I&#8217;ll leave that as an exercise for the reader (mostly because I&#8217;m lazy and use Fusion anyway and wouldn&#8217;t benefit from the work).</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2008/12/02/213/changing-selection-colour-in-mapguide-ajax-viewer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MapGuide Studio 2009 on 64bit</title>
		<link>http://www.jasonbirch.com/nodes/2008/09/25/211/mapguide-studio-2009-on-64bit/</link>
		<comments>http://www.jasonbirch.com/nodes/2008/09/25/211/mapguide-studio-2009-on-64bit/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 00:57:59 +0000</pubDate>
		<dc:creator>Jason Birch</dc:creator>
				<category><![CDATA[MapGuide]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[Autodesk MapGuide Studio]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.jasonbirch.com/nodes/?p=211</guid>
		<description><![CDATA[I&#8217;m not sure I agree with rbranson&#8217;s assessment (my guess would be testing and support resources rather than laziness) but this is a pretty useful hack for those of you who want to run MapGuide Studio on 64bit Vista. Poke around in his blog a bit while you&#8217;re there; there are some interesting comments about [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure I agree with <a href="http://rickonrails.wordpress.com/2008/09/24/how-to-hack-mapguide-studio-to-run-on-64-bit-windows/">rbranson&#8217;s assessment</a> (my guess would be testing and support resources rather than laziness) but this is a pretty useful hack for those of you who want to run MapGuide Studio on 64bit Vista.  Poke around in his blog a bit while you&#8217;re there; there are some interesting comments about running MapGuide in conjunction with Amazon Web Services that piqued my interest&#8230;</p>
<p>-J</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonbirch.com/nodes/2008/09/25/211/mapguide-studio-2009-on-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
