dwg2maptiles crea de forma totalmente automática conjuntos de teselas para su uso en mapas en línea. La estructura de directorios / archivos generada sigue el estándar bien establecido (z/x/y.png). El número de niveles de zoom (z) es ajustable. Estas teselas de mapas pueden utilizarse para crear mapas interactivos para la web, por ejemplo con leaflet.js. Consulte también nuestro tutorial sobre teselas de mapas.
Usage
Usage: ./dwg2maptiles [OPTIONS]... <drawing file>
Converts a drawing file (DWG, DXF, ...) to a set of
bitmap files (PNG, JPEG, ...) for use with online maps, e.g. leaflet.js.
-a, -antialiasing Enable antialiasing
-skip-empty Skip empty tiles
-b, -background=C Set the background color as color name
e.g. 'white', '#ccdd00' or 'transparent'
-block=BLOCK_NAME Name of block (or layout) to output
(defaults to *Model_Space)
-c, -color-correction Enable color correction to prevent white on white
or black on black painting
-center=X,Y Set center of first tile to X,Y in drawing units
-dry-run Don't write any tiles.
-d, -recompute-dim Recompute dimension blocks if empty
(dimensions rendered with best compatibility)
-tile-markers Add tile markers (for testing, debugging)
-e, -tile=ROW,COL Generate only tile at ROW,COL
-f, -force Overwrite existing output file
-flat Flatten to 2D (Z==0)
-fs, -font-substitution FONT1 FONT2
Substitute FONT1 with FONT2
-h, -help Display this help
-k, -grayscale Grayscale
-layer=LAYER_NAMES Comma-separated list of layer(s) to export
List may include regular expressions
-l, -list List supported formats
-ltscale=FACTOR Set linetype scale to FACTOR
-m, -margin=M Set auto zoom margin to M (in percent)
Default is 10%
-tms Y=0 is at the bottom (typically used for TMS,
default is Y=0 at the top for WMS)
-n, -monochrome Monochrome (black / white)
-o, -outdir=DIR Set output dir to DIR
default is same path and base name as input file
-hq-postfix=P Generate high-res tiles (512px) in addition to
256px tiles and use the given postfix for the
high-res output files, e.g. '@2x' for '[email protected]'
-q, -quality=Q Set the image quality / compression
(0=best compression..100=best quality)
-r, -resolution=R Set rendering resolution of first tile to R
(in pixels/drawing unit)
This overrides the width/height parameters
-screen-lt Use screen based linetypes (thin, visible patterns)
-s, -subsection=N,M Generate subsection N of M
Examples:
1,4: generate first of four subsections
4,4: generate fourth of four subsections
7,8: generate seventh of eight subsections
-t, -format File format (png, jpeg, gif)
-text-threshold=T Render texts below this T pixels as bounding box
-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'
-x, -width=W Set bitmap width to W (in pixels)
-y, -height=H Set bitmap height to H (in pixels)
-y, -height=H Set bitmap height to H (in pixels)
-x-offset=X X offset for fine tuning
-y-offset=Y Y offset for fine tuning
-opacity=O Make all tiles (semi-)transparent using the given opacity
0.0: transparent
1.0: opaque
-p, -origin Draw zero point (origin)
-web-mercator Input is in Web Mercator coordinates,
from example from dwgmapconvert
-z, -zoomlevels Number or range of zoom levels, defaults to 0-6
Examples:
5: zoom levels 0,1,2,3,4,5
3-5: zoom levels 3,4,5
1,3,5: zoom levels 1,3,5
3-3: zoom level 3 only
macOS specific options:
-no-dock-icon Don't show icon in dock. This should only be used
in combination with -no-gui.