예제 #1
0
        public StringBuilder DrawRegionNames(List <Region> regions, List <ShapeFileFeatureLayer> modelLayers)
        {
            StringBuilder aux = new StringBuilder();

            foreach (Region region in regions)
            {
                ShapeFileFeatureLayer shapeFileFeatureLayer = MapHelper.GetRegionFeatureLayer(region, modelLayers);
                PointShape            pointShape            = MapHelper.GetFeatureCenterPoint(shapeFileFeatureLayer, (region.ShapeFileIndex + 1 ?? 1));
                aux.Append(KmlGeoCanvas.GetRegionNameXML(region.RegionName, pointShape));
            }
            return(aux);
        }
예제 #2
0
        public static String GetAsKML(List <ShapeFileFeatureLayer> shapeFileFeatureLayers)
        {
            KmlGeoCanvas kmlGeo = new KmlGeoCanvas();
            GeoBrush     gb     = new GeoSolidBrush(GeoColor.StandardColors.LightGray);
            GeoPen       gp     = new GeoPen(gb)
            {
                DashStyle = LineDashStyle.Solid
            };

            foreach (ShapeFileFeatureLayer shapeFileFeatureLayer in shapeFileFeatureLayers)
            {
                foreach (Feature feature in shapeFileFeatureLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.NoColumns))
                {
                    kmlGeo.DrawArea(feature, gp, DrawingLevel.LevelOne);
                }
            }
            //kmlGeo.

            return(string.Empty);
        }
예제 #3
0
 public StringBuilder GetCumulativeFactorXML(ThinkGeo.MapSuite.DesktopEdition.Marker marker)
 {
     return(KmlGeoCanvas.GetCumulativeFactorXML(marker));
 }
예제 #4
0
 public KmlMapEngine()
 {
     _kmlGeoCanvas = new KmlGeoCanvas();
 }