Shapefiles (.shp)

Shapefiles are a format introduced by ESRI for the storage of geodata, which has developed into a quasi-standard for the exchange of digital geographical information. In contrast to LTG files, which contain area, line and point information, a shape file describes only one separate layer (e.g. only the boundaries of postal code areas). However, a shapefile does not consist of a single file, but of a bundle of files that are needed for the corresponding use. In addition to a SHP file for storing geometry information, this includes SHX or DBF files in which index information for the geometry or attribute data is stored.

Inserting Shapefiles into easymap

Shapefiles can be inserted directly from the control window Base Maps onto the map sheet. If the shapefiles to be edited are not stored in the standard path of the digital maps, the corresponding directory must be selected.

All shapefiles in the selected directory are listed in the control window Map Basics under "Maps in SHP format". To insert all shapefiles in the specified directory on the map sheet, click on the heading above the individual shapefiles and drag them with the mouse from the Map Basics control window onto the map sheet (Drag&Drop). The heading above the individual shapefiles corresponds to the name of the folder containing the shapefiles (here GK3). To insert a single layer (e.g. e-streets_-_main net), select it with a mouse click and then drag and drop it from the Map Basics control window onto the map sheet. As soon as one or more Shapefiles have been dragged onto the map sheet, the Select Key Columns window opens.

Selection of key column

In contrast to the LTG format cards included in the scope of delivery, whose key column is predefined, Shapefiles can contain several columns with different identification numbers or IDs. From these numbers and IDs, a so-called key column must be selected, which is to be used for linking the base map and attribute data. This column must have the property that it contains only unique values. Columns with empty cells or number columns with decimal places are also not valid key columns.

Each object of a shapefile always contains at least one column with the name "FID" in the corresponding table (DBF file). The abbreviation FID stands for Feature Identifier and represents a unique identification number for each object of a shapefile. However, the FID is usually a consecutive number with which the individual objects are numbered consecutively, so that the FID can only be considered as an emergency solution if no other column fulfills the conditions for a key column. For example, analyses should only be based on the data supplied from the shape file if FID is used as the lead column.

After a corresponding key column has been defined for all shapefiles, the individual shapefiles are displayed in the map sheet and in control window Content . By default only the geometries (areas, lines and points) are visible. The corresponding texts are not displayed at first, but can be made visible later by checking the corresponding box in the control window Content checkbox.

Further topics: