svg output blank
Michael Leong
mleong at GLOBEXPLORER.COM
Fri Dec 15 14:25:06 PST 2006
Hi,
I can get correct png output, but if I set the outputformat to svg, I get
an incomplete svg xml.
I'm running 4.10.0
MapServer version 4.10.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=THREADS SUPPORTS=GEOS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Here's what I'll get:
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" width="256" height="256"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- START LAYER parcels -->
</svg>
Here's my mapfile:
MAP
NAME "MapFile"
STATUS ON
EXTENT -23612250.268332410 5516496.445967868 -23612097.565338667
5516649.148961612
SIZE 512 512
SYMBOLSET "./etc/gexSymbols.sym"
FONTSET "./etc/fonts.txt"
IMAGETYPE png24a
IMAGECOLOR 254 247 230
UNITS METERS
DEBUG ON
WEB
IMAGEPATH "/var/www/html/ms_tmp/"
IMAGEURL "/ms_tmp/"
LOG "/var/www/html/ms_tmp/test_mapserver.log"
END
QUERYMAP
STATUS ON
SIZE 150 100
COLOR 0 55 255
STYLE NORMAL
END
PROJECTION
"proj=merc"
"units=m"
"lat_ts=0"
"lon_0=0"
"k=1.000000"
"x_0=0"
"y_0=0"
"a=6371000"
"b=6371000"
END
LEGEND
STATUS OFF
OUTLINECOLOR 51 51 255
IMAGECOLOR 255 255 255
TRANSPARENT ON
INTERLACE ON
POSITION LL
KEYSIZE 30 15
KEYSPACING 10 10
POSTLABELCACHE TRUE
LABEL
TYPE TRUETYPE
FONT "LucidaTypewriterBoldOblique"
SIZE 11
BUFFER 0
MINDISTANCE -1
MINFEATURESIZE -1
COLOR 175 175 175
OUTLINECOLOR 25 25 25
ANTIALIAS TRUE
END
END
SCALEBAR
STATUS OFF
SIZE 400 10
COLOR 122 100 255
OUTLINECOLOR 222 222 0
BACKGROUNDCOLOR 155 155 155
IMAGECOLOR 255 255 255
TRANSPARENT ON
UNITS FEET
INTERVALS 4
STYLE 0
POSITION LL
INTERLACE ON
LABEL
TYPE BITMAP
FONT "LucidaSansRegular"
SIZE MEDIUM
POSITION AUTO
COLOR 0 0 0
END
END
OUTPUTFORMAT
NAME "jpeg"
MIMETYPE "image/jpeg"
DRIVER "GD/JPEG"
EXTENSION "jpg"
IMAGEMODE RGB
TRANSPARENT FALSE
FORMATOPTION "QUALITY=90"
END
OUTPUTFORMAT
NAME "png8"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
TRANSPARENT TRUE
END
OUTPUTFORMAT
NAME "png24a"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE RGBA
TRANSPARENT TRUE
END
OUTPUTFORMAT
NAME svg
MIMETYPE "image/svg+xml"
DRIVER svg
FORMATOPTION "COMPRESSED_OUTPUT=FALSE"
FORMATOPTION "FULL_RESOLUTION=TRUE"
END
LAYER
PROJECTION
"init=epsg:4326"
END
NAME "parcels"
GROUP "parcels"
STATUS OFF
DATA "the_geom from parcels USING SRID=4326"
TYPE LINE
CONNECTIONTYPE POSTGIS
CONNECTION "host=xyz port=123 user=user1 password=password1 dbname=db1"
SIZEUNITS PIXELS
LABELCACHE ON
MAXSCALE 11001
DEBUG TRUE
CLASSITEM "s_pin"
CLASS
EXPRESSION //
NAME "parcels"
DEBUG ON
STYLE
SYMBOL "lines2"
SIZE 2
ANTIALIAS TRUE
OUTLINECOLOR 255 255 0
COLOR -1 -1 -1
END
END
END
END
More information about the MapServer-users
mailing list