English

kml Viewer API in C#

Create and customize kml Viewer with GIS.API for net

Develop a kml viewer with an API designed specifically for net / C# developers.

  Download Free Trial
PNG JPG BMP TIFF GPX
Aspose.GIS for NET
GIS

Overview

Create and integrate a GIS viewer for Kml files into your Net applications with an API designed specifically for Net developers. Kml viewer allows high fidelity rendering of data stored in Kml file format without needing any other software or conversion. Get access to a wide list of customization options to specify settings, SRS, view of the map, and to get a converted file in one of the Supported File Formats.

Aspose.GIS for Net is a powerful on-premises library for GIS processing. Our library is designed to create static and interactive visualizations of GIS data in Net.

Some of the features of our library are:

  • Combine several layers on one map image.
  • Apply styles for points, lines, and polygons.
  • Import styles in SLD format.
  • Draw labels and text.
  • Apply styles for text and auto-detect places on a map.
  • Draw clustered points.
  • Save a created map in SVG, PNG, BMP, or JPEG.
  • Manage the SRS for your map.
  • Draw labels along curved lines.
  • Use advanced rendering: combine symbolizers, geometry generator, and mixed geometry.


Why Aspose.GIS for Net?

Aspose’s customers are drawn from various industries, from software developers and consulting companies to banks, government agencies, and academic institutions. Whenever you need experience in GIS, maps, and data visualization, you need an Aspose.GIS product. Some of our 21,000+ customers around the world have shared their succhess stories already.
Code for integrating Kml Viewer into your application
Input file
Upload a file you want to convert
                
                    
// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET

// Create a map
using (var map = new Map(800, 400))
{
	// Use the specified SRS
	map.SpatialReferenceSystem = SpatialReferenceSystem.Wgs84;

	// Use the specified style to draw lines
	// We also have styles for points, lines, and surfaces.
	var symbolizer = new SimpleLine() {Width = Measurement.Pixels(2)};
	// Open a layer and add to the map
	map.Add(VectorLayer.Open("land.kml", Drivers.Kml), symbolizer);

	// Render the map
	map.Render("land_out.png", Renderers.Png);
}
                
            

How to View Kml in C#

  1. Create a map.
  2. Use the specified SRS.
  3. Use the specified style to draw lines.
  4. You can also set styles for points, lines, and surfaces.
  5. Open a layer and add to the map.
  6. Render the map to desire format.

C# Viewer library

There are a simple way to install Aspose.GIS for Net onto your system:

  • Install Package Aspose.GIS from Package Manager Console in Visual Studio to get the NuGet package.
  • Or you can download package from our site;
  • Update Package Aspose.GIS. to upgrade to the latest version.
  • See Documentation.

System Requirements

Data Visualization API for .NET is supported on most platforms and operating systems and it can be used to develop several different types of .NET apps including ASP .NET, WinForms and Windows Services. API for .NET is easy to use and deploy, and provides the ideal solution to work with geospatial information with .NET Framework 4.7, .NET Standard 2.0 & Xamarin platforms. Before running the code, please make sure your system meets the appropriate requirements.

Aspose.Viewer Kml Live Demos on C#

Interact with powerful and simple-to-use app samples in C#. Try out our data tools. Live demos in C#

Key Features

Combine several layers on one map image.

Apply styles for points, lines, and surfaces.

Import styles from SLD format.

Draw labels and text. Apply styles for text and auto detect places on a map.

Draw clustered points.

Save a created map in SVG, PNG, BMP, or JPEG.

Manage the spatial reference system for your map.

Draw labels along curved lines.

Use advanced rendering: Combine Symbolizers, Geometry Generator, Mixed Geometry.