Convert LOC to SHP

Turn LOC files into Shapefile. A zip of shapefiles, one for each kind of geometry among points, lines and polygons, each with its .shp, .shx, .dbf, .prj and .cpg, in the source's coordinate system with the attributes as UTF-8 columns.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop LOC files on the dialor turn it to pick what to do

Geocache waypoints as points in a shapefile.Each waypoint becomes a point in a zipped shapefile, in the source's coordinate system.

  1. What you get

    One file: a zip of shapefiles, one for each kind of geometry among points, lines and polygons. Each shapefile comes with its .shp, .shx, .dbf, .prj and .cpg parts.

    Waypoints become points. The attributes are stored as UTF-8 columns, and a layer column names the layer each feature comes from, such as waypoints.

  2. What changes

    Column names are cut to 10 characters. Separately, a few columns are renamed: track_seg_id becomes trksegid, track_seg_point_id becomes trksegptid and route_point_id becomes rteptid.

    Lists and nested values become JSON text. Times become text too, because a shapefile has no type for them.

  3. What is left out

    Features without a geometry are not written. Columns that no feature fills are left out as well.

    Heights are not lost. They stay in the shapes as Z and in the ele column of points.

    For other targets from the same source, see every LOC conversion. For other sources that end in this format, see every SHP conversion.

LOC and SHP.What each format is.

The formats

From · LOC

Geocaching LOC

Geocache waypoints downloaded from Geocaching.com as a .loc file.

Extensions
.loc
MIME type
application/x-geocaching-loc+xml
Kind
Text and data
To · SHP

Shapefile

Esri shapefiles zipped with their .shx, .dbf and .cpg parts, the vector format GIS programs exchange.

Extensions
.shp.zip .shz .shp
MIME type
application/x-shapefile+zip
Kind
Text and data

In your code.The same LOC to SHP conversion through the API, for your app or your agent.

terminal
$ cv convert report.loc report.shp.zip
$ cv convert report.loc report.shp.zip

Questions.What people ask about LOC to SHP.

01OF 04

You get one zip file. It holds a shapefile for each kind of geometry present, and each shapefile has its .shp, .shx, .dbf, .prj and .cpg parts.

The source's coordinate system. It is described in the .prj part of each shapefile.

Column names are cut to 10 characters. Some columns are also renamed, such as track_seg_id to trksegid.

No. Features without a geometry are left out.

More conversions.Other ways in and out of LOC and SHP.