Map Geometry

Quality Band - Preview
Status - In Use

About

mapgeometry.jpg
OGC Geometry rendering on the map surface.
Currently have BaseGeometry (render), InfoGeometry (labels and popup balloon) and a SelectGeometry (rollover and event).
Full support for Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.
No support for interior rings (donuts).

Current Implimentation uses Bing Maps only, will impliment agaist DEMaps shortly, not sure how much will be shared / generic.

Usage

Bing Maps example:
c#:
var wktReader = new WKTReader(new GeometryFactory(new PrecisionModel(), 4326));

var style = new StyleSpecification
                {
                    LineColour = "FF1B0AA5",
                    LineWidth = 2,
                    PolyFillColour = "88677E1E",
                    ShowFill = true,
                    ShowLine = true,
                    IconURL = "http://localhost:7550/Images/pin.png",
                    IconScale = 2
                };

IGeometry geometry = wktReader.Read("GEOMETRYCOLLECTION( POLYGON((0 0, 3 0, 0 3, 0 0)), POINT(5 5) )");

var infogeo = new BaseGeometry(geometry, style, map);
var vectorLayer = new EnhancedMapLayer
{
    ID = "Test Data",
    ZIndex = 0,
};
map.Children.Insert(0, vectorLayer);

vectorLayer.AddChild(infogeo, CoordinateConvertor.ConvertBack(geometry.Centroid.Coordinate),
                     PositionMethod.Center);


Reference:
  • DeepEarth.Client.Common.dll
  • DeepEarth.Client.Controls.MapGeometry.dll
  • Microsoft.VirtualEarth.MapControl.dll
  • DeepEarth.Client.BingMaps.dll
  • GeoAPI.dll
  • NetTopologySuite.dll

Developers

soulsolutions

Roadmap

Version Feature Date
0.1 Initial Architecture 27/07/2009
0.1 Bing Maps support 27/07/2009
0.2 Moved to Preview 27/07/2009
1.0 DEMap support tba


Last edited Jul 27, 2009 at 1:27 AM by soulsolutions, version 2

Comments

No comments yet.