[mapserver-users] MapServer/MapCache vector tile test with max/min scale denominator

2018-11-17 Thread Martin Høgh
I've tested MapServer and MapCache with vector tiles using this 
MapServer branch:


https://github.com/sdlime/mapserver/tree/vector-tiles

And this MapCache PR:

https://github.com/mapserver/mapcache/pull/166

And it works.

I've also tested the layer level "max/min scale denominator" setting in 
MapServer to filter out layers in the vector tiles for different zoom 
levels, which also works when using Mapserver directly with the classic 
cgi interface, but not when using MapCache.


The max/min scale denominator kicks in with something likes this:

http://127.0.0.1/cgi-bin/mapserv.fcgi?map=/my_mapfile.map&mode=tile&tilemode=gmap&tile={x}+{y}+{z}&layers=all&map.imagetype=mvt

But when requesting tiles through MapCache the max/min scale denominator 
doesn't kicks in at any zoom levels.


I believe its because MapCache is requesting tiles through the WMS 
interface of MapServer and for some reason that behaves differently?


The definition in the MapCache file is





   mvt

application/vnd.mapbox-vector-tile









  

    http://localhost/cgi-bin/mapserv.fcgi?

  

  

    

  public

application/vnd.mapbox-vector-tile

  /my_mapfile.map 

    

  









  wms_mvt

  g

  disk

  MVT





Cheers

--
Martin Høgh
MapCentia ApS

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Styling KML output

2020-12-03 Thread Martin Høgh

I've setup KML/KMZ output for WFS with these definitions:

    OUTPUTFORMAT
    NAME kml
    DRIVER "OGR/KML"
    MIMETYPE "application/vnd.google-earth.kml+xml"
    IMAGEMODE FEATURE
    EXTENSION "kml"
    FORMATOPTION "FORM=simple"
    FORMATOPTION 'FILENAME=gmap75.kml'
    FORMATOPTION "maxfeaturestodraw=1000"
    END

    OUTPUTFORMAT
    NAME kmz
    DRIVER "OGR/LIBKML"
    MIMETYPE "application/vnd.google-earth.kmz"
    IMAGEMODE FEATURE
    EXTENSION "kmz"
    FORMATOPTION "FORM=simple"
    FORMATOPTION 'FILENAME=gmap75.kmz'
    FORMATOPTION "maxfeaturestodraw=1000"
    END

It works fine.

When serving KML polygons they all have a red outline and no fill:

<LineStyle><color>ffff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle>

Is it supposed to use the classes in the MapFile? Or is there another 
way to style KML output?


Best regards,

Martin Høgh


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] Some remote SVG files doesn't in 8.1

2023-07-11 Thread Martin Høgh

I've a MapFile with a point layer using a class style with a SVG symbol:

CLASS
    NAME 'point'
    STYLE
        SYMBOL 
'https://raw.githubusercontent.com/NordjyllandsTrafikselskab/gisimages/ca64d7a849c7cf0290ec41ec263a97b9195d0ff8/01.01.01.Bus.svg'

    END
END

In 7.6 this works fine, but in 8.1 the SVG symbol is not showing (no 
errors but the image is blank). But if change the SVG file to e.g.:


https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/AJ_Digital_Camera.svg

it works. So I guess it's something with the SVG file?

MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.4 OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV 
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI 
SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE INPUT=FLATGEOBUF



___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users