This is an example MapGuide Data Package using open data from City of Melbourne
All data from City of Melbourne licensed under CC BY 3.0 AU
Map icons courtesy of Map Icons Collection and licensed under Creative Commons 3.0 BY-SA
This MapGuide data package and its resources are licensed under CC BY 3.0 AU
For convenience, all mentioned datasets are included in this repo to simplify the package build process (CC permits redistrubtion and re-mixing of data licensed under it)
Where applicable, extraneous files (*.sbn, *.sbx, *.xml) have been removed from the original SHP "file" in this repo
- Address Points
- Building Footprints
- City Circle Route
- City Circle Stops
- Major Features
- Municipal Boundary
- Property Boundaries
- Syringe Bins
- Census Of Land Use And Employment (CLUE) Small Area
- Census of Land Use and Employment Blocks - 2012
- FootpathGrades
- Road Corridor
- Overland Flow Routes
All CSV datasets below are converted to SQLite via ogr2ogr.
The original source CSV files are included in this repo un-modified.
VRT configuration files to allow ogr2ogr to convert to SQLite are also included in this repository
The build environment assumes a Windows operating system.
For preparing and building the data package:
Supported versions of MapGuide:
- MapGuide Open Source 2.6 (this dataset should also work on 2.5 and 2.4 releases)
- Ensure GDAL/OGR binaries and the 7z command-line executable are in the PATH environment variable
- Clone this repository
- Run build.bat to build the MapGuide data package from the source data files
- All the SHP files are loaded into MapGuide via MapGuide Maestro
- All the CSV files are converted into SQLite via ogr2ogr. The converted SQLite files are loaded into MapGuide via Maestro.
- Maestro was used to author up all the various layers, styles, maps, symbols and application configurations.
- The resulting set of resources was then packaged up into a MGP file via the MapGuide Site Administrator.
- The contents of this MGP package has been extracted into the
Package
subdirectory of this repo (so our XML-based resources can be version controlled). - Package assembly can now be done outside of MapGuide by copying the relevant source SHP files and converting the relevant source CSV files with ogr2ogr. A new package file can be created by creating a new zip archive of the
Package
subdirectory and renaming the.zip
extension to.mgp