English
  1. Products
  2.   Aspose.GIS
  3.   .NET
  4.   Generate Map

Map Generating API for .NET

Create, view, and download a fantasy city map.

Thanks to our API for .NET, you can quickly and easily generate various random maps of both real and fictional worlds.

  Download Free Trial
PNG JPG BMP TIFF GPX
Aspose.GIS for .NET
GIS
Map Generating is a complex and large task. Map generators can create continents, fantasy worlds, and geophysical maps with mountains, rivers, seas, etc. Currently, our library provides a set of features to generate a part of the city with various city objects.

Our Map generation starts with creating interconnected road networks, which means any point on the road brings to its other points on the road. Then fills in the biggest gaps between the roads by parks and the largest residential areas. Then turns for smaller objects like the average residential areas consisting of several houses. Finally, it fills the remaining gaps with separate outbuildings representing simple small buildings.

So you have city objects on your generated map such as:
  • Road networks
  • Park zones with trails
  • Large residential areas with many houses
  • Average residential areas with several houses
  • Separate outbuildings
  • System Requirements
  • Our API is supported on most platforms and operating systems. Before running the code, please make sure your system meets the appropriate requirements.
Currently, the map’s default visual style is set. We can manage the map type, as well as the percentage of each type of city objects on the map in our library. We have not made these features available to users yet, but we plan to make them available as the product evolves and as interest increases.

Currently, the generated map represents a fixed-size square. The square is not chosen by chance. This form allows you to create tiles for different purposes and build entire cities from these tiles. the one pixel on the map corresponds to about two meters in the real world.

Generate a random map and download it as PNG, BMP, JPEG, or SVG. Our library renders maps as public Map objects, allowing us to render maps in formats supported by our library, such as PNG, BMP, JPEG, and SVG. The SVG format does not degrade map quality when scaling.
Code sample and the result
                
                    
MapGeneratorOptions mapGeneratorOptions = new MapGeneratorOptions();
mapGeneratorOptions.Height = 800;
mapGeneratorOptions.Width = 1000;

var map = MapLayersGenerator.ProduceMap(mapGeneratorOptions);
map.Render(path + ".map.png", Renderers.Png);
                
            

C# Aspose.GIS Generate Map 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;
  • Add Aspose.GIS for .NET to your system by installing NuGet Package;
  • See Documentation.

System Requirements

Coordinate Parser and Converter 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.GIS Generate Map Live Demos on C#

Try the features of our library to see new opportunities. Live demos in C#

Key Features

Convert Latitude and Longitude to Degree-based units

Parse coordinates position from text

Auto-Detect Units when latitude longitude is parsed from text.

Support World Geographic Reference System (GEOREF) Format

Support Military Grid Reference System (MGRS) Format

Support United States National Grid (USNG) Format