---
name: "map2gcm"
section: "1"
platform: "linux"
package: "qlandkartegt"
version: "1.8.1+ds-7+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/map2gcm"
---

# map2gcm(1)

convert map to KMZ

## NAME

map2gcm - convert map to KMZ

## SYNOPSIS

**map2gcm**  **-q** *1..100* **-s** *411\|422\|444* **-t** *file* *file1* *file2* ... *fileN* *outputfile*

## DESCRIPTION

**map2gcm** is a helper utility for [**qlandkartegt**(1)](/qlandkartegt/1.md) to convert a map to KMZ format.

The list of selected tiles is a string in a file. The index count startswith 0 at the top left corner and is incremented for each element in a row. A 2x2 tile selection will have the index string '0 1 2 3'.

The projection of the input files must have the same latitude along a pixel row. Mecator and Longitude/Latitude projections match this property. Transversal Merkator or Lambert projections do not.

To rectify a geotiff map, you can use the [**gdalwarp**(1)](/gdalwarp/1.md) command, e.g.

```
FC
gdalwarp -t_srs "EPSG:4326" inputfile outputfile
      F[0]
```

## OPTIONS

- FC**-q**F\[0\] *1..100*

  The JPEG quality from 1 to 100. Default is 75

- FC**-s**F\[0\] *411\|422\|444*

  The chroma subsampling. Default is 411

- FC**-t**F\[0\] *file* *file1* *file2* ... *lonN*

  File with list of selected tile index

- *outputfile*

  Path to KMZ output file

## SEE ALSO

[**qlandkartegt**(1)](/qlandkartegt/1.md)
