ThinkGeo.MapSuite.Layers.Graticule

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. GraticuleLayer is included in the main package ThinkGeo.Core in Version 12. ThinkGeo.MapSuite.Layers.Graticule is a layer extension to the Map Suite product line, see below for compatibility. This extension provides the ability to load graticules and render on maps. A Graticule feature layer shows meridians and parallels displaying through the map. Meridians are lines of longitude and they have a north-south orientation. Parallels are lines of latitude and they have an east-west orientation. Showing graticule for latitude and longitude is a standard way in cartography to give spatial references to the users. ** 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, GIS, Graticule, Latitude, Lines, Longitude, Map, MapSuite, Mapping, Spatial, Suite, ThinkGeo, graticule-with-google-projection, map-suite, projection, wpf
Install
Install-Package ThinkGeo.MapSuite.Layers.Graticule -Version 11.0.0-beta015

Documentation

Graticule With Google Projection Sample for Wpf

Description

In this Wpf project, we explore more features of the GraticuleAdornmentLayer, which shows meridians and parallels at various intervals based on the zoom level. Being natively in Geodetic, GraticuleAdornmentLayer can be set to any projection. In this project’s example, you have the graticule showing with World Map Kit in Spherical Mercator (Google Map projection). Also, note how easily you can change the appearance with properties such as GraticuleLineStyle and GraticuleTextFont.

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

Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
proj4.Open();

GraticuleFeatureLayer graticuleAdornmentLayer = new GraticuleFeatureLayer();
graticuleAdornmentLayer.Projection = proj4;
//Set the styles of the GraticuleAdornmentLayer.
LineStyle graticuleLineStyle = new LineStyle(new GeoPen(GeoColor.FromArgb(150, GeoColor.StandardColors.Navy), 1));

Getting Help

Map Suite Desktop for Wpf Wiki Resources

Map Suite Desktop for Wpf 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.