ThinkGeo.MapSuite.Layers.ShapeFile

Please upgrade to version 12 (Search ThinkGeo.Core on NuGet) if possible. Version 12 works with both .NET Framework and .NET Core, has much less dependencies and many other benifits over 10.0. ShapeFile Layer is included in the main package ThinkGeo.Core in Version 12. ThinkGeo.MapSuite.Layers.ShapeFile is a layer extension to the Map Suite product line, see below for compatibility. This layer represents a FeatureSource backed by a ESRI Shape File. The shapefile format is a popular geospatial vector data format for geographic information system (GIS) software. It is developed and regulated by ESRI as a (mostly) open specification for data interoperability among ESRI and other GIS software products. The shapefile format can spatially describe vector features: points, lines, and polygons, representing, for example, water wells, rivers, and lakes. Each item usually has attributes that describe it, such as name or temperature. ** This is an extension for use in ThinkGeo's Map Suite product line, see below, as it cannot be used stand alone. ** Wiki Documentation: http://wiki.thinkgeo.com/wiki/map_suite_api Supported Platforms: Windows, Linux, macOS, iOS, Android - Compatible Products - Map Suite Desktop for WPF Map Suite Desktop for WinForms Map Suite Mobile for Android Map Suite Mobile for iOS Map Suite Web for WebForms Map Suite Web for MVC Map Suite Web for WebAPI


Keywords
.NET, DBF, GIS, Map, MapSuite, Mapping, SHP, SHX, ShapeFile, Spatial, Suite, ThinkGeo, csharp, dotnet, map-suite, quickstart, webforms, weform
License
BSD-2-Clause
Install
Install-Package ThinkGeo.MapSuite.Layers.ShapeFile -Version 11.0.0-beta016

Documentation

Quickstart Sample for WebForms

Description

The Map Suite Web QuickStart Guide will guide you through the process of creating a sample application and will help you become familiar with Map Suite.

Please refer to Wiki for the details.

Screenshot

Requirements

This sample makes use of the following NuGet Packages

MapSuite 10.0.0

About the Code

ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/Countries02.shp"));
AreaStyle areaStyle = new AreaStyle();
areaStyle.FillSolidBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 233, 232, 214));
areaStyle.OutlinePen = new GeoPen(GeoColor.FromArgb(255, 118, 138, 69), 1);
areaStyle.OutlinePen.DashStyle = LineDashStyle.Solid;

worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = areaStyle;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

ShapeFileFeatureLayer capitalLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/WorldCapitals.shp"));
capitalLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.StandardColors.White, 7, GeoColor.StandardColors.Brown);

capitalLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level05;
PointStyle pointStyle = new PointStyle();
pointStyle.SymbolType = PointSymbolType.Square;
pointStyle.SymbolSolidBrush = new GeoSolidBrush(GeoColor.StandardColors.White);
pointStyle.SymbolPen = new GeoPen(GeoColor.StandardColors.Black, 1);
pointStyle.SymbolSize = 6;

Getting Help

Map Suite Web for WebForms Wiki Resources

Map Suite Web for WebForms Product Description

ThinkGeo Community Site

ThinkGeo Web Site

Key APIs

This example makes use of the following APIs:

About Map Suite

Map Suite is a set of powerful development components and services for the .Net Framework.

About ThinkGeo

ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.