コンテンツにスキップ

dwgmapconvert

DWG/DXF 図面の地図投影法(座標参照系)を変換するコマンドラインツールです。

Usage: ./dwgmapconvert [OPTIONS]... <drawing file>
Converts a drawing file (DWG, DXF, ...) from one CRS to another.
Typically used to convert the coordinate system before running
dwg2maptiles.
-block=BLOCK_NAME Name of block (or layout) to output
(defaults to *Model_Space)
-crs-in=CRS Data is in given coordinate reference system (CRS *)
-crs-out=CRS Transform to given coordinate reference system (CRS *)
* CRS can be either of:
- An object code such as 'EPSG:2056'
- An object name such as 'LV95'
- A WKT string ('PROJCS[...]')
- A proj-string ('+proj=...')
-crs-list List supported coordinate reference systems (CRS)
-pipeline=PIPELINE Transform according to the given transform pipeline PIPELINE
-d, -recompute-dim Recompute dimension blocks if empty
(dimensions rendered with best compatibility)
-f, -force Overwrite existing output file
-fs, -font-substitution FONT1 FONT2
Substitute FONT1 with FONT2
-h, -help Display this help
-layer=LAYER_NAMES Comma-separated list of layer(s) to export
List may include regular expressions
-ltscale=FACTOR Set linetype scale to FACTOR
-retain-texts Retain (don't segmentate) text labels
Only the text position and height is transformed
-segment-length=L Segmentate all entities with segment length L
-simplify Simplify after segmentation
-o, -outfile=FILE Set output file to FILE
-r, -release=RELEASE Set output DXF/DWG release to RELEASE.
Defaults to R27.
-u, -unit=[in|m|mm] Assume input data to be in given unit
Default is the drawing unit
Mainly useful for drawings with unit 'None'
macOS specific options:
-no-dock-icon Don't show icon in dock. This should only be used
in combination with -no-gui.
Qt/X11 platform arguments:
-platform offscreen Run without requiring an X11 server or display.
Use this argument to run this command line tool in a
Linux server environment.
Qt/X11 environment variables:
QT_QPA_FONTDIR Set to fonts directory in a server environment, e.g. 'fonts/qt'.