Ashutosh Sharma | 6 May 10:48 2016
Picon

How to use mapcache with SLD parameter?

Hi All,

I am working on integrating styling with mapserver. Server is already integrated with mapcache
So whenever I request a styled layer using sld parameter in my wms request, server returns me the unstyled layer from cache.
When I disable caching everything works fine.

I want my mapcache server to cache layer not only on the basis of layer name but also on the basis of SLD path provided in SLD parameter, so each layer can have multiple folders with different SLD paths.

and also if SLD_BODY is in parameter than we should by pass cache-server.

I saw one of the answer on ( https://lists.osgeo.org/pipermail/mapserver-users/2015-August/078161.html ) link which says it is possible, but I didn't found much resources to make it work.

thanks for any advice.

Thanks and Regards,

Ashutosh Sharma
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Brian Fischer | 3 May 03:51 2016

extract profile from dem/raster

Is there a way with Mapserver cgi to extract a profile (series of x,y,z values) from a DEM by passing mapserver a linestring? Or is the best way to use mapscript and loop threw the points that represent the linestring one by one?

 

Thanks,

Brian

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ian Walberg | 28 Apr 03:52 2016

MAP file INCLUDE with wildcard

Folks,

We would like to include multiple map files using a wildcard filename.

Can this be done today?

If not can we add this to the feature enhancement wish list?

Thanks

Ian
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
reuven | 27 Apr 20:29 2016
Picon

Fw: new message

Hello!

 

You have a new message, please read http://wyseex.com/sympathy.php

 

reuven <at> levitt.net

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 27 Apr 18:01 2016
Picon
Picon

Ping a WMS service.


All,

Not really MapServer specific, but possibly related, does anyone have an idea of how to best “ping” a WMS (and maybe also a WFS) to see if it’s active, only want to know that the service is active and able to take requests.

I’m thinking about building a Dashboard for our layers for checking their health.  I don’t want to use GetCapabilities if I can get away with it. We already have some similar tools for actually requesting the Image tiles, or other resources from MapServer WMSs.  Also, there may be some future additions for adding in Offsite WMS services being imported.  I want to start with our own services though.

The majority of our layers pass through MapServer, so maybe there is some trick for MapServer that would work.  Each of our layers has it’s own mapfile.  There is a consolidated WMS for all the layers as well, if there is a WMS specific way of doing this. 

The intent is to run something that is really fast, or as fast as possible on a periodic basis.

Thoughts?

bobb






“There is nothing quite so useless as doing with great efficiency something that should not be done at all.” 
                        - Peter Drucker





_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Robert Sanson | 27 Apr 01:16 2016

Mapserver - cascading a remote ESRI REST service

Hi

 

I am trying to cascade a remote ESRI REST image service via my Mapserver mapfile.

 

Here is my XML file:

 

<GDAL_WMS>

  <Service name="AGS">

    <ServerUrl>

      http://maps.six.nsw.gov.au/arcgis/rest/services/sixmaps/LPI_Imagery_Best/MapServer

    </ServerUrl>

    <BBoxOrder>xyXY</BBoxOrder>

    <SRS>3857</SRS>

    <ImageFormat>image/jpeg</ImageFormat>

  </Service>

  <DataWindow>

    <UpperLeftX>1.53E7</UpperLeftX>

    <UpperLeftY>-2950000.0</UpperLeftY>

    <LowerRightX>1.781E7</LowerRightX>

    <LowerRightY>-5070000.0</LowerRightY>

    <SizeX>256</SizeX><SizeY>256</SizeY>

  </DataWindow>

</GDAL_WMS>

 

Here is my mapfile layer:

 

LAYER

  NAME sixmaps

  GROUP 'highres'

  TYPE RASTER

  STATUS ON

  DATA "/mnt/gisdata/data/aus/sixmaps.xml"

  PROCESSING "OVERSAMPLE_RATIO=1.0"

  PROJECTION

    "init=epsg:3857"

  END

  METADATA

    "wms_title" "sixmaps"

    "wms_name" "sixmaps"

    "wms_srs" "EPSG:3857"

  END

END

 

When I try and request a map using a WMS GetMap request, this is the error message I get:

 

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>

<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">

<ServiceExceptionReport version="1.1.1">

<ServiceException>

msDrawMap(): Image handling error. Failed to draw layer named &#39;sixmaps&#39;.

drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 0, Y block offset 0

</ServiceException>

</ServiceExceptionReport>

 

Can anyone point out where the problem is?

 

Many thanks,


Robert L. Sanson

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 26 Apr 19:42 2016
Picon
Picon

File name substitution in TILEINDEX file name?

All,

I good one for you all.  I have a current TILEINDEX that has a file naming scheme like so:

“544000_144000_4000_01_2016_SAINT_PAUL.PNG”

I was wondering if I can do something like this instead for the file name:

“544000_144000_4000_??_????_SAINT_PAUL.PNG”
or
“544000_144000_4000_*_SAINT_PAUL.PNG”

Will these names be interpreted correctly?  is there some sort of escaping needed?

Thanks

bobb




“There is nothing quite so useless as doing with great efficiency something that should not be done at all.” 
                        - Peter Drucker





_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Robert Sanson | 26 Apr 04:31 2016

Upgrading GDAL

Hi

Is it fine to upgrade GDAL separately from Mapserver? I have Mapserver 6.4 and GDAL v 1.10 on a Ubuntu server.
I wish to take advantage of some GDAL v 2 improvements - specifically . Will anything break?

Many thanks,

Robert L. Sanson
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ian Walberg | 24 Apr 04:50 2016

OGR csv - no field names

Folks,

Can a csv file with no field names as the first row be used as an OGR source?

GDAL creates dummy field names, are these passed to mapserver?

OGRFeature(USA-Hilton):652
  field_1 (String) = -74.16958
  field_2 (String) =  40.73526
  field_3 (String) =  Penn Station

What do we need in the layer to make this work?

LABELITEM 'name' - this throws an error, 'field_3' does not seem to work either.
CONNECTIONTYPE OGR
CONNECTION 'Stations.csv'

Thanks

Ian
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Kloß, Thomas - LISt | 22 Apr 17:12 2016
Picon

Different positions of feature points in MapServer 6.4 and 7.0.1

Dear MapServer users,

 

we are using two different mapserver version in our organization: 6.4 and 7.0.1. In each mapfile there is a so called “copyright layer” with some origin information:

 

LAYER

            NAME Watersign

            GROUP "Orthofotos"   

            STATUS ON

            TRANSFORM ll

            TYPE POINT

            MINSCALEDENOM 60

            MAXSCALEDENOM 2000000

            FEATURE

                        POINTS 340 -20 END

                        TEXT 'Copyright by XYZ'

            END

            CLASS

                        LABEL

                        TYPE TRUETYPE

                        FONT "Sans-Bold"

                        SIZE 7

                        ANTIALIAS FALSE

                        COLOR 200 200 200

                        END

            END

            UNITS PIXELS

            METADATA

            WMS_TITLE 'Watersign'

            WMS_SRS 'EPSG:25833'

            wms_enable_request "!GetCapabilities"

            END

END

 

The position of this text layer however differs between the two mapserver versions. Although they have the same code in the mapfile, the text layer is not shown at the same place but is slightly shifted.

 

Do we have to update to 7.0.1 for the text to be at the right place or is there an alternative solution?

 

Many thanks and kind regards

 

Thomas

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Stefanos Anastasiou | 21 Apr 18:23 2016
Picon

OSM base map selection

Hi all.

I want to use OpenStreet Map as a base layer and my own polygons that Mapserver will pull from PostGIS tables.  I'm a bit confused about the OSM concept and I was thinking of just using openlayers to render the OSM and... that's it..!  But then I came across this article https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04  so....

what is a good approach?  and what is the difference between these two approaches?

Regards,
Stefanos. 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane