<commit_before>---
title: ESRI Shapefile Reader
page_title: ESRI Shapefile Reader | RadMap
description: RadMap can visualize tile data from the Bing Maps and the OpenStreetMaps REST services as well as from the local file system.
slug: winforms/map/file-readers/esri-shapefile-reader
tags: map, providers
published: True
position: 1 
---

# ESRI Shapefile Reader

The ESRI Shapefiles or simply the shapefiles are popular format for storing geographical data. The files spatially describe geometries like lines, polylines and polygons. These geometries may represent different geographical objects such as countries, roads, rivers, lakes etc. Via a software that supports the format, the geometries can be translated properly on a map.

>caption Figure 1: ESRI Shapefile Reader 

![map-file-readers-esri-shapefile-reader 001](images/map-file-readers-esri-shapefile-reader001.png)

To read your data you have to use a __ShapeFileReader__ which reads __ShapeFileReaderParameters__ where the __ShapeStream__ and __DbfStream__ are stored.

>note You can find the shape file for this example in our [demo application]({%slug winforms/getting-started%}).

#### Using ShapeFileReader

{{source=..\SamplesCS\Map\MapFileReaders.cs region=SetupESRIShapeReader}} 
{{source=..\SamplesVB\Map\MapFileReaders.vb region=SetupESRIShapeReader}}

````C#
        
private Font seatsFont = new Font("Arial", 7f, FontStyle.Bold);
    
public void SetupESRIShapeReader()
{
    MapLayer pinsLayer = new MapLayer("Hall Layout");
    this.radMap1.Layers.Add(pinsLayer);<commit_msg>fix link<commit_after>---
title: ESRI Shapefile Reader
page_title: ESRI Shapefile Reader | RadMap
description: RadMap can visualize tile data from the Bing Maps and the OpenStreetMaps REST services as well as from the local file system.
slug: winforms/map/file-readers/esri-shapefile-reader
tags: map, providers
published: True
position: 1 
---

# ESRI Shapefile Reader

The ESRI Shapefiles or simply the shapefiles are popular format for storing geographical data. The files spatially describe geometries like lines, polylines and polygons. These geometries may represent different geographical objects such as countries, roads, rivers, lakes etc. Via a software that supports the format, the geometries can be translated properly on a map.

>caption Figure 1: ESRI Shapefile Reader 

![map-file-readers-esri-shapefile-reader 001](images/map-file-readers-esri-shapefile-reader001.png)

To read your data you have to use a __ShapeFileReader__ which reads __ShapeFileReaderParameters__ where the __ShapeStream__ and __DbfStream__ are stored.

You can find the shape file for this example in our [demo application]({%slug winforms/getting-started%}).

#### Using ShapeFileReader

{{source=..\SamplesCS\Map\MapFileReaders.cs region=SetupESRIShapeReader}} 
{{source=..\SamplesVB\Map\MapFileReaders.vb region=SetupESRIShapeReader}}

````C#
        
private Font seatsFont = new Font("Arial", 7f, FontStyle.Bold);
    
public void SetupESRIShapeReader()
{
    MapLayer pinsLayer = new MapLayer("Hall Layout");
    this.radMap1.Layers.Add(pinsLayer);
{'fraction_non_alphanumeric': 0.07975460122699386, 'fraction_numerical': 0.006457862447529867, 'mean_word_length': 5.086444007858546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3625738', 'n_tokens_mistral': 984, 'n_tokens_neox': 863, 'n_words': 329}