From jmckenna at gatewaygeomatics.com Tue Sep 22 23:57:42 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Sep 2020 18:57:42 -0300 Subject: [Mapserver-DE] SVG OUTPUTFORMAT TEXT LABEL In-Reply-To: <379a48f9f0bb45ad842d5aa588b55875@alpgis.ch> References: <379a48f9f0bb45ad842d5aa588b55875@alpgis.ch> Message-ID: <9a087d4f-6178-0bd4-d49b-047d98bad32b@gatewaygeomatics.com> Hi Adrian! (file this response under #betterlatethannever ha) The MapServer document that you referenced states "WMS layers are not yet supported". Maybe I should improve the styling of that sentence in the document, as it sort of blends in, instead of a strong warning. Have you tried your tests with CGI mapserv?map= or a shp2img request at the commandline (you can use the "-i" switch to specify that format) ? -jeff -- Jeff McKenna MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ On 2019-02-20 11:43 a.m., Adrian Dahinden wrote: > Guten Tag > > Hat jemand Erfahrung mit dem SVG OUTPUTFORMAT von MapServer beim Rendern > von Textlabels? > > Bei einer GetMap Anfrage mit dem Format *«FORMAT=image/svg+xml»* auf > Textlabels, liefert der Mapserver die Texte als / >/**anstatt**// Elemente zurück. > > Laut der Dokumentation sollte dies bei TRUETYPE Fonts aber nicht so > sein: https://mapserver.org/output/svg.html#text-features > > Meine MapFile Konfiguration sieht folgendermassen aus: > > MAP > > … > >   IMAGETYPE svg > > … > >   OUTPUTFORMAT > >     NAME svg > >     MIMETYPE "image/svg+xml" > >     DRIVER CAIRO/SVG > >     FORMATOPTION "COMPRESSED_OUTPUT=FALSE" > >     FORMATOPTION "FULL_RESOLUTION=TRUE" > >     IMAGEMODE RGB > >     EXTENSION "svg" > >   END > > … > >  WEB > >     IMAGEPATH 'geotmp/log/mapserver/' > >     IMAGEURL  'geotmp/log/mapserver/' > >   END > > ... > >   LAYER > >     NAME "Nr" > >     TYPE POINT > >     PROJECTION > >       "init=epsg:2056" > >     END > >     CONNECTIONTYPE postgis > >     PROCESSING "CLOSE_CONNECTION=DEFER" > >     CONNECTION "user=www-data password=www-data dbname=… host=…" > >     DATA  "pos from (SELECT … FROM …) AS foo using unique gid using > epsg:2056" > >     LABELITEM "nummer" > >     CLASS > >       LABEL > >         TYPE TRUETYPE > >         FONT arial > >         SIZE 5 > >         COLOR 0 0 0 > >       END > >     END > >   END > > … > > END > > Wir verwenden MapServer Version 7.0.4. > > Freundliche Grüsse > > Adrian Dahinden > > ALPGIS AG > Raumentwicklung und Geoinformation > Fliederweg 11 > 3600 Thun > > > Telefon 033 224 04 30 / direkt 033 224 04 34 > Fax 033 224 40 60 > www.alpgis.ch > mailto:a.dahinden at alpgis.ch > From jmckenna at gatewaygeomatics.com Wed Sep 23 01:09:28 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Sep 2020 20:09:28 -0300 Subject: [Mapserver-DE] SVG OUTPUTFORMAT TEXT LABEL In-Reply-To: <9a087d4f-6178-0bd4-d49b-047d98bad32b@gatewaygeomatics.com> References: <379a48f9f0bb45ad842d5aa588b55875@alpgis.ch> <9a087d4f-6178-0bd4-d49b-047d98bad32b@gatewaygeomatics.com> Message-ID: <3f282b0e-df0c-894e-7ed5-ac9b76062f6f@gatewaygeomatics.com> That sentence in the document is incorrect, as you can specify an OUTPUTFORMAT for svg, for a GetMap, as you said. Hmm, I'd need a test case to see. Would you mind creating a small test case? (mapfile snippet, inline feature as layer, requests in 'commands.txt' file, zipped). thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ On 2020-09-22 6:57 p.m., Jeff McKenna wrote: > Hi Adrian! > > (file this response under #betterlatethannever ha) > > The MapServer document that you referenced states "WMS layers are not > yet supported".  Maybe I should improve the styling of that sentence in > the document, as it sort of blends in, instead of a strong warning. > > Have you tried your tests with CGI mapserv?map=  or a shp2img request at > the commandline (you can use the "-i" switch to specify that format) ? > > -jeff > > > > > _______________________________________________ > Mapserver-DE mailing list > Mapserver-DE at freegis.org > https://www.intevation.de/mailman/listinfo/mapserver-de > From jmckenna at gatewaygeomatics.com Wed Sep 23 01:22:19 2020 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 22 Sep 2020 20:22:19 -0300 Subject: [Mapserver-DE] SVG OUTPUTFORMAT TEXT LABEL In-Reply-To: <3f282b0e-df0c-894e-7ed5-ac9b76062f6f@gatewaygeomatics.com> References: <379a48f9f0bb45ad842d5aa588b55875@alpgis.ch> <9a087d4f-6178-0bd4-d49b-047d98bad32b@gatewaygeomatics.com> <3f282b0e-df0c-894e-7ed5-ac9b76062f6f@gatewaygeomatics.com> Message-ID: <59f28bbc-8fea-1ff8-06f8-3343a17d412e@gatewaygeomatics.com> I've changed the sentence in the documentation now, to say that GetMap requests are possible, with OUTPUTFORMAT, as you said here. K let me know if you can make a small test case. thanks! -jeff On 2020-09-22 8:09 p.m., Jeff McKenna wrote: > That sentence in the document is incorrect, as you can specify an > OUTPUTFORMAT for svg, for a GetMap, as you said. > > Hmm, I'd need a test case to see.  Would you mind creating a small test > case? (mapfile snippet, inline feature as layer, requests in > 'commands.txt' file, zipped). > > thanks! > > -jeff > > >