From dconstant at siig.fr Tue Apr 1 08:38:27 2014
From: dconstant at siig.fr (Dorian CONSTANT)
Date: Tue, 1 Apr 2014 17:38:27 +0200
Subject: [mapserver-users] MapServer : Problem shifting TrueType symbols on
rotation
Message-ID: <013801cf4dc0$6d990c40$48cb24c0$@siig.fr>
Hello everyone,
First, excuse me for my bad English. J
I have long identified a problem of rotation of symbols in MapServer when
these symbols come from a TrueType font and they are configured as such in
the "SYMBOLS.SYM" file.
Example of symbols used in the crosswalks (the font file is attached to this
message) :
SYMBOL
NAME 'voirie_signal_horiz_ponct_pass_pieton'
TYPE TRUETYPE
FONT siig-voirie
ANTIALIAS true
CHARACTER "f"
END
The corresponding layer is defined as below under MapServer :
LAYER
NAME " Voirie_signal_horizontale_ponct"
TYPE POINT
STATUS DEFAULT
Postgis
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geom from voirie.v_voirie_signal_horiz_ponct USING SRID=2154
USING UNIQUE oid"
[QUERIABLE]
Lambert 93
CLASSITEM "type_signal"
UNITS meters
SIZEUNITS pixels
MAXSCALEDENOM 1010
CLASS
NAME "Passages pi?tons"
TEXT 'f'
STYLE
SYMBOL "voirie_signal_horiz_ponct_pass_pieton"
COLOR 1 1 1
OUTLINECOLOR 255 255 255
SIZE 15
ANGLE45
END
END
END
The problem is when a rotation is applied to the symbol, MapServer applies
rotation from the lower left point of the symbol and not from the central
attachment point.
Accordingly, would you know of a specific configuration to be done under
MapServer to ensure that it uses the hang central point symbols TRUETYPE as
pivot point and not the lower left point of the symbol ?
Thank you in advance.
----------------------------------------------------------------------
Dorian CONSTANT ? Responsable SIG
SiiG (Syndicat Intercommunal d?Information G?ographique)
1005 route de V?n?jan ? 30200 Saint-Nazaire
T?l: 04.66.90.58.00 ? Fax: 04.66.82.98.35 ? Mail: dconstant at siig.fr ? Web:
http://www.siig.fr
Description : Description : Description : logo_siig2
P Avant d'imprimer, ayez une pens?e pour notre environnement
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image029.jpg
Type: image/jpeg
Size: 2182 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: siig_voirie.ttf
Type: application/octet-stream
Size: 4520 bytes
Desc: not available
URL:
From thomas.bonfort at gmail.com Tue Apr 1 08:46:48 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Tue, 1 Apr 2014 17:46:48 +0200
Subject: [mapserver-users] MapServer : Problem shifting TrueType symbols
on rotation
In-Reply-To: <013801cf4dc0$6d990c40$48cb24c0$@siig.fr>
References: <013801cf4dc0$6d990c40$48cb24c0$@siig.fr>
Message-ID:
http://mapserver.org/mapfile/symbol.html => anchorpoint
https://github.com/mapserver/msautotest/blob/master/renderers/marker_anchorpoint.map
https://github.com/mapserver/msautotest/blob/master/renderers/expected/marker_anchorpoint.png
available from version 6.2 onwards.
--
thomas
On 1 April 2014 17:38, Dorian CONSTANT wrote:
> Hello everyone,
>
> First, excuse me for my bad English. J
>
>
> I have long identified a problem of rotation of symbols in MapServer when these
> symbols come from a TrueType font and they are configured as such in the "SYMBOLS.SYM"
> file.
>
> Example of symbols used in the crosswalks (the font file is attached to
> this message) :
>
>
>
> SYMBOL
>
> NAME 'voirie_signal_horiz_ponct_pass_pieton'
>
> TYPE TRUETYPE
>
> FONT siig-voirie
>
> ANTIALIAS true
>
> CHARACTER "f"
>
> END
>
>
>
> The corresponding layer is defined as below under MapServer :
>
>
>
> LAYER
>
> NAME " Voirie_signal_horizontale_ponct"
>
> TYPE POINT
>
> STATUS DEFAULT
>
> Postgis
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
>
> DATA "geom from voirie.v_voirie_signal_horiz_ponct USING SRID=2154
> USING UNIQUE oid"
>
> [QUERIABLE]
>
> Lambert 93
>
> CLASSITEM "type_signal"
>
> UNITS meters
>
> SIZEUNITS pixels
>
> MAXSCALEDENOM 1010
>
> CLASS
>
> NAME "Passages pi?tons"
>
> TEXT 'f'
>
> STYLE
>
> SYMBOL "voirie_signal_horiz_ponct_pass_pieton"
>
> COLOR 1 1 1
>
> OUTLINECOLOR 255 255 255
>
> SIZE 15
>
> ANGLE45
>
> END
>
> END
>
> END
>
>
>
> The problem is when a rotation is applied to the symbol, MapServer applies
> rotation from the lower left point of the symbol and not from the central attachment
> point.
>
>
>
> Accordingly, would you know of a specific configuration to be done under
> MapServer to ensure that it uses the hang central point symbols TRUETYPE
> as pivot point and not the lower left point of the symbol ?
>
>
>
> Thank you in advance.
>
>
>
> ----------------------------------------------------------------------
>
> *Dorian CONSTANT* ? Responsable SIG
> *SiiG* (*S*yndicat *I*ntercommunal d?*I*nformation *G*?ographique)
>
> 1005 route de V?n?jan ? 30200 Saint-Nazaire
>
> *T?l*: 04.66.90.58.00 ? *Fax*: 04.66.82.98.35 ? *Mail*: *dconstant at siig.fr
> * ? *Web*: http://www.siig.fr
>
> [image: Description : Description : Description : logo_siig2]
>
> *P* Avant d'imprimer, ayez une pens?e pour notre environnement
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image029.jpg
Type: image/jpeg
Size: 2182 bytes
Desc: not available
URL:
From james.evans.4 at us.af.mil Tue Apr 1 10:33:35 2014
From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE)
Date: Tue, 1 Apr 2014 17:33:35 +0000
Subject: [mapserver-users] How to hide the "?map=servemap.map" from URL
under IIS
In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C5D79D@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
References: <20EA793B1BC710448656BDC9BD25C4A104C5CD5C@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>,
<20EA793B1BC710448656BDC9BD25C4A104C5D79D@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C5DDC5@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Tamas,
I just verified that the url rewrites in the web.config don't work unless
you actually install the rewrite module.
James
-----Original Message-----
From: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
Sent: Sunday, March 30, 2014 8:02 AM
To: Tamas Szekeres
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] How to hide the "?map=servemap.map" from URL
under IIS
Hi Tamas,
I was able to get it working. Thanks! I'm not sure if I had to, but I
installed the IIS 7 rewrite module, which doesn't come with IIS 7 by
default, then was able to apply the following rewrite rule:
This is saved in the web.config in wwwroot directory.
Thanks,
James
________________________________
From: Tamas Szekeres [szekerest at gmail.com]
Sent: Friday, March 28, 2014 5:54 AM
To: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How to hide the "?map=servemap.map" from URL
under IIS
James,
You may probably look into something like this:
http://stackoverflow.com/questions/3071936/getting-iis7-to-rewite-but-still-
pass-querystring-parameters
Best regards,
Tamas
2014-03-28 7:55 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
:
Hi,
Can anyone point out the right way to alias my mapserver URL under
IIS 7? I'm not seeing it.
Thanks,
James
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6912 bytes
Desc: not available
URL:
From pgustafson at gmail.com Tue Apr 1 14:53:37 2014
From: pgustafson at gmail.com (Peter Gustafson)
Date: Tue, 1 Apr 2014 17:53:37 -0400
Subject: [mapserver-users] Can't get a raster to display... projection issue?
Message-ID:
Hi all, I'm brand new to mapserver.
(The itasca workshop map works)
I can't get a raster to display. I've tried various extents and projections
but suspect these are the cause. The mapfile is as below (IMAGEPATH and
IMAGEURL are changed -- working with itasca) as well as info from gdal.
Your help would be greatly appreciated!
Thanks,
Pete
MAP
NAME MyMap
STATUS ON
CONFIG "MS_ERRORFILE" "ms_error.txt"
DEBUG 5
STATUS ON
SIZE 1000 600
EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
PROJECTION
"init=epsg:3587"
END
WEB
IMAGEPATH "/var/www/localhost/htdocs/tmp/"
IMAGEURL "tmp/"
END
LAYER
NAME "wac-48_1_4.tif"
DATA "wac-48_1_4.tif"
TYPE RASTER
TRANSFORM TRUE
STATUS ON
UNITS DD
PROJECTION
"init=epsg:4326"
END
END
END
Driver:
GTiff/GeoTIFF
Files:
data/wac-48_1_4.tif
Size is 512,
512
Coordinate System
is:
GEOGCS["WGS
84",
DATUM["WGS_1984",
SPHEROID["WGS
84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin =
(-95.777952659785427,49.001030999999998)
Pixel Size =
(0.019025026914202,-0.019025026914202)
Metadata:
AREA_OR_POINT=Area
Image Structure
Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner
Coordinates:
Upper Left ( -95.7779527, 49.0010310) ( 95d46'40.63"W, 49d 0'
3.71"N)
Lower Left ( -95.7779527, 39.2602172) ( 95d46'40.63"W,
39d15'36.78"N)
Upper Right ( -86.0371389, 49.0010310) ( 86d 2'13.70"W, 49d 0'
3.71"N)
Lower Right ( -86.0371389, 39.2602172) ( 86d 2'13.70"W,
39d15'36.78"N)
Center ( -90.9075458, 44.1306241) ( 90d54'27.16"W, 44d
7'50.25"N)
Band 1 Block=512x5 Type=Byte,
ColorInterp=Red
Band 2 Block=512x5 Type=Byte,
ColorInterp=Green
Band 3 Block=512x5 Type=Byte, ColorInterp=Blue
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From thomas.bonfort at gmail.com Tue Apr 1 15:08:19 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 2 Apr 2014 00:08:19 +0200
Subject: [mapserver-users] Can't get a raster to display... projection
issue?
In-Reply-To:
References:
Message-ID:
typo: epsg:3857 instead of 3587?
--
thomas
On 1 April 2014 23:53, Peter Gustafson wrote:
> Hi all, I'm brand new to mapserver.
> (The itasca workshop map works)
>
> I can't get a raster to display. I've tried various extents and projections
> but suspect these are the cause. The mapfile is as below (IMAGEPATH and
> IMAGEURL are changed -- working with itasca) as well as info from gdal.
> Your help would be greatly appreciated!
>
> Thanks,
> Pete
>
> MAP
> NAME MyMap
> STATUS ON
> CONFIG "MS_ERRORFILE" "ms_error.txt"
> DEBUG 5
> STATUS ON
> SIZE 1000 600
> EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
> UNITS METERS
> SHAPEPATH "data"
> IMAGECOLOR 255 255 255
>
> PROJECTION
> "init=epsg:3587"
> END
>
> WEB
> IMAGEPATH "/var/www/localhost/htdocs/tmp/"
> IMAGEURL "tmp/"
> END
>
> LAYER
> NAME "wac-48_1_4.tif"
> DATA "wac-48_1_4.tif"
> TYPE RASTER
> TRANSFORM TRUE
> STATUS ON
> UNITS DD
> PROJECTION
> "init=epsg:4326"
> END
> END
> END
>
> Driver: GTiff/GeoTIFF
> Files: data/wac-48_1_4.tif
> Size is 512, 512
> Coordinate System is:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4326"]]
> Origin = (-95.777952659785427,49.001030999999998)
> Pixel Size = (0.019025026914202,-0.019025026914202)
> Metadata:
> AREA_OR_POINT=Area
> Image Structure Metadata:
> COMPRESSION=LZW
> INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left ( -95.7779527, 49.0010310) ( 95d46'40.63"W, 49d 0' 3.71"N)
> Lower Left ( -95.7779527, 39.2602172) ( 95d46'40.63"W, 39d15'36.78"N)
> Upper Right ( -86.0371389, 49.0010310) ( 86d 2'13.70"W, 49d 0' 3.71"N)
> Lower Right ( -86.0371389, 39.2602172) ( 86d 2'13.70"W, 39d15'36.78"N)
> Center ( -90.9075458, 44.1306241) ( 90d54'27.16"W, 44d 7'50.25"N)
> Band 1 Block=512x5 Type=Byte, ColorInterp=Red
> Band 2 Block=512x5 Type=Byte, ColorInterp=Green
> Band 3 Block=512x5 Type=Byte, ColorInterp=Blue
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From gord.mckenzie at canam.com Wed Apr 2 12:55:59 2014
From: gord.mckenzie at canam.com (gom)
Date: Wed, 2 Apr 2014 12:55:59 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
Message-ID: <1396468559314-5132723.post@n6.nabble.com>
I have created a Mapserver site and published a couple of large raster layers
through WMS. They work as expected and perform quiite well.
When i add the wms layers to Gaia or to Global Mapper they add and display
great. I want to display the layers in AutoCAD Map. When I add the WMS
layer there it takes 1.5 to 3 minutes to add the layer. After that it works
fine. No other WMS layers behave like that in AutoCAD Map and as I
mentioned previously, the layers don't work like that in any other program.
The layers are made up of about 1600 PNG images that are referenced in the
.map file by tileindexes. One layer is at 2 metre pixels and the other at 5
metre pixels. If I remove the layer that references the 2 metre images and
only use the 5 metre images, the layer is attached quite quickly. If I
switch and use only the 2 metre image layer the speed is slow again.
My output format is PNG8.
The images are stored in the same projection as they are being queried.
I have added the wms_extents metadata to each layer.
The MAXGEOWIDTH is such that no data is queried on inital loading of the
layer.
I have asked the question in the AutoCAD support forums, from the AutoCAD
MAp perspective, but was hoping there might be some suggestions as to
configuration/map options, in Mapserver, that might help speed up this
operation.
Thanks
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From aperi2007 at gmail.com Wed Apr 2 13:32:55 2014
From: aperi2007 at gmail.com (Andrea Peri)
Date: Wed, 2 Apr 2014 22:32:55 +0200
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To: <1396468559314-5132723.post@n6.nabble.com>
References: <1396468559314-5132723.post@n6.nabble.com>
Message-ID:
I set always the EXTEND information at the layer level.
This speed really the startup of mapserver.
Without the EXTENT al layer level the WMS try to calculate it to respond at
a
GetCapability request.
I guess the wms_extents is not sufficient to speed up mapserver.
hope to help.
Andrea.
2014-04-02 21:55 GMT+02:00 gom :
> I have created a Mapserver site and published a couple of large raster
> layers
> through WMS. They work as expected and perform quiite well.
>
> When i add the wms layers to Gaia or to Global Mapper they add and display
> great. I want to display the layers in AutoCAD Map. When I add the WMS
> layer there it takes 1.5 to 3 minutes to add the layer. After that it
> works
> fine. No other WMS layers behave like that in AutoCAD Map and as I
> mentioned previously, the layers don't work like that in any other program.
>
> The layers are made up of about 1600 PNG images that are referenced in the
> .map file by tileindexes. One layer is at 2 metre pixels and the other at
> 5
> metre pixels. If I remove the layer that references the 2 metre images and
> only use the 5 metre images, the layer is attached quite quickly. If I
> switch and use only the 2 metre image layer the speed is slow again.
>
> My output format is PNG8.
> The images are stored in the same projection as they are being queried.
> I have added the wms_extents metadata to each layer.
> The MAXGEOWIDTH is such that no data is queried on inital loading of the
> layer.
>
> I have asked the question in the AutoCAD support forums, from the AutoCAD
> MAp perspective, but was hoping there might be some suggestions as to
> configuration/map options, in Mapserver, that might help speed up this
> operation.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty ?????
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gord.mckenzie at canam.com Wed Apr 2 14:28:17 2014
From: gord.mckenzie at canam.com (gom)
Date: Wed, 2 Apr 2014 14:28:17 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To:
References: <1396468559314-5132723.post@n6.nabble.com>
Message-ID: <1396474097936-5132732.post@n6.nabble.com>
Thanks for the tip Andrea.
I tried the settings but it makes no difference.
I have included my map file to be sure I am am asking the question clearly
and to be sure I am implelemnting you suggestion correctly.
MAP
NAME "RasterSample"
SIZE 300 450
EXTENT 496500.000 6234300.00 597000.000 6401200.000
SHAPEPATH "D:/mapserv/shapes"
CONFIG "PROJ_LIB" "D:/proj/SHARE/"
WEB
IMAGEPATH "D:\tmp"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource"
"http://myserver:8080/cgi-bin/mapserv.exe?map=d:/mapserv/images/images.map&"
"wms_srs" "EPSG:26910"
"wms_enable_request" "GetMap GetCapabilities"
END
END
PROJECTION
"init=epsg:26910"
END
OUTPUTFORMAT
NAME "png8"
DRIVER AGG/PNG8
MIMETYPE "image/png; mode=8bit"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "QUANTIZE_FORCE=on"
FORMATOPTION "QUANTIZE_COLORS=256"
END
LAYER
NAME "2013-12-23_5m"
EXTENT 496500.000 6234300.00 597000.000 6401200.000
METADATA
"wms_title" "2013-12-23_5m"
"wms_extent" "496500.000 6234300.00 597000.000 6401200.000"
END
TYPE RASTER
STATUS OFF
TILEINDEX "2013-12-23_be_5m.shp"
TILEITEM "LOCATION"
PROJECTION
"init=epsg:26910"
END
MINGEOWIDTH 8000.01
MAXGEOWIDTH 25000
END
LAYER
NAME "2013-12-23"
EXTENT 496500.000 6234300.00 597000.000 6401200.000
METADATA
"wms_title" "2013-12-23"
"wms_extent" "496500.000 6234300.00 597000.000 6401200.000"
END
TYPE RASTER
STATUS OFF
TILEINDEX "2013-12-23_be.shp"
TILEITEM "LOCATION"
PROJECTION
"init=epsg:26910"
END
MAXGEOWIDTH 8000
END
END
Andrea Peri wrote
> I set always the EXTEND information at the layer level.
>
> This speed really the startup of mapserver.
> Without the EXTENT al layer level the WMS try to calculate it to respond
> at
> a
> GetCapability request.
>
> I guess the wms_extents is not sufficient to speed up mapserver.
>
> hope to help.
>
> Andrea.
>
>
>
> 2014-04-02 21:55 GMT+02:00 gom <
> gord.mckenzie@
> >:
>
>> I have created a Mapserver site and published a couple of large raster
>> layers
>> through WMS. They work as expected and perform quiite well.
>>
>> When i add the wms layers to Gaia or to Global Mapper they add and
>> display
>> great. I want to display the layers in AutoCAD Map. When I add the WMS
>> layer there it takes 1.5 to 3 minutes to add the layer. After that it
>> works
>> fine. No other WMS layers behave like that in AutoCAD Map and as I
>> mentioned previously, the layers don't work like that in any other
>> program.
>>
>> The layers are made up of about 1600 PNG images that are referenced in
>> the
>> .map file by tileindexes. One layer is at 2 metre pixels and the other
>> at
>> 5
>> metre pixels. If I remove the layer that references the 2 metre images
>> and
>> only use the 5 metre images, the layer is attached quite quickly. If I
>> switch and use only the 2 metre image layer the speed is slow again.
>>
>> My output format is PNG8.
>> The images are stored in the same projection as they are being queried.
>> I have added the wms_extents metadata to each layer.
>> The MAXGEOWIDTH is such that no data is queried on inital loading of the
>> layer.
>>
>> I have asked the question in the AutoCAD support forums, from the AutoCAD
>> MAp perspective, but was hoping there might be some suggestions as to
>> configuration/map options, in Mapserver, that might help speed up this
>> operation.
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>>
> mapserver-users at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty ?????
> -----------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132732.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jukka.rahkonen at mmmtike.fi Wed Apr 2 21:31:03 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Thu, 3 Apr 2014 04:31:03 +0000
Subject: [mapserver-users] WMS Server Optimization?
Message-ID:
Hi,
Check from the Apache access.log what kind of WMS requests AutoCad is sending. That should give a hint about how it is so heavy.
Png format is about the worst of all for server usage because the whole image data must be decompressed for each request. You will find easily recipes for creating tiled and perhaps compressed tiffs with overviews for Mapserver from the mail archives.
-Jukka Rahkonen-
gom wrote:
> I have created a Mapserver site and published a couple of large raster layers
> through WMS. They work as expected and perform quiite well.
>
> When i add the wms layers to Gaia or to Global Mapper they add and display
> great. I want to display the layers in AutoCAD Map. When I add the WMS layer
> there it takes 1.5 to 3 minutes to add the layer. After that it works fine. No
> other WMS layers behave like that in AutoCAD Map and as I mentioned
> previously, the layers don't work like that in any other program.
>
> The layers are made up of about 1600 PNG images that are referenced in the
> .map file by tileindexes. One layer is at 2 metre pixels and the other at 5 metre
> pixels. If I remove the layer that references the 2 metre images and only use the
> 5 metre images, the layer is attached quite quickly. If I switch and use only the 2
> metre image layer the speed is slow again.
>
> My output format is PNG8.
> The images are stored in the same projection as they are being queried.
> I have added the wms_extents metadata to each layer.
> The MAXGEOWIDTH is such that no data is queried on inital loading of the layer.
>
> I have asked the question in the AutoCAD support forums, from the AutoCAD
> MAp perspective, but was hoping there might be some suggestions as to
> configuration/map options, in Mapserver, that might help speed up this
> operation.
>
> Thanks
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-
> Server-Optimization-tp5132723.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From gislars+list at googlemail.com Thu Apr 3 00:04:48 2014
From: gislars+list at googlemail.com (Lars Lingner)
Date: Thu, 03 Apr 2014 09:04:48 +0200
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To: <1396474097936-5132732.post@n6.nabble.com>
References: <1396468559314-5132723.post@n6.nabble.com>
<1396474097936-5132732.post@n6.nabble.com>
Message-ID: <533D0810.5000305@googlemail.com>
Hi,
thats an interesting case. Like Jukka said, could you check your Apache
log files and identify the request URL send by AutoCad?
I would run these request by hand and check the resulting image. For
comparison it would be interesting to do this also with a request from
GrobalMapper or other clients who run normally.
MapServer itself can also write timing information to the log file.
Enable debugging by adding "DEBUG 3" at map level (see docs for more
settings). Than you will see how much time each layer as well as the
whole map needed to complete. Maybe these information can help.
Best wishes,
Lars
On 02.04.2014 23:28, gom wrote:
> Thanks for the tip Andrea.
>
> I tried the settings but it makes no difference.
>
> I have included my map file to be sure I am am asking the question clearly
> and to be sure I am implelemnting you suggestion correctly.
>
>
> MAP
> NAME "RasterSample"
> SIZE 300 450
> EXTENT 496500.000 6234300.00 597000.000 6401200.000
> SHAPEPATH "D:/mapserv/shapes"
> CONFIG "PROJ_LIB" "D:/proj/SHARE/"
>
> WEB
> IMAGEPATH "D:\tmp"
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_onlineresource"
> "http://myserver:8080/cgi-bin/mapserv.exe?map=d:/mapserv/images/images.map&"
> "wms_srs" "EPSG:26910"
> "wms_enable_request" "GetMap GetCapabilities"
> END
> END
>
> PROJECTION
> "init=epsg:26910"
> END
>
> OUTPUTFORMAT
> NAME "png8"
> DRIVER AGG/PNG8
> MIMETYPE "image/png; mode=8bit"
> IMAGEMODE RGB
> EXTENSION "png"
> FORMATOPTION "QUANTIZE_FORCE=on"
> FORMATOPTION "QUANTIZE_COLORS=256"
> END
>
> LAYER
> NAME "2013-12-23_5m"
> EXTENT 496500.000 6234300.00 597000.000 6401200.000
> METADATA
> "wms_title" "2013-12-23_5m"
> "wms_extent" "496500.000 6234300.00 597000.000 6401200.000"
> END
> TYPE RASTER
> STATUS OFF
> TILEINDEX "2013-12-23_be_5m.shp"
> TILEITEM "LOCATION"
> PROJECTION
> "init=epsg:26910"
> END
> MINGEOWIDTH 8000.01
> MAXGEOWIDTH 25000
> END
>
> LAYER
> NAME "2013-12-23"
> EXTENT 496500.000 6234300.00 597000.000 6401200.000
> METADATA
> "wms_title" "2013-12-23"
> "wms_extent" "496500.000 6234300.00 597000.000 6401200.000"
> END
> TYPE RASTER
> STATUS OFF
> TILEINDEX "2013-12-23_be.shp"
> TILEITEM "LOCATION"
> PROJECTION
> "init=epsg:26910"
> END
> MAXGEOWIDTH 8000
> END
> END
> Andrea Peri wrote
>> I set always the EXTEND information at the layer level.
>>
>> This speed really the startup of mapserver.
>> Without the EXTENT al layer level the WMS try to calculate it to respond
>> at
>> a
>> GetCapability request.
>>
>> I guess the wms_extents is not sufficient to speed up mapserver.
>>
>> hope to help.
>>
>> Andrea.
>>
>>
>>
>> 2014-04-02 21:55 GMT+02:00 gom <
>
>> gord.mckenzie@
>
>> >:
>>
>>> I have created a Mapserver site and published a couple of large raster
>>> layers
>>> through WMS. They work as expected and perform quiite well.
>>>
>>> When i add the wms layers to Gaia or to Global Mapper they add and
>>> display
>>> great. I want to display the layers in AutoCAD Map. When I add the WMS
>>> layer there it takes 1.5 to 3 minutes to add the layer. After that it
>>> works
>>> fine. No other WMS layers behave like that in AutoCAD Map and as I
>>> mentioned previously, the layers don't work like that in any other
>>> program.
>>>
>>> The layers are made up of about 1600 PNG images that are referenced in
>>> the
>>> .map file by tileindexes. One layer is at 2 metre pixels and the other
>>> at
>>> 5
>>> metre pixels. If I remove the layer that references the 2 metre images
>>> and
>>> only use the 5 metre images, the layer is attached quite quickly. If I
>>> switch and use only the 2 metre image layer the speed is slow again.
>>>
>>> My output format is PNG8.
>>> The images are stored in the same projection as they are being queried.
>>> I have added the wms_extents metadata to each layer.
>>> The MAXGEOWIDTH is such that no data is queried on inital loading of the
>>> layer.
>>>
>>> I have asked the question in the AutoCAD support forums, from the AutoCAD
>>> MAp perspective, but was hoping there might be some suggestions as to
>>> configuration/map options, in Mapserver, that might help speed up this
>>> operation.
>>>
>>> Thanks
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723.html
>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>> _______________________________________________
>>> mapserver-users mailing list
>>>
>
>> mapserver-users at .osgeo
>
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty ?????
>> -----------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>
>> mapserver-users at .osgeo
>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132732.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From Andrew.Parry at bentley.com Thu Apr 3 03:06:04 2014
From: Andrew.Parry at bentley.com (Andrew.Parry at bentley.com)
Date: Thu, 3 Apr 2014 10:06:04 +0000
Subject: [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Message-ID: <975A94E9172C8140954C422A1B2E148940F40575@extprdmbx03.bentley.com>
Hi,
I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source.
Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers).
Any suggestions welcome.
Regards,
Andrew
Andrew Parry | Software Engineer II
Bentley Systems (UK) Ltd
E-mail: andrew.parry at bentley.com | www.bentley.com
Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG
Registered in England No. 2957722
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 1.jpg
Type: image/jpeg
Size: 631 bytes
Desc: Picture (Device Independent Bitmap) 1.jpg
URL:
From jpass at bgs.ac.uk Thu Apr 3 02:41:40 2014
From: jpass at bgs.ac.uk (Passmore, James H.)
Date: Thu, 3 Apr 2014 10:41:40 +0100
Subject: [mapserver-users] Which north polar projection works best with
MapServer?
Message-ID: <434A1C26835F5149BDE720F63902F7220619A86204@nerckwmbc.ad.nerc.ac.uk>
I've been trying to serve a BlueMarble tiff in MapServer that adds a backdrop to a North Polar projection, specifically epsg:3413.
I cut the standard BlueMarble tiff to the bounds extent of this projection as defined at: http://spatialreference.org/ref/epsg/3413/
I've tried to both to reproject this tiff to epsg:3413 from epsg:4326 (which produces some odd artefacts) and I've tried to serve the tiff natively as epsg:3413 (which doesn't seem to work at all).
I see there is an existing ticket "polar reprojection bug revisited" on github https://github.com/mapserver/mapserver/issues/2765 and I've added some screen dumps to it that best illustrate my issue.
Obviously MapServer seems to have issues with this projection, so my question is which projection(s) could I use to show the north polar region, without any artefacts?
Thanks
James Passmore
GIS and WWW Specialist
-------------------------------
British Geological Survey,
Environmental Science Centre,
KEYWORTH,
United Kingdom,
NG12 5GG
Linked Data (vCard):http://data.bgs.ac.uk/ref/BritishGeologicalSurvey
-------------------------------
Phone:+44 (0)115 936 3125
Fax:+44 (0)115 936 3200
-------------------------------
jpass at bgs.ac.uk
http://www.bgs.ac.uk/
-------------------------------
Skype:BGSjames
@nmtoken
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
From jmckenna at gatewaygeomatics.com Thu Apr 3 04:18:05 2014
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Thu, 03 Apr 2014 08:18:05 -0300
Subject: [mapserver-users] mapserver.org down
Message-ID: <533D436D.1070605@gatewaygeomatics.com>
The OSGeo Systems committee is looking at it:
http://lists.osgeo.org/pipermail/sac/2014-April/004950.html
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From luis.a.de.sousa at gmail.com Thu Apr 3 05:44:19 2014
From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=)
Date: Thu, 3 Apr 2014 14:44:19 +0200
Subject: [mapserver-users] tutorial for python mapscript
Message-ID:
The API reference is documented here:
http://www.mapserver.org/mapscript/mapscript.html
This page seems to no longer exist. Is there an alternative? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Michael.Smith at erdc.dren.mil Thu Apr 3 05:47:49 2014
From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH)
Date: Thu, 3 Apr 2014 12:47:49 +0000
Subject: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D
geometries
Message-ID:
Andrew,
This is possible. You do need to do several things.
1. Mapserver needs to be compiled with USE_POINT_Z_M
2. You need to use an OGR output format
3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info
Mike
--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
From: "Andrew.Parry at bentley.com" >
Date: Thursday, April 3, 2014 6:06 AM
To: "mapserver-users at lists.osgeo.org" >
Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Resent-From: Michael Smith >
Hi,
I?m looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source.
Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers).
Any suggestions welcome.
Regards,
Andrew
Andrew Parry | Software Engineer II
Bentley Systems (UK) Ltd
E-mail: andrew.parry at bentley.com | www.bentley.com
Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG
Registered in England No. 2957722
[cid:118510028E45B84FAB68232766D92809 at bentley.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 1.jpg
Type: image/jpeg
Size: 631 bytes
Desc: Picture (Device Independent Bitmap) 1.jpg
URL:
From Andrew.Parry at bentley.com Thu Apr 3 06:03:37 2014
From: Andrew.Parry at bentley.com (Andrew.Parry at bentley.com)
Date: Thu, 3 Apr 2014 13:03:37 +0000
Subject: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D
geometries
In-Reply-To:
References:
Message-ID: <975A94E9172C8140954C422A1B2E148940F405E2@extprdmbx03.bentley.com>
Mike,
Thank you very much for your reply. I will try it.
Andrew
From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil]
Sent: 03 April 2014 13:48
To: Andrew Parry; mapserver-users at lists.osgeo.org
Subject: Re: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Andrew,
This is possible. You do need to do several things.
1. Mapserver needs to be compiled with USE_POINT_Z_M
2. You need to use an OGR output format
3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info
Mike
--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
From: "Andrew.Parry at bentley.com" >
Date: Thursday, April 3, 2014 6:06 AM
To: "mapserver-users at lists.osgeo.org" >
Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Resent-From: Michael Smith >
Hi,
I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source.
Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers).
Any suggestions welcome.
Regards,
Andrew
Andrew Parry | Software Engineer II
Bentley Systems (UK) Ltd
E-mail: andrew.parry at bentley.com | www.bentley.com
Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG
Registered in England No. 2957722
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 631 bytes
Desc: image001.jpg
URL:
From umberto.nicoletti at gmail.com Thu Apr 3 06:21:22 2014
From: umberto.nicoletti at gmail.com (Umberto Nicoletti)
Date: Thu, 3 Apr 2014 15:21:22 +0200
Subject: [mapserver-users] tutorial for python mapscript
In-Reply-To:
References:
Message-ID:
I'm afraid the mapserver web site is down atm.
The page should still be there when it will come back ;-)
Meanwhile, this is a link to the copy in Google's cache:
http://webcache.googleusercontent.com/search?q=cache:vStf6-OEN3QJ:mapserver.org/mapscript/mapscript.html&hl=it&strip=1
BR,
Umberto
On Thu, Apr 3, 2014 at 2:44 PM, Lu?s de Sousa wrote:
>
> The API reference is documented here:
>
> http://www.mapserver.org/mapscript/mapscript.html
>
>
> This page seems to no longer exist. Is there an alternative? Thanks.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From richard.greenwood at gmail.com Thu Apr 3 07:33:17 2014
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Thu, 3 Apr 2014 08:33:17 -0600
Subject: [mapserver-users] JSON template dependencies
Message-ID:
I have two very similar computers. On one JSON templates work, the other
not. The not-working one displays "Malformed template name (dummy)" where
"dummy" is a non-existent file and the non-working version seems to ignore
the OUTPUTFORMAT block. For example I can put invalid parameters in the
block and they don't throw errors whereas on my working computer they do.
So I'm wondering if there are any dependencies at either compile or run
time that I'm missing. My working computer is Fedora with MapServer
installed from a repo, my non-working computer is Amazon Linux (at Redhat
derivative) with MapServer 6.0 and 6.2 built from source.
Thanks,
Rich
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gord.mckenzie at canam.com Thu Apr 3 09:22:08 2014
From: gord.mckenzie at canam.com (gom)
Date: Thu, 3 Apr 2014 09:22:08 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To: <1396468559314-5132723.post@n6.nabble.com>
References: <1396468559314-5132723.post@n6.nabble.com>
Message-ID: <1396542128466-5132918.post@n6.nabble.com>
Thanks for all the tips. I checked the logs and this is what I found.
The following 4 requests are sent to the server when AutoCAD connects to the
server. The 1st, 3rd and 4th requests all execute almost instantly when
pasted into the browser command line. The second statement runs for about
70 seconds and returns a
*Gateway Timeout*.
"The gateway did not receive a timely response from the upstream server or
application."
192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
/cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=256&WIDTH=154&TRANSPARENT=TRUE
HTTP/1.1" 200 113
192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
/cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
HTTP/1.1" 504 247
192.168.0.21 - - [03/Apr/2014:09:54:59 -0600] "GET
/cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=921&WIDTH=554&TRANSPARENT=TRUE
HTTP/1.1" 200 171
192.168.0.21 - - [03/Apr/2014:09:55:01 -0600] "GET
/cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=761&WIDTH=458&TRANSPARENT=TRUE
HTTP/1.1" 200 151
To fill out details asked by others.
I have tried AutoCAD Map on two different machines. Windows 7, 64 bit Map
2012 and 2014. Same results.
The server is Windows 2008 R2, 64 bit running latest Mapserver from
GISInternals on apache 2.4.7
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132918.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jukka.rahkonen at mmmtike.fi Thu Apr 3 10:00:52 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Thu, 3 Apr 2014 17:00:52 +0000
Subject: [mapserver-users] WMS Server Optimization?
Message-ID:
Hi,
AutoCAD is making funny requests: same BBOX but four different image size. Probably it is building a local cache from the maps for making zooming and panning fluent later, and perhaps it wants to fetch a high resolution image so that it can create better quality printouts. Anyway, the second and biggest request seems to timeout. You can of course increase the timeout of Apache server, but much better option is to make your service faster. Convert your images into tiled geotiffs with overviews and you will make both AutoCAD and users happy. Well, at least I guess so.
-Jukka Rahkonen-
gom wrote:
>
> Thanks for all the tips. I checked the logs and this is what I found.
>
> The following 4 requests are sent to the server when AutoCAD connects to the
> server. The 1st, 3rd and 4th requests all execute almost instantly when pasted
> into the browser command line. The second statement runs for about
> 70 seconds and returns a
>
> *Gateway Timeout*.
> "The gateway did not receive a timely response from the upstream server or
> application."
>
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET /cgi-
> bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=
> WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=
> &CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.0
> 00000&HEIGHT=256&WIDTH=154&TRANSPARENT=TRUE
> HTTP/1.1" 200 113
>
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET /cgi-
> bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=
> WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=
> &CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.0
> 00000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
> HTTP/1.1" 504 247
>
> 192.168.0.21 - - [03/Apr/2014:09:54:59 -0600] "GET /cgi-
> bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=
> WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=
> &CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.0
> 00000&HEIGHT=921&WIDTH=554&TRANSPARENT=TRUE
> HTTP/1.1" 200 171
>
> 192.168.0.21 - - [03/Apr/2014:09:55:01 -0600] "GET /cgi-
> bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=
> WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=
> &CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.0
> 00000&HEIGHT=761&WIDTH=458&TRANSPARENT=TRUE
> HTTP/1.1" 200 151
>
> To fill out details asked by others.
>
> I have tried AutoCAD Map on two different machines. Windows 7, 64 bit Map
> 2012 and 2014. Same results.
>
> The server is Windows 2008 R2, 64 bit running latest Mapserver from
> GISInternals on apache 2.4.7
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-
> Server-Optimization-tp5132723p5132918.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From gord.mckenzie at canam.com Thu Apr 3 11:28:05 2014
From: gord.mckenzie at canam.com (gom)
Date: Thu, 3 Apr 2014 11:28:05 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To:
References: <1396468559314-5132723.post@n6.nabble.com>
Message-ID: <1396549685714-5132949.post@n6.nabble.com>
Here is what I have done. I tweaked the extents of my Mapfile and now the
data is added to AutoCAD Map instantly. The changes are fairly small so it
doesn't seem logical that the change in total area is the culprit. Does
this suggest anything?
New Extents
496500.000 6237500.00 595000.000 6395500.000
Old Extents
496500.000 6234300.00 597000.000 6401200.000
Jukka, I understand the point about better formats but the images are what
they are. I have 20000+ 8 bit PNG images on the network and the format
works very well for other applications. The datasets expand all the time
and reprocessing everything is not a viable option right now.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132949.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From gord.mckenzie at canam.com Thu Apr 3 11:28:35 2014
From: gord.mckenzie at canam.com (gom)
Date: Thu, 3 Apr 2014 11:28:35 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To: <1396468559314-5132723.post@n6.nabble.com>
References: <1396468559314-5132723.post@n6.nabble.com>
Message-ID: <1396549715078-5132950.post@n6.nabble.com>
Here is what I have done. I tweaked the extents of my Mapfile and now the
data is added to AutoCAD Map instantly. The changes are fairly small so it
doesn't seem logical that the change in total area is the culprit. Does
this suggest anything?
New Extents
496500.000 6237500.00 595000.000 6395500.000
Old Extents
496500.000 6234300.00 597000.000 6401200.000
Jukka, I understand the point about better formats but the images are what
they are. I have 20000+ 8 bit PNG images on the network and the format
works very well for other applications. The datasets expand all the time
and reprocessing everything is not a viable option right now.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132950.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From aperi2007 at gmail.com Thu Apr 3 11:49:25 2014
From: aperi2007 at gmail.com (Andrea Peri)
Date: Thu, 3 Apr 2014 20:49:25 +0200
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To: <1396542128466-5132918.post@n6.nabble.com>
References: <1396468559314-5132723.post@n6.nabble.com>
<1396542128466-5132918.post@n6.nabble.com>
Message-ID:
Thi go in timeout:
192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
/cgi-bin/mapserv.exe?map=/
mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
HTTP/1.1" 504 247
set the mapfile to DEBUG 5
and set mapfile to write on a error_log file
after try to call it from a browser web.
And wait for response.
An option is that the mapserver is crashing or go in a loop.
After this you can try to read in the debug file if there is some
interesting information.
A.
2014-04-03 18:22 GMT+02:00 gom :
> Thanks for all the tips. I checked the logs and this is what I found.
>
> The following 4 requests are sent to the server when AutoCAD connects to
> the
> server. The 1st, 3rd and 4th requests all execute almost instantly when
> pasted into the browser command line. The second statement runs for about
> 70 seconds and returns a
>
> *Gateway Timeout*.
> "The gateway did not receive a timely response from the upstream server or
> application."
>
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>
> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=256&WIDTH=154&TRANSPARENT=TRUE
> HTTP/1.1" 200 113
>
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>
> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
> HTTP/1.1" 504 247
>
> 192.168.0.21 - - [03/Apr/2014:09:54:59 -0600] "GET
>
> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=921&WIDTH=554&TRANSPARENT=TRUE
> HTTP/1.1" 200 171
>
> 192.168.0.21 - - [03/Apr/2014:09:55:01 -0600] "GET
>
> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=761&WIDTH=458&TRANSPARENT=TRUE
> HTTP/1.1" 200 151
>
> To fill out details asked by others.
>
> I have tried AutoCAD Map on two different machines. Windows 7, 64 bit Map
> 2012 and 2014. Same results.
>
> The server is Windows 2008 R2, 64 bit running latest Mapserver from
> GISInternals on apache 2.4.7
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132918.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty ?????
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gord.mckenzie at canam.com Thu Apr 3 13:50:17 2014
From: gord.mckenzie at canam.com (gom)
Date: Thu, 3 Apr 2014 13:50:17 -0700 (PDT)
Subject: [mapserver-users] WMS Server Optimization?
In-Reply-To:
References: <1396468559314-5132723.post@n6.nabble.com>
<1396542128466-5132918.post@n6.nabble.com>
Message-ID: <1396558217850-5132975.post@n6.nabble.com>
This is what is in the ms_error.txt file when debug is turned on.
[Thu Apr 03 14:34:17 2014].276000 CGI Request 1 on process 8516
[Thu Apr 03 14:34:17 2014].276000 msWMSLoadGetMapParams(): enabling
non-square pixels.
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): kicking into non-square pixel
preserving mode.
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): rendering using outputformat
named png8 (AGG/PNG8).
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Apr 03 14:34:17 2014].292000 msDrawRasterLayerLow(proene01_2013-12-23):
entering.
[Thu Apr 03 14:37:12 2014].838000 msDrawMap(): Layer 0
(proene01_2013-12-23), 175.562s
[Thu Apr 03 14:37:12 2014].838000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Apr 03 14:37:12 2014].838000 msDrawMap() total time: 175.562s
[Thu Apr 03 14:38:12 2014].866000 msSaveImage(stdout) total time: 60.028s
[Thu Apr 03 14:38:12 2014].866000 mapserv request processing time (msLoadMap
not incl.): 235.590s
[Thu Apr 03 14:38:12 2014].866000 msFreeMap(): freeing map at
00000000004BD1C0.
Andrea Peri wrote
> Thi go in timeout:
>
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
> /cgi-bin/mapserv.exe?map=/
> mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
> HTTP/1.1" 504 247
>
> set the mapfile to DEBUG 5
> and set mapfile to write on a error_log file
> after try to call it from a browser web.
> And wait for response.
> An option is that the mapserver is crashing or go in a loop.
>
> After this you can try to read in the debug file if there is some
> interesting information.
>
> A.
>
>
>
> 2014-04-03 18:22 GMT+02:00 gom <
> gord.mckenzie@
> >:
>
>> Thanks for all the tips. I checked the logs and this is what I found.
>>
>> The following 4 requests are sent to the server when AutoCAD connects to
>> the
>> server. The 1st, 3rd and 4th requests all execute almost instantly when
>> pasted into the browser command line. The second statement runs for
>> about
>> 70 seconds and returns a
>>
>> *Gateway Timeout*.
>> "The gateway did not receive a timely response from the upstream server
>> or
>> application."
>>
>> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=256&WIDTH=154&TRANSPARENT=TRUE
>> HTTP/1.1" 200 113
>>
>> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
>> HTTP/1.1" 504 247
>>
>> 192.168.0.21 - - [03/Apr/2014:09:54:59 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=921&WIDTH=554&TRANSPARENT=TRUE
>> HTTP/1.1" 200 171
>>
>> 192.168.0.21 - - [03/Apr/2014:09:55:01 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=761&WIDTH=458&TRANSPARENT=TRUE
>> HTTP/1.1" 200 151
>>
>> To fill out details asked by others.
>>
>> I have tried AutoCAD Map on two different machines. Windows 7, 64 bit Map
>> 2012 and 2014. Same results.
>>
>> The server is Windows 2008 R2, 64 bit running latest Mapserver from
>> GISInternals on apache 2.4.7
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132918.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>>
> mapserver-users at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty ?????
> -----------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132975.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jukka.rahkonen at mmmtike.fi Thu Apr 3 14:22:33 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Thu, 3 Apr 2014 21:22:33 +0000
Subject: [mapserver-users] WMS Server Optimization?
Message-ID:
Hi,
You seem to use the name of the whole service "rastersample" in &layer=. That will mean that all layers on the service are requested. And then you control the 5 and 2 m layers by using min/maxgeowidth in layers.
I have never tried such configuration myself but probably it should work. However, it is a bit hard to understand what really happens.
Could you comment out the min/maxgeowidth lines and make AutoCAD to use direct calls to 5 m and 2 m layers? Or have you already done it? If maxgeowidth works then your request with a big BBOX (wider than 8 km) should never start rendering from the 2 m layer "2013-12-23".
More common way to do what you plan is to create a GROUP from 5 m and 2 m layers and control visibility with min/maxscaledenom. But I do not say that what you do is wrong, I have just never tried it.
-Jukka Rahkonen-
gom wrote:
> Here is what I have done. I tweaked the extents of my Mapfile and now the
> data is added to AutoCAD Map instantly. The changes are fairly small so it
> doesn't seem logical that the change in total area is the culprit. Does this
> suggest anything?
>
> New Extents
> 496500.000 6237500.00 595000.000 6395500.000
>
> Old Extents
> 496500.000 6234300.00 597000.000 6401200.000
>
> Jukka, I understand the point about better formats but the images are what they
> are. I have 20000+ 8 bit PNG images on the network and the format works very
> well for other applications. The datasets expand all the time and reprocessing
> everything is not a viable option right now.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-
> Server-Optimization-tp5132723p5132950.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From Stefan.Ziegler at bd.so.ch Thu Apr 3 23:50:10 2014
From: Stefan.Ziegler at bd.so.ch (Ziegler Stefan)
Date: Fri, 4 Apr 2014 06:50:10 +0000
Subject: [mapserver-users] mapcache wmts offset
Message-ID: <96EAE7D042AAC14486D68EC70207B0C1440D1943@srsofaioi16255.verw.rootso.org>
Hi
I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. It seems that I have exactly the same probleme as described here (using the same parameters/configuration):
http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.html
Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 3 [2]. I do not notice the offset accessing the wmts with QGIS. Any ideas what can be wrong configured etc?
[1]: http://www.catais.org/somap3/
[2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html
Zooming out will show a zoom level with an offset.
Regards
Stefan
Freundliche Gr?sse
Stefan Ziegler
Kantonsgeometer
Amt f?r Geoinformation
Amtliche Vermessung
R?tistrasse 4
4500 Solothurn
Telefon +41 32 627 75 96
Telefax +41 32 627 75 98
stefan.ziegler at bd.so.ch
http://www.so.ch
From thomas.bonfort at gmail.com Fri Apr 4 00:35:30 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 4 Apr 2014 09:35:30 +0200
Subject: [mapserver-users] mapcache wmts offset
In-Reply-To: <96EAE7D042AAC14486D68EC70207B0C1440D1943@srsofaioi16255.verw.rootso.org>
References: <96EAE7D042AAC14486D68EC70207B0C1440D1943@srsofaioi16255.verw.rootso.org>
Message-ID:
Hi,
mapcache by default aligns its tiles starting from the lower-left
corner whereas WMTS expects them to start from the upper-left. While
the generated capabilities doc correctly identifies this behavior,
most WMTS clients will not support this if they don't do the
capabilities parsing themselves. You have two workarounds:
- create a grid where maxY is constant throughout your chosen
resolutions (the google and wgs84 grids respect this convention)
- use a recentish mapcache that supports setting the grid origin
activated with .
In both cases, you will have to fully recompute your cache as the
addressing of the tiles will have been changed.
cheers,
thomas
On 4 April 2014 08:50, Ziegler Stefan wrote:
> Hi
>
> I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. It seems that I have exactly the same probleme as described here (using the same parameters/configuration):
>
> http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.html
>
> Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 3 [2]. I do not notice the offset accessing the wmts with QGIS. Any ideas what can be wrong configured etc?
>
> [1]: http://www.catais.org/somap3/
> [2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html
>
> Zooming out will show a zoom level with an offset.
>
> Regards
> Stefan
>
> Freundliche Gr?sse
> Stefan Ziegler
> Kantonsgeometer
>
> Amt f?r Geoinformation
> Amtliche Vermessung
> R?tistrasse 4
> 4500 Solothurn
>
> Telefon +41 32 627 75 96
> Telefax +41 32 627 75 98
> stefan.ziegler at bd.so.ch
> http://www.so.ch
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From dejan.gambin at coin.hr Fri Apr 4 04:07:41 2014
From: dejan.gambin at coin.hr (Dejan Gambin)
Date: Fri, 4 Apr 2014 13:07:41 +0200
Subject: [mapserver-users] Fwd: Wrong/different legend generation
In-Reply-To:
References: <80EF9353-1D0B-471A-8E0D-6D5964575DC5@coin.hr>,
<6840EBAD-9514-4CFE-AAAF-2AB875AA05F9@coin.hr>
Message-ID: <8A53E88F-F688-43BF-A33B-34E83CE748E6@coin.hr>
I believe I didn't send the answer to the list. So, yes it works in this case. Is it then a bug and should I report it?
On 31. o?u. 2014., at 23:53, Lime, Steve D (MNIT) wrote:
> What happens if you comment out the resolution value and use the default?
>
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin
> Sent: Monday, March 31, 2014 4:12 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Fwd: Wrong/different legend generation
>
> Here it is:
>
> Solid layer example:
>
> CLASS
> Name 'Golf, sport and recreation'
> EXPRESSION ('[namjena_oz]' eq 'R' OR '[namjena_oz]' eq 'R1' OR '[namjena_oz]' eq 'R2' OR '[namjena_oz]' eq 'Rt' OR '[namjena_oz]' eq 'PN+R' OR '[namjena_oz]' eq 'R2/R6')
> COLOR 0 255 0
> OUTLINECOLOR 0 0 0
> END
>
>
> Line layer example
>
> CLASS
> Name 'City'
> STYLE
> COLOR 250 0 0
> WIDTH 3
> END
> END
>
>
> But this all doesn't seem to be the problem as it happens on all possible layers. Decreasing font size helps in a way the legend text is smaller but it still "doesn't fit". Take a look on attached picture (font size 6 and 8, text is cut)
>
> I have resolution explicitly set to 96.
>
>
>
>
> On 30. o?u. 2014., at 19:06, Lime, Steve D (MNIT) wrote:
>
>
> Certainly looks like a bug but it would help to see the layer defs for one of the solid fills layers and one of the line layers. Are you setting map resolution explicitly? --Steve
>
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Dejan Gambin [dejan.gambin at coin.hr]
> Sent: Friday, March 28, 2014 5:10 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Fwd: Wrong/different legend generation
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jukka.rahkonen at mmmtike.fi Fri Apr 4 07:06:29 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Fri, 4 Apr 2014 14:06:29 +0000
Subject: [mapserver-users] [mapserver-dev] Postgis,
WFS and 3D coordinates
Message-ID:
Hi,
I wonder why nobody seems to remember that we have TinyOWS in the family too? I made a test layer for you, try it
http://hip.latuviitta.org/cgi-bin/tinyows?service=wfs&version=1.1.0&request=GetFeature&typename=lv:swamp_3d_test&maxFeatures=10
I CC:ed MapServer users list because this is something that might interest also users, not only developers.
-Jukka Rahkonen-
Guillaume Sueur wrote:
>
> Hi Thomas,
>
> Thanks for your concern.
> Do you mean I just have to use PROCESSING "FORCE2D=off" ?
> That's worth a pint of Guinness !
>
> Best regards
>
> Le 04/04/2014 14:21, thomas bonfort a ?crit :
> > Guillaume,
> > You have a bit of background here:
> > https://github.com/mapserver/mapserver/pull/4803
> >
> > On 4 April 2014 13:14, Guillaume Sueur wrote:
> >> Hi list,
> >>
> >> Using WFS against a Postgis layer made me realize that all the
> >> requests to Postgis were made with the ST_Force2D function, which
> >> makes it impossible to retrieve 3D coordinates on the client side.
> >> Can the use of ST_Force2D be avoided in case uf WFS ?
> >>
> >> Best regards
> >>
> >> Guillaume SUEUR
> >> _______________________________________________
> >> mapserver-dev mailing list
> >> mapserver-dev at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> >
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
From Stefan.Ziegler at bd.so.ch Fri Apr 4 07:43:42 2014
From: Stefan.Ziegler at bd.so.ch (Ziegler Stefan)
Date: Fri, 4 Apr 2014 14:43:42 +0000
Subject: [mapserver-users] mapcache wmts offset
In-Reply-To:
References: <96EAE7D042AAC14486D68EC70207B0C1440D1943@srsofaioi16255.verw.rootso.org>
Message-ID: <96EAE7D042AAC14486D68EC70207B0C1440D1BAA@srsofaioi16255.verw.rootso.org>
Hi Thomas
Thanks! Second workaround works perfect.
Regards
Stefan
> -----Urspr?ngliche Nachricht-----
> Von: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Gesendet: Freitag, 4. April 2014 09:36
> An: Ziegler Stefan
> Cc: mapserver-users at lists.osgeo.org
> Betreff: Re: [mapserver-users] mapcache wmts offset
>
> Hi,
> mapcache by default aligns its tiles starting from the lower-left corner whereas WMTS
> expects them to start from the upper-left. While the generated capabilities doc
> correctly identifies this behavior, most WMTS clients will not support this if they don't
> do the capabilities parsing themselves. You have two workarounds:
> - create a grid where maxY is constant throughout your chosen resolutions (the google
> and wgs84 grids respect this convention)
> - use a recentish mapcache that supports setting the grid origin activated with origin="top-left">.
>
> In both cases, you will have to fully recompute your cache as the addressing of the
> tiles will have been changed.
>
> cheers,
> thomas
>
> On 4 April 2014 08:50, Ziegler Stefan wrote:
> > Hi
> >
> > I have an offset with a mapcache WMTS for EPSG:21781 at certain zoom levels. It
> seems that I have exactly the same probleme as described here (using the same
> parameters/configuration):
> >
> > http://lists.osgeo.org/pipermail/mapserver-dev/2011-September/011586.h
> > tml
> >
> > Using Openlayers 2.10 [1] did not help and it's still present with OpenLayers 3 [2]. I
> do not notice the offset accessing the wmts with QGIS. Any ideas what can be wrong
> configured etc?
> >
> > [1]: http://www.catais.org/somap3/
> > [2]: http://www.catais.org/somap3/ol2-wmts/ol2-wmts.html
> >
> > Zooming out will show a zoom level with an offset.
> >
> > Regards
> > Stefan
> >
> > Freundliche Gr?sse
> > Stefan Ziegler
> > Kantonsgeometer
> >
> > Amt f?r Geoinformation
> > Amtliche Vermessung
> > R?tistrasse 4
> > 4500 Solothurn
> >
> > Telefon +41 32 627 75 96
> > Telefax +41 32 627 75 98
> > stefan.ziegler at bd.so.ch
> > http://www.so.ch
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
From lgnemmi at rgd73-74.fr Sat Apr 5 00:37:13 2014
From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi)
Date: Sat, 5 Apr 2014 00:37:13 -0700 (PDT)
Subject: [mapserver-users] Can't see any SVG Symbol with SVGCAIRO support
Message-ID: <1396683433938-5133260.post@n6.nabble.com>
Hi list,
I've been trying to build mapserver (6.4.1) with SVG Symbol support on
CentOS6. I did not succeded with libsrvg (too much dependency problem). So
I've built libsvg (0.1.4) and cairo-svg (0.1.6). exported those package
config paths. i've also installed Cairo 1.8.8 with a ditsrib package.
I succedded in building mapserver with SVGCAIRO support. But i can't see my
symbol :( I don't see anything in mapserver log file.
GetMap requets sometimes crash without any message in mapserver log file. i
only see something like this in my system message log file :
Apr 5 09:22:45 myserver abrtd: Executable '/var/www/cgi-bin/mapserv'
doesn't belong to any package and ProcessUnpackaged is set to 'no'
Apr 5 09:22:45 myserver abrtd: 'post-create' on
'/var/spool/abrt/ccpp-2014-04-05-09:22:45-2817' exited with 1
Apr 5 09:22:45 myserver abrtd: Deleting problem directory
'/var/spool/abrt/ccpp-2014-04-05-09:22:45-2817'
I really think that it is related to SVGCAIRO support but i don't know how
to correct this problem.
any help would be very welcome :/
Ludovic
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-see-any-SVG-Symbol-with-SVGCAIRO-support-tp5133260.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From ryan at allisonhouse.com Sun Apr 6 14:24:42 2014
From: ryan at allisonhouse.com (Ryan Hickman)
Date: Sun, 6 Apr 2014 15:24:42 -0600
Subject: [mapserver-users] GrADS GeoTiff + Mapserver
Message-ID:
I'm having a rather unique problem with displaying GeoTiffs using
Mapserver. When I generate my GeoTiffs using GrADS, I get solid colored
tiles when zoomed out.
http://d.pr/i/p57n
Higher zoom levels look just fine, for the most part. Unless I pan to the
Southern-fringe.
Yet when using GDAL to generate my GeoTiff, everything looks fine.
http://d.pr/i/m9l1
The mapfiles are exactly the same (except EXTENT, SIZE.) I am obviously
using COLORRANGE for my colors.
GDALInfo for GrADS GeoTiff:
Driver: GTiff/GeoTIFF
Files: TMP_2M_0.tif.save
Size is 4270, 2601
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-150.017168744489595,80.029519859090939)
Pixel Size = (0.024600100981457,-0.023088209090909)
Metadata:
TIFFTAG_SOFTWARE=GrADS version 2.1.a1
TIFFTAG_XRESOLUTION=0.0025761127
TIFFTAG_YRESOLUTION=0.0032679737
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-150.0171687, 80.0295199) (150d 1' 1.81"W, 80d 1'46.27"N)
Lower Left (-150.0171687, 19.9770880) (150d 1' 1.81"W, 19d58'37.52"N)
Upper Right ( -44.9747376, 80.0295199) ( 44d58'29.06"W, 80d 1'46.27"N)
Lower Right ( -44.9747376, 19.9770880) ( 44d58'29.06"W, 19d58'37.52"N)
Center ( -97.4959531, 50.0033039) ( 97d29'45.43"W, 50d 0'11.89"N)
Band 1 Block=4270x1 Type=Float64, ColorInterp=Gray
GDALInfo for GDAL-produced GeoTiff:
Driver: GTiff/GeoTIFF
Files: TMP_2M_0.tif.orig
Size is 2606, 1228
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-130.103386906477482,52.806959593909397)
Pixel Size = (0.026575739741210,-0.026575739741210)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-130.1033869, 52.8069596) (130d 6'12.19"W, 52d48'25.05"N)
Lower Left (-130.1033869, 20.1719512) (130d 6'12.19"W, 20d10'19.02"N)
Upper Right ( -60.8470091, 52.8069596) ( 60d50'49.23"W, 52d48'25.05"N)
Lower Right ( -60.8470091, 20.1719512) ( 60d50'49.23"W, 20d10'19.02"N)
Center ( -95.4751980, 36.4894554) ( 95d28'30.71"W, 36d29'22.04"N)
Band 1 Block=2606x1 Type=Float64, ColorInterp=Gray
NoData Value=-99999
I have tried running the GrADS-produced GeoTiff through 'gdalwarp' to
produce the same boundaries and CRS, as well as adding the NoData and
removing the TIFFTAG meta tags. None of these attempts have improved the
display.
The obvious question you might ask is, why not just use GDAL then?
Short answer: GrADS can create "derived products" from the GRIBs I am
processing much easier than I can with GDAL using gdal_translate, gdalwarp
and gdal_calc.py. I must use GrADS which will create a "control file" for
the metadata of my GRIBs, allowing the batch process itself to create my
derived products from a combination of "base products" (bands inside the
GRIB).
I welcome any and all feedback. Thanks for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ryan at allisonhouse.com Sun Apr 6 16:25:21 2014
From: ryan at allisonhouse.com (Ryan Hickman)
Date: Sun, 6 Apr 2014 17:25:21 -0600
Subject: [mapserver-users] GrADS GeoTiff + Mapserver
In-Reply-To:
References:
Message-ID:
I figured it out after two weeks.
[user at asdf rtma]$ gdallocationinfo TMP_2M_0.tif 50 50
Report:
Location: (50P,50L)
Band 1:
Value: -999000000
The NoData value was undeclared in the Metadata. A quick run through
'gdalwarp' with the '-srcnodata "-999000000"' flag fixed this.
On Sun, Apr 6, 2014 at 3:24 PM, Ryan Hickman wrote:
> I'm having a rather unique problem with displaying GeoTiffs using
> Mapserver. When I generate my GeoTiffs using GrADS, I get solid colored
> tiles when zoomed out.
>
> http://d.pr/i/p57n
>
> Higher zoom levels look just fine, for the most part. Unless I pan to the
> Southern-fringe.
>
> Yet when using GDAL to generate my GeoTiff, everything looks fine.
>
> http://d.pr/i/m9l1
>
> The mapfiles are exactly the same (except EXTENT, SIZE.) I am obviously
> using COLORRANGE for my colors.
>
> GDALInfo for GrADS GeoTiff:
> Driver: GTiff/GeoTIFF
> Files: TMP_2M_0.tif.save
> Size is 4270, 2601
>
> Coordinate System is:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4326"]]
> Origin = (-150.017168744489595,80.029519859090939)
> Pixel Size = (0.024600100981457,-0.023088209090909)
> Metadata:
> TIFFTAG_SOFTWARE=GrADS version 2.1.a1
> TIFFTAG_XRESOLUTION=0.0025761127
> TIFFTAG_YRESOLUTION=0.0032679737
> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
> AREA_OR_POINT=Area
> Image Structure Metadata:
> INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left (-150.0171687, 80.0295199) (150d 1' 1.81"W, 80d 1'46.27"N)
> Lower Left (-150.0171687, 19.9770880) (150d 1' 1.81"W, 19d58'37.52"N)
> Upper Right ( -44.9747376, 80.0295199) ( 44d58'29.06"W, 80d 1'46.27"N)
> Lower Right ( -44.9747376, 19.9770880) ( 44d58'29.06"W, 19d58'37.52"N)
> Center ( -97.4959531, 50.0033039) ( 97d29'45.43"W, 50d 0'11.89"N)
> Band 1 Block=4270x1 Type=Float64, ColorInterp=Gray
>
> GDALInfo for GDAL-produced GeoTiff:
> Driver: GTiff/GeoTIFF
> Files: TMP_2M_0.tif.orig
> Size is 2606, 1228
>
> Coordinate System is:
> GEOGCS["WGS 84",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433],
> AUTHORITY["EPSG","4326"]]
> Origin = (-130.103386906477482,52.806959593909397)
> Pixel Size = (0.026575739741210,-0.026575739741210)
> Metadata:
> AREA_OR_POINT=Area
> Image Structure Metadata:
> INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left (-130.1033869, 52.8069596) (130d 6'12.19"W, 52d48'25.05"N)
> Lower Left (-130.1033869, 20.1719512) (130d 6'12.19"W, 20d10'19.02"N)
> Upper Right ( -60.8470091, 52.8069596) ( 60d50'49.23"W, 52d48'25.05"N)
> Lower Right ( -60.8470091, 20.1719512) ( 60d50'49.23"W, 20d10'19.02"N)
> Center ( -95.4751980, 36.4894554) ( 95d28'30.71"W, 36d29'22.04"N)
> Band 1 Block=2606x1 Type=Float64, ColorInterp=Gray
> NoData Value=-99999
>
> I have tried running the GrADS-produced GeoTiff through 'gdalwarp' to
> produce the same boundaries and CRS, as well as adding the NoData and
> removing the TIFFTAG meta tags. None of these attempts have improved the
> display.
>
> The obvious question you might ask is, why not just use GDAL then?
> Short answer: GrADS can create "derived products" from the GRIBs I am
> processing much easier than I can with GDAL using gdal_translate, gdalwarp
> and gdal_calc.py. I must use GrADS which will create a "control file" for
> the metadata of my GRIBs, allowing the batch process itself to create my
> derived products from a combination of "base products" (bands inside the
> GRIB).
>
> I welcome any and all feedback. Thanks for your time.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From lgnemmi at rgd73-74.fr Mon Apr 7 09:02:11 2014
From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi)
Date: Mon, 7 Apr 2014 09:02:11 -0700 (PDT)
Subject: [mapserver-users] Can't see any SVG Symbol with SVGCAIRO support
In-Reply-To: <1396683433938-5133260.post@n6.nabble.com>
References: <1396683433938-5133260.post@n6.nabble.com>
Message-ID: <1396886531323-5133615.post@n6.nabble.com>
i finally found that this problem was depending on svg file type.
Some SVG files doesn't work with mapserver built with libsvg/libsvg-cairo.
IE svg files provided with Qgis.
These files cause assert (segmentation fault) => (freeSVGCache). The
renderer_cache come with a NULL svg handle.
I had to change all my SVG files. (With Inkscape : Save As PLAIN SVG file)
This problem doesn't occur with librsvg but only with libsvg/libsvg-cairo.
Ludovic
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-t-see-any-SVG-Symbol-with-SVGCAIRO-support-tp5133260p5133615.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From woodbri at swoodbridge.com Mon Apr 7 10:08:03 2014
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 07 Apr 2014 13:08:03 -0400
Subject: [mapserver-users] Can't see any SVG Symbol with SVGCAIRO support
In-Reply-To: <1396886531323-5133615.post@n6.nabble.com>
References: <1396683433938-5133260.post@n6.nabble.com>
<1396886531323-5133615.post@n6.nabble.com>
Message-ID: <5342DB73.20602@swoodbridge.com>
On 4/7/2014 12:02 PM, Ludovic Gnemmi wrote:
> i finally found that this problem was depending on svg file type.
>
> Some SVG files doesn't work with mapserver built with libsvg/libsvg-cairo.
> IE svg files provided with Qgis.
>
> These files cause assert (segmentation fault) => (freeSVGCache). The
> renderer_cache come with a NULL svg handle.
>
> I had to change all my SVG files. (With Inkscape : Save As PLAIN SVG file)
>
> This problem doesn't occur with librsvg but only with libsvg/libsvg-cairo.
Yes, this was a common problem when I original did a bunch of test with
Thomas. I was using a version of mapserv-6.1-dev in the original tests
and put together this test suite:
http://imaptools.com:8080/svg-test/
Most all of these SVG files would display correctly in mapserver.
I just put the test suite back up and based on:
MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
I looks like I'm seeing a lot more failures.
The trick was to flatten the SVG and save them a plain. Basically some
complex and nested symbols did not work and text objects needed to be
exploded to vectors.
I remember that there was some discussion about svg libraries and
licensing issues the impacted this but I forget the details.
Thomas - can you summarize the issues again?
Thanks,
-Steve W
From woodbri at swoodbridge.com Mon Apr 7 10:37:59 2014
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 07 Apr 2014 13:37:59 -0400
Subject: [mapserver-users] Can't see any SVG Symbol with SVGCAIRO support
In-Reply-To: <5342DB73.20602@swoodbridge.com>
References: <1396683433938-5133260.post@n6.nabble.com> <1396886531323-5133615.post@n6.nabble.com>
<5342DB73.20602@swoodbridge.com>
Message-ID: <5342E277.6040201@swoodbridge.com>
On 4/7/2014 1:08 PM, Stephen Woodbridge wrote:
> On 4/7/2014 12:02 PM, Ludovic Gnemmi wrote:
>> i finally found that this problem was depending on svg file type.
>>
>> Some SVG files doesn't work with mapserver built with
>> libsvg/libsvg-cairo.
>> IE svg files provided with Qgis.
>>
>> These files cause assert (segmentation fault) => (freeSVGCache). The
>> renderer_cache come with a NULL svg handle.
>>
>> I had to change all my SVG files. (With Inkscape : Save As PLAIN SVG
>> file)
>>
>> This problem doesn't occur with librsvg but only with
>> libsvg/libsvg-cairo.
>
> Yes, this was a common problem when I original did a bunch of test with
> Thomas. I was using a version of mapserv-6.1-dev in the original tests
> and put together this test suite:
>
> http://imaptools.com:8080/svg-test/
>
> Most all of these SVG files would display correctly in mapserver.
>
> I just put the test suite back up and based on:
>
> MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
> SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
> SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
>
> I looks like I'm seeing a lot more failures.
>
> The trick was to flatten the SVG and save them a plain. Basically some
> complex and nested symbols did not work and text objects needed to be
> exploded to vectors.
>
> I remember that there was some discussion about svg libraries and
> licensing issues the impacted this but I forget the details.
>
> Thomas - can you summarize the issues again?
Here is another test which adds another column for additional comparison:
http://imaptools.com:8080/svg-test/index-agg-svg.html
It looks like some of the paths have changes especially in the osm
scalable symbols. I probably need to regenerate the the html and
mapserver map files based on the current set of symbols to fix the
broken paths.
Let me know if you need this done and I will try to find some time to
fix the test suite.
Thanks,
-Steve
From traviskirstine at gmail.com Wed Apr 9 06:58:49 2014
From: traviskirstine at gmail.com (Travis Kirstine)
Date: Wed, 9 Apr 2014 09:58:49 -0400
Subject: [mapserver-users] mapcache groups
Message-ID:
Is there a way to configure tilesets into a group (like mapserver) in a WMS
service?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From james.evans.4 at us.af.mil Wed Apr 9 08:26:31 2014
From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE)
Date: Wed, 9 Apr 2014 15:26:31 +0000
Subject: [mapserver-users] mapcache groups
In-Reply-To:
References:
Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C5F9CE@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
I just did this using gdal minidrivers from my mapfile. It's slower than hitting a tile server, but it works. You can organize the tilesets into groups in your mapfile. Let me know if you would like more details on the setup.
James
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine
Sent: Wednesday, April 09, 2014 7:59 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] mapcache groups
Is there a way to configure tilesets into a group (like mapserver) in a WMS service?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From traviskirstine at gmail.com Wed Apr 9 08:39:22 2014
From: traviskirstine at gmail.com (Travis Kirstine)
Date: Wed, 9 Apr 2014 11:39:22 -0400
Subject: [mapserver-users] mapcache groups
In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C5F9CE@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
References:
<20EA793B1BC710448656BDC9BD25C4A104C5F9CE@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID:
I was hoping to hit MapCache directly. We have done something similar
using MapServer with a WMS connection to MapCache with multiple layers /
tilesets defined in the getmap request.
I was hoping for something like
diskgmapsmixeddiskgmapsmixed
Where a WMS getmap request could be made using the layer=AllLayers
On 9 April 2014 11:26, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE <
james.evans.4 at us.af.mil> wrote:
> I just did this using gdal minidrivers from my mapfile. It's slower
> than hitting a tile server, but it works. You can organize the tilesets
> into groups in your mapfile. Let me know if you would like more details on
> the setup.
>
> James
>
>
>
>
>
> *From:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Travis Kirstine
> *Sent:* Wednesday, April 09, 2014 7:59 AM
> *To:* mapserver-users at lists.osgeo.org
> *Subject:* [mapserver-users] mapcache groups
>
>
>
> Is there a way to configure tilesets into a group (like mapserver) in a
> WMS service?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kirandziskig at gmail.com Wed Apr 9 11:38:47 2014
From: kirandziskig at gmail.com (gorank)
Date: Wed, 9 Apr 2014 11:38:47 -0700 (PDT)
Subject: [mapserver-users] Exclude one layer's class from GetLegendGraphics
Message-ID: <1397068727604-5134193.post@n6.nabble.com>
Actually i have to questions:
1). I have mapfile with few layers. In one layer I have 5 classes with
expresions. When show legend with GetLegendGraphics always all 5 classes are
shown although one class is empty (for instance class expression is ([2011]
= 0) and in the shapefile attributes there is no value 0).
My question is how to exclude class from the legend. I tried with STATUS OFF
in the CLASS but do not work.
2). I use cyrilic font for polygon labels and for legend titles. When I put
class title with unicode and save mapfile as unicode, OpenLayers app show
empty map in the browser. When I put latin text and sava mapfile as ASCII
the same map is shown in the browser. What i am missing.
Example from the mapfile.
CLASS
NAME "klasa_1"
EXPRESSION ([2011] > 0 and [2011] < 5)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 255 255 128
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "4.9 or less"
END # CLASS
CLASS
NAME "klasa_2"
EXPRESSION ([2011] >= 5 and [2011] < 10)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 250 209 85
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "5.0 - 9.9"
END # CLASS
CLASS
NAME "klasa_3"
EXPRESSION ([2011] >=10 and [2011] < 15)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 242 167 46
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "10.0 - 14.9"
END # CLASS
CLASS
NAME "klasa_4"
EXPRESSION ([2011] >= 15 and [2011] < 20)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 173 83 19
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "15.0 - 19.9"
END # CLASS
CLASS
NAME "klasa_5"
EXPRESSION ([2011] >= 20 and [2011] < 10000)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 107 0 0
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "20 and more"
END # CLASS
CLASS
STATUS ON
NAME "klasa_0"
EXPRESSION ([2011] = 100000)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 100 100 100
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "no event"
END # CLASS
CLASS
STATUS OFF
NAME "klasa_00"
EXPRESSION ([2011] = 10000)
LABEL
FONT "arial"
SIZE 8
ENCODING "UTF-8"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 200 200 200
OUTLINECOLOR 130 130 130
WIDTH 0.5
END # STYLE
TITLE "no event1"
END # CLASS
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Exclude-one-layer-s-class-from-GetLegendGraphics-tp5134193.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From kirandziskig at gmail.com Wed Apr 9 22:57:08 2014
From: kirandziskig at gmail.com (gorank)
Date: Wed, 9 Apr 2014 22:57:08 -0700 (PDT)
Subject: [mapserver-users] Exclude one layer's class from
GetLegendGraphics
In-Reply-To: <1397068727604-5134193.post@n6.nabble.com>
References: <1397068727604-5134193.post@n6.nabble.com>
Message-ID: <1397109428062-5134261.post@n6.nabble.com>
Yes agree with you. I would like to exlude the last two classes with
expresion ([2011] = 10000) and ([2011] = 100000).
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Exclude-one-layer-s-class-from-GetLegendGraphics-tp5134193p5134261.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jukka.rahkonen at mmmtike.fi Wed Apr 9 23:13:47 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Thu, 10 Apr 2014 06:13:47 +0000
Subject: [mapserver-users] Exclude one layer's class from
GetLegendGraphics
Message-ID:
Hi,
For the first question I am remembering that only classes with NAME go to the legend. I may be wrong but you can try it easily.
-Jukka Rahkonen-
gorank wrote:
>
> Actually i have to questions:
>
> 1). I have mapfile with few layers. In one layer I have 5 classes with expresions.
> When show legend with GetLegendGraphics always all 5 classes are shown
> although one class is empty (for instance class expression is ([2011] = 0) and in
> the shapefile attributes there is no value 0).
>
> My question is how to exclude class from the legend. I tried with STATUS OFF in
> the CLASS but do not work.
>
> 2). I use cyrilic font for polygon labels and for legend titles. When I put class title
> with unicode and save mapfile as unicode, OpenLayers app show empty map in
> the browser. When I put latin text and sava mapfile as ASCII the same map is
> shown in the browser. What i am missing.
>
> Example from the mapfile.
> CLASS
> NAME "klasa_1"
> EXPRESSION ([2011] > 0 and [2011] < 5)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 255 255 128
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "4.9 or less"
> END # CLASS
> CLASS
> NAME "klasa_2"
> EXPRESSION ([2011] >= 5 and [2011] < 10)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 250 209 85
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "5.0 - 9.9"
> END # CLASS
> CLASS
> NAME "klasa_3"
> EXPRESSION ([2011] >=10 and [2011] < 15)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 242 167 46
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "10.0 - 14.9"
> END # CLASS
> CLASS
> NAME "klasa_4"
> EXPRESSION ([2011] >= 15 and [2011] < 20)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 173 83 19
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "15.0 - 19.9"
> END # CLASS
> CLASS
> NAME "klasa_5"
> EXPRESSION ([2011] >= 20 and [2011] < 10000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 107 0 0
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "20 and more"
> END # CLASS
> CLASS
> STATUS ON
> NAME "klasa_0"
> EXPRESSION ([2011] = 100000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 100 100 100
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "no event"
> END # CLASS
> CLASS
> STATUS OFF
> NAME "klasa_00"
> EXPRESSION ([2011] = 10000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 200 200 200
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "no event1"
> END # CLASS
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Exclude-
> one-layer-s-class-from-GetLegendGraphics-tp5134193.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From Steve.Toutant at inspq.qc.ca Thu Apr 10 06:55:32 2014
From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca)
Date: Thu, 10 Apr 2014 09:55:32 -0400
Subject: [mapserver-users] Exclude one layer's class from
GetLegendGraphics
In-Reply-To:
Message-ID:
Perhaps you could use
RULE - (Optional) Specify the name of the CLASS to generate the legend
image for (as opposed to generating an icon and label for ALL classes for
the layer).
http://mapserver.org/ogc/wms_server.html
Perhaps you can put several rule in the WMS call
I just realize that RULE is not included in the Mapserver CLASS doc
For your second question, encoding is still a mystery I'm trying to
understand....
"Rahkonen Jukka (Tike)" @lists.osgeo.org
Envoy? par : mapserver-users-bounces at lists.osgeo.org
2014-04-10 02:13
A
gorank , "mapserver-users at lists.osgeo.org"
cc
Objet
Re: [mapserver-users] Exclude one layer's class from GetLegendGraphics
Hi,
For the first question I am remembering that only classes with NAME go to
the legend. I may be wrong but you can try it easily.
-Jukka Rahkonen-
gorank wrote:
>
> Actually i have to questions:
>
> 1). I have mapfile with few layers. In one layer I have 5 classes with
expresions.
> When show legend with GetLegendGraphics always all 5 classes are shown
> although one class is empty (for instance class expression is ([2011] =
0) and in
> the shapefile attributes there is no value 0).
>
> My question is how to exclude class from the legend. I tried with STATUS
OFF in
> the CLASS but do not work.
>
> 2). I use cyrilic font for polygon labels and for legend titles. When I
put class title
> with unicode and save mapfile as unicode, OpenLayers app show empty map
in
> the browser. When I put latin text and sava mapfile as ASCII the same
map is
> shown in the browser. What i am missing.
>
> Example from the mapfile.
> CLASS
> NAME "klasa_1"
> EXPRESSION ([2011] > 0 and [2011] < 5)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 255 255 128
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "4.9 or less"
> END # CLASS
> CLASS
> NAME "klasa_2"
> EXPRESSION ([2011] >= 5 and [2011] < 10)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 250 209 85
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "5.0 - 9.9"
> END # CLASS
> CLASS
> NAME "klasa_3"
> EXPRESSION ([2011] >=10 and [2011] < 15)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 242 167 46
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "10.0 - 14.9"
> END # CLASS
> CLASS
> NAME "klasa_4"
> EXPRESSION ([2011] >= 15 and [2011] < 20)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 173 83 19
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "15.0 - 19.9"
> END # CLASS
> CLASS
> NAME "klasa_5"
> EXPRESSION ([2011] >= 20 and [2011] < 10000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 107 0 0
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "20 and more"
> END # CLASS
> CLASS
> STATUS ON
> NAME "klasa_0"
> EXPRESSION ([2011] = 100000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 100 100 100
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "no event"
> END # CLASS
> CLASS
> STATUS OFF
> NAME "klasa_00"
> EXPRESSION ([2011] = 10000)
> LABEL
> FONT "arial"
> SIZE 8
> ENCODING "UTF-8"
> OFFSET 0 0
> POSITION CC
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> END # LABEL
> STYLE
> COLOR 200 200 200
> OUTLINECOLOR 130 130 130
> WIDTH 0.5
> END # STYLE
> TITLE "no event1"
> END # CLASS
>
>
>
> --
> View this message in context:
http://osgeo-org.1560.x6.nabble.com/Exclude-
> one-layer-s-class-from-GetLegendGraphics-tp5134193.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kirandziskig at gmail.com Thu Apr 10 10:47:51 2014
From: kirandziskig at gmail.com (gorank)
Date: Thu, 10 Apr 2014 10:47:51 -0700 (PDT)
Subject: [mapserver-users] Exclude one layer's class from
GetLegendGraphics
In-Reply-To: <1397068727604-5134193.post@n6.nabble.com>
References: <1397068727604-5134193.post@n6.nabble.com>
Message-ID: <1397152071794-5134428.post@n6.nabble.com>
Thanks, it works. When I delete CLASS NAME and CLASS TITLE in the mapfile the
class is not shown in the legend. If I leave CLASS TITLE in the mapfile the
class is shown in the legend.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Exclude-one-layer-s-class-from-GetLegendGraphics-tp5134193p5134428.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From traffin at sirap.fr Fri Apr 11 03:53:51 2014
From: traffin at sirap.fr (tr)
Date: Fri, 11 Apr 2014 03:53:51 -0700 (PDT)
Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W
In-Reply-To: <531098AC.7070106@gatewaygeomatics.com>
References: <20EA793B1BC710448656BDC9BD25C4A104C40E64@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<36CA828A36E29F45B7CF0A1766E5DFA330E8A38A@swmail01.r8nssis.local>
<531098AC.7070106@gatewaygeomatics.com>
Message-ID: <1397213630983-5134562.post@n6.nabble.com>
Hi Jeff,
As each MS4W user I'm very interested by upgrading my install.
Have you got any news, please? (Maybe an ETA?)
Does the community edition will contain PHP Mapscript?
Are there official or public informations about custom builds conditions
please (I don't have response by contacting you or your organization
directly)?
Thanks for your work and the informations to come.
Thomas
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with-MS4W-tp5105669p5134562.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From James.Evans at hill.af.mil Fri Apr 11 20:05:06 2014
From: James.Evans at hill.af.mil (James_in_Utah)
Date: Fri, 11 Apr 2014 20:05:06 -0700 (PDT)
Subject: [mapserver-users] Migrating from MS4W to GISInternals
In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C5A6B7@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
References:
<20EA793B1BC710448656BDC9BD25C4A104C5A2E2@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A336@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A3A0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A437@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A6B7@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID: <1397271906035-5134687.post@n6.nabble.com>
In addition to the steps in the previous post, I also had to install PHP, and
the URL Rewrite Module from Microsoft to get the Mapserver back up to my
previous capabilities. Maybe these could be added to the install?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-tp5129224p5134687.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From james.evans.4 at us.af.mil Sun Apr 13 08:07:33 2014
From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE)
Date: Sun, 13 Apr 2014 15:07:33 +0000
Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W
In-Reply-To: <1397213630983-5134562.post@n6.nabble.com>
References: <20EA793B1BC710448656BDC9BD25C4A104C40E64@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<36CA828A36E29F45B7CF0A1766E5DFA330E8A38A@swmail01.r8nssis.local>
<531098AC.7070106@gatewaygeomatics.com>,
<1397213630983-5134562.post@n6.nabble.com>
Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Hi Thomas,
I was forced to remove MS4W from our servers due to security vulnerabilities in Apache and PHP. I was able to get the GISInternals build working under IIS 7. It required a little more effort to get going, but so far it seems to be working. Here are the steps I had to follow to get it going:
Turn on IIS6 Compatibility Mode
Turn on CGI and ASP.Net in IIS
Edit ISAPI and CGI Restrictions
Check the box to allow Unspecified CGI Modules and to allow Unspecified ISAPI modules
Look in the binary zip file and copy the following dlls to the Mapserver directory
Hdf5.dll
Hdf5_hl.dll
Hdfdll.dll
Geos.dll
Szip.dll
Openjp2.dll
Then, I had to add this to my map file:
CONFIG PROJ_LIB "C:\Program Files\MapServer\projlib"
CONFIG GDAL_DATA "C:\Program Files\MapServer\gdal-data"
Or you could just set environment variables for each.
I also had to download and install PHP, and the Microsoft URL Rewrite module for IIS7. After that, I seem to be back to the same capability I had previously.
James
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of tr [traffin at sirap.fr]
Sent: Friday, April 11, 2014 4:53 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Upgrading Apache and PHP that came with MS4W
Hi Jeff,
As each MS4W user I'm very interested by upgrading my install.
Have you got any news, please? (Maybe an ETA?)
Does the community edition will contain PHP Mapscript?
Are there official or public informations about custom builds conditions
please (I don't have response by contacting you or your organization
directly)?
Thanks for your work and the informations to come.
Thomas
From szekerest at gmail.com Sun Apr 13 13:26:08 2014
From: szekerest at gmail.com (Tamas Szekeres)
Date: Sun, 13 Apr 2014 22:26:08 +0200
Subject: [mapserver-users] Migrating from MS4W to GISInternals
In-Reply-To: <1397271906035-5134687.post@n6.nabble.com>
References:
<20EA793B1BC710448656BDC9BD25C4A104C5A2E2@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A336@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A3A0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A437@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<20EA793B1BC710448656BDC9BD25C4A104C5A6B7@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<1397271906035-5134687.post@n6.nabble.com>
Message-ID:
James,
I can fix the installer including the missing dll-s and adding php
mapscript. But I'm not sure the IIS related modules can be controlled by
the installer. I'll investigate the possible options however.
Best regards,
Tamas
2014-04-12 5:05 GMT+02:00 James_in_Utah :
> In addition to the steps in the previous post, I also had to install PHP,
> and
> the URL Rewrite Module from Microsoft to get the Mapserver back up to my
> previous capabilities. Maybe these could be added to the install?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-tp5129224p5134687.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From traffin at sirap.fr Mon Apr 14 09:52:15 2014
From: traffin at sirap.fr (tr)
Date: Mon, 14 Apr 2014 09:52:15 -0700 (PDT)
Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W
In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
References: <20EA793B1BC710448656BDC9BD25C4A104C40E64@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<36CA828A36E29F45B7CF0A1766E5DFA330E8A38A@swmail01.r8nssis.local>
<531098AC.7070106@gatewaygeomatics.com>
<1397213630983-5134562.post@n6.nabble.com>
<20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID: <1397494335805-5134987.post@n6.nabble.com>
Hi James,
Thanks for your reply. Why did you choose to migrate from MS4W to IIS +
GisInternals build, and not to Apache + GisInternals builds?
Are you using PHP/MapScript?
Thomas
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with-MS4W-tp5105669p5134987.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From james.evans.4 at us.af.mil Mon Apr 14 10:07:44 2014
From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE)
Date: Mon, 14 Apr 2014 17:07:44 +0000
Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W
In-Reply-To:
References: <20EA793B1BC710448656BDC9BD25C4A104C40E64@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<36CA828A36E29F45B7CF0A1766E5DFA330E8A38A@swmail01.r8nssis.local>
<531098AC.7070106@gatewaygeomatics.com>,
<1397213630983-5134562.post@n6.nabble.com>
<20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C609A2@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Our servers already had IIS running, and I would have to justify running Apache under our new accreditation. I probably would prefer to go with Apache, but it was easier to go with IIS.
James
-----Original Message-----
From: Thomas Raffin [mailto:traffin at sirap.fr]
Sent: Monday, April 14, 2014 11:03 AM
To: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] Upgrading Apache and PHP that came with MS4W
Hi James,
Thanks for your reply. Why did you choose to migrate from MS4W to IIS + GisInternals build, and not to Apache + GisInternals builds?
Are you using PHP/MapScript?
Thomas
-----Original Message-----
From: "EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE"
To: tr , "mapserver-users at lists.osgeo.org"
Date: Sun, 13 Apr 2014 15:07:33 +0000
Subject: RE: [mapserver-users] Upgrading Apache and PHP that came with MS4W
> Hi Thomas,
> I was forced to remove MS4W from our servers due to security
> vulnerabilities in Apache and PHP. I was able to get the GISInternals
> build working under IIS 7. It required a little more effort to get
> going, but so far it seems to be working. Here are the steps I had to
> follow to get it going:
>
> Turn on IIS6 Compatibility Mode
> Turn on CGI and ASP.Net in IIS
> Edit ISAPI and CGI Restrictions
> Check the box to allow Unspecified CGI Modules and to allow
> Unspecified ISAPI modules Look in the binary zip file and copy the
> following dlls to the Mapserver directory
> Hdf5.dll
> Hdf5_hl.dll
> Hdfdll.dll
> Geos.dll
> Szip.dll
> Openjp2.dll
>
> Then, I had to add this to my map file:
> CONFIG PROJ_LIB "C:\Program Files\MapServer\projlib"
> CONFIG GDAL_DATA "C:\Program Files\MapServer\gdal-data"
> Or you could just set environment variables for each.
>
> I also had to download and install PHP, and the Microsoft URL Rewrite
> module for IIS7. After that, I seem to be back to the same capability
> I had previously.
> James
>
>
>
>
>
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org
> [mapserver-users-bounces at lists.osgeo.org] on behalf of tr
> [traffin at sirap.fr]
> Sent: Friday, April 11, 2014 4:53 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Upgrading Apache and PHP that came with
> MS4W
>
> Hi Jeff,
>
> As each MS4W user I'm very interested by upgrading my install.
>
> Have you got any news, please? (Maybe an ETA?)
>
> Does the community edition will contain PHP Mapscript?
>
> Are there official or public informations about custom builds
> conditions please (I don't have response by contacting you or your
> organization directly)?
>
> Thanks for your work and the informations to come.
>
> Thomas
>
>
From traffin at sirap.fr Mon Apr 14 10:03:00 2014
From: traffin at sirap.fr (Thomas Raffin)
Date: Mon, 14 Apr 2014 19:03:00 +0200
Subject: [mapserver-users] Upgrading Apache and PHP that came with MS4W
In-Reply-To: <20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
References: <20EA793B1BC710448656BDC9BD25C4A104C40E64@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
<36CA828A36E29F45B7CF0A1766E5DFA330E8A38A@swmail01.r8nssis.local>
<531098AC.7070106@gatewaygeomatics.com>,
<1397213630983-5134562.post@n6.nabble.com>
<20EA793B1BC710448656BDC9BD25C4A104C60767@52ZHTX-D07-04D.area52.afnoapps.usaf.mil>
Message-ID:
Hi James,
Thanks for your reply. Why did you choose to migrate from MS4W to IIS +
GisInternals build, and not to Apache + GisInternals builds?
Are you using PHP/MapScript?
Thomas
-----Original Message-----
From: "EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE"
To: tr , "mapserver-users at lists.osgeo.org"
Date: Sun, 13 Apr 2014 15:07:33 +0000
Subject: RE: [mapserver-users] Upgrading Apache and PHP that came with MS4W
> Hi Thomas,
> I was forced to remove MS4W from our servers due to security
> vulnerabilities in Apache and PHP. I was able to get the GISInternals
> build working under IIS 7. It required a little more effort to get
> going, but so far it seems to be working. Here are the steps I had to
> follow to get it going:
>
> Turn on IIS6 Compatibility Mode
> Turn on CGI and ASP.Net in IIS
> Edit ISAPI and CGI Restrictions
> Check the box to allow Unspecified CGI Modules and to allow
> Unspecified ISAPI modules
> Look in the binary zip file and copy the following dlls to the
> Mapserver directory
> Hdf5.dll
> Hdf5_hl.dll
> Hdfdll.dll
> Geos.dll
> Szip.dll
> Openjp2.dll
>
> Then, I had to add this to my map file:
> CONFIG PROJ_LIB "C:\Program Files\MapServer\projlib"
> CONFIG GDAL_DATA "C:\Program Files\MapServer\gdal-data"
> Or you could just set environment variables for each.
>
> I also had to download and install PHP, and the Microsoft URL Rewrite
> module for IIS7. After that, I seem to be back to the same capability
> I had previously.
> James
>
>
>
>
>
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org
> [mapserver-users-bounces at lists.osgeo.org] on behalf of tr
> [traffin at sirap.fr]
> Sent: Friday, April 11, 2014 4:53 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Upgrading Apache and PHP that came with
> MS4W
>
> Hi Jeff,
>
> As each MS4W user I'm very interested by upgrading my install.
>
> Have you got any news, please? (Maybe an ETA?)
>
> Does the community edition will contain PHP Mapscript?
>
> Are there official or public informations about custom builds
> conditions
> please (I don't have response by contacting you or your organization
> directly)?
>
> Thanks for your work and the informations to come.
>
> Thomas
>
>
From support at satshot.com Mon Apr 14 14:24:38 2014
From: support at satshot.com (Avi Blackmore)
Date: Mon, 14 Apr 2014 16:24:38 -0500
Subject: [mapserver-users] Paletted GeoTIFF output in 6.4 not working?
Message-ID: <8E4BBD99-5C81-4904-ADCC-50373F76F5E7@satshot.com>
Hello,
I've been using Mapserver to (among many other things) classify rasters for years. I would output GeoTIFFs in 8-bit, paletted mode using a custom output format definition, which I defined as follows:
OUTPUTFORMAT
NAME "GTiff2"
MIMETYPE "image/tiff"
DRIVER "GDAL/GTiff"
EXTENSION "tif"
IMAGEMODE "PC256"
TRANSPARENT FALSE
END
This worked for years with versions of Mapserver ranging from 4.4 up to 5.6.
Recently, I decided to test an upgrade to 6.4, and I have found that this no longer works. The imagemode declaration is ignored and coerced back to RGB mode, which is unsuitable for our purposes.
What is the proper way to get Mapserver to output 8-bit palletted GeoTIFFs using raster classification in 6.4? Or, is this no longer possible? I hope not, because I really want to use 6.4 in production, it has some great new features.
--
Avi Blackmore
Head Programmer/System Administrator
Agri ImaGIS Technologies, Inc.
From woodbri at swoodbridge.com Mon Apr 14 14:44:59 2014
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 14 Apr 2014 17:44:59 -0400
Subject: [mapserver-users] Paletted GeoTIFF output in 6.4 not working?
In-Reply-To: <8E4BBD99-5C81-4904-ADCC-50373F76F5E7@satshot.com>
References: <8E4BBD99-5C81-4904-ADCC-50373F76F5E7@satshot.com>
Message-ID: <534C56DB.20407@swoodbridge.com>
I'm not sure if this will work but give it a try. You might have to wait
for Thomas to response as he would know for sure.
OUTPUTFORMAT
NAME "GTiff"
DRIVER GDAL/GTiff
MIMETYPE "image/tiff"
IMAGEMODE RGB
EXTENSION "tif"
FORMATOPTION "INTERLACE=false"
FORMATOPTION "QUANTIZE_NEW=ON"
FORMATOPTION "QUANTIZE_FORCE=ON"
FORMATOPTION "QUANTIZE_DITHER=OFF"
FORMATOPTION "QUANTIZE_COLORS=256"
END
Also look at http://mapserver.org/mapfile/outputformat.html#outputformat
there are FORMATOPTIONs specific to GDAL/GTiff and GDAl/* that can be
passed to GDAL when the image is output.
-Steve W
On 4/14/2014 5:24 PM, Avi Blackmore wrote:
> Hello,
>
> I've been using Mapserver to (among many other things) classify rasters for years. I would output GeoTIFFs in 8-bit, paletted mode using a custom output format definition, which I defined as follows:
>
> OUTPUTFORMAT
> NAME "GTiff2"
> MIMETYPE "image/tiff"
> DRIVER "GDAL/GTiff"
> EXTENSION "tif"
> IMAGEMODE "PC256"
> TRANSPARENT FALSE
> END
>
> This worked for years with versions of Mapserver ranging from 4.4 up to 5.6.
>
> Recently, I decided to test an upgrade to 6.4, and I have found that this no longer works. The imagemode declaration is ignored and coerced back to RGB mode, which is unsuitable for our purposes.
>
> What is the proper way to get Mapserver to output 8-bit palletted GeoTIFFs using raster classification in 6.4? Or, is this no longer possible? I hope not, because I really want to use 6.4 in production, it has some great new features.
> --
> Avi Blackmore
> Head Programmer/System Administrator
> Agri ImaGIS Technologies, Inc.
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Mon Apr 14 23:56:26 2014
From: d.robins at gisarts.nl (drobins)
Date: Mon, 14 Apr 2014 23:56:26 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection
Message-ID: <1397544986926-5135064.post@n6.nabble.com>
Hello,
I am loading a point LAYER in mapserver which requests data from a
geometrycollection table from my PostGIS database.
The table has point, line and polygon objects.
Whenever I enable my point layer, it also displays all nodes from the lines
and polygons.
When loading the same table into QGIS, these nodes don't show.
I am using Mapserver version 6.4.1 and PostgreSQL version 9.1.12
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Tue Apr 15 00:30:47 2014
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Tue, 15 Apr 2014 09:30:47 +0200
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <1397544986926-5135064.post@n6.nabble.com>
References: <1397544986926-5135064.post@n6.nabble.com>
Message-ID: <534CE027.8030406@mapmedia.de>
Hello,
correct. MapServer does not check the geometry-type, you can visualize a
polygon-layer as points showing the vertices for example.
If you only want to show the points of your geometry-colletcion, you
have to select the points of your geometry only:
select ST_CollectionExtract(geom, 1) as geom ...
Regards, J?rg
Am 15.04.2014 08:56, schrieb drobins:
> Hello,
>
> I am loading a point LAYER in mapserver which requests data from a
> geometrycollection table from my PostGIS database.
> The table has point, line and polygon objects.
>
> Whenever I enable my point layer, it also displays all nodes from the lines
> and polygons.
> When loading the same table into QGIS, these nodes don't show.
>
> I am using Mapserver version 6.4.1 and PostgreSQL version 9.1.12
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Tue Apr 15 01:22:14 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 01:22:14 -0700 (PDT)
Subject: [mapserver-users] No GetLegendGraphic from RASTER?
Message-ID: <1397550134732-5135081.post@n6.nabble.com>
Hello,
When I load RASTER layers on my map, no icons will show for these layers in
the dynamic legend.
I have tried using the KEYIMAGE to display a legendicon for these layers but
unfortunately does not seem to work.
When I use KEYIMAGE for a VECTOR layer, it works fine.
It appears to me this might be a bug? Has anyone else experienced this or
knows how to fix it?
Thanks.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Tue Apr 15 01:37:15 2014
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Tue, 15 Apr 2014 10:37:15 +0200
Subject: [mapserver-users] No GetLegendGraphic from RASTER?
In-Reply-To: <1397550134732-5135081.post@n6.nabble.com>
References: <1397550134732-5135081.post@n6.nabble.com>
Message-ID: <534CEFBB.90902@mapmedia.de>
Hi again,
do you use have a class-section within your raster-layer? KEYIMAGE
should be placed there. Usually it's an 'empty' class, you only need a
name and the key image.
J?rg
Am 15.04.2014 10:22, schrieb drobins:
> Hello,
>
> When I load RASTER layers on my map, no icons will show for these layers in
> the dynamic legend.
> I have tried using the KEYIMAGE to display a legendicon for these layers but
> unfortunately does not seem to work.
> When I use KEYIMAGE for a VECTOR layer, it works fine.
>
> It appears to me this might be a bug? Has anyone else experienced this or
> knows how to fix it?
>
> Thanks.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Tue Apr 15 02:02:33 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 02:02:33 -0700 (PDT)
Subject: [mapserver-users] No GetLegendGraphic from RASTER?
In-Reply-To: <534CEFBB.90902@mapmedia.de>
References: <1397550134732-5135081.post@n6.nabble.com>
<534CEFBB.90902@mapmedia.de>
Message-ID: <1397552553571-5135085.post@n6.nabble.com>
Hi J?rg,
Yes I added it to an empty class-section:
CLASS
NAME '2013'
KEYIMAGE "/var/www/apps/gisportalen/shared/keyimage/luchtfoto.png"
END
When I use the same image on a vector layer it displays but with a raster
layer it doesn't show.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081p5135085.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Tue Apr 15 02:49:15 2014
From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=)
Date: Tue, 15 Apr 2014 11:49:15 +0200
Subject: [mapserver-users] No GetLegendGraphic from RASTER?
In-Reply-To: <1397552553571-5135085.post@n6.nabble.com>
References: <1397550134732-5135081.post@n6.nabble.com> <534CEFBB.90902@mapmedia.de>
<1397552553571-5135085.post@n6.nabble.com>
Message-ID: <534D009B.20005@mapmedia.de>
should work, sorry, perhaps anyone else has an idea?
J?rg
Am 15.04.2014 11:02, schrieb drobins:
> Hi J?rg,
>
> Yes I added it to an empty class-section:
> CLASS
> NAME '2013'
> KEYIMAGE "/var/www/apps/gisportalen/shared/keyimage/luchtfoto.png"
> END
>
> When I use the same image on a vector layer it displays but with a raster
> layer it doesn't show.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/No-GetLegendGraphic-from-RASTER-tp5135081p5135085.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Tue Apr 15 04:24:26 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 04:24:26 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <534CE027.8030406@mapmedia.de>
References: <1397544986926-5135064.post@n6.nabble.com>
<534CE027.8030406@mapmedia.de>
Message-ID: <1397561066264-5135112.post@n6.nabble.com>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135112.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From d.robins at gisarts.nl Tue Apr 15 04:28:09 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 04:28:09 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <534CE027.8030406@mapmedia.de>
References: <1397544986926-5135064.post@n6.nabble.com>
<534CE027.8030406@mapmedia.de>
Message-ID: <1397561289303-5135113.post@n6.nabble.com>
Hello J?rg,
I have tried to get the correct # of points in my query but it keeps
returning me more than I have.
There are 293 points in my table, yet the query shows 779 which also appear
on my map.
The 293 are the ones I want, the others seem to be the nodes from the
polygons and/or lines. Is there a way to exclude these?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135113.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Tue Apr 15 04:36:24 2014
From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=)
Date: Tue, 15 Apr 2014 13:36:24 +0200
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <1397561289303-5135113.post@n6.nabble.com>
References: <1397544986926-5135064.post@n6.nabble.com> <534CE027.8030406@mapmedia.de>
<1397561289303-5135113.post@n6.nabble.com>
Message-ID: <534D19B8.3010500@mapmedia.de>
Am 15.04.2014 13:28, schrieb drobins:
> Hello J?rg,
>
> I have tried to get the correct # of points in my query but it keeps
> returning me more than I have.
> There are 293 points in my table, yet the query shows 779 which also appear
> on my map.
> The 293 are the ones I want, the others seem to be the nodes from the
> polygons and/or lines. Is there a way to exclude these?
I am not sure what you are doing, in
select ST_CollectionExtract(geom, 1) as geom ...
the '1' is for poin-geomtries, (2 -> lines 3 -> polygons)
J?rg
From d.robins at gisarts.nl Tue Apr 15 04:50:05 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 04:50:05 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <534D19B8.3010500@mapmedia.de>
References: <1397544986926-5135064.post@n6.nabble.com>
<534CE027.8030406@mapmedia.de>
<1397561289303-5135113.post@n6.nabble.com>
<534D19B8.3010500@mapmedia.de>
Message-ID: <1397562605235-5135121.post@n6.nabble.com>
Let my add a screenshot from my problem
I have 2 layers enabled in my map: a point layer and a line layer.
The line layer works correct.
The point layer shows points that are not in my source data (shape file
which I inserted into postgis).
At every end of a line, somehow a point is added, which isn't in my source
data.
When I load the same area in QGIS, these points do not appear.
I hope this makes my problem more clear.
Thanks
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135121.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Tue Apr 15 07:20:19 2014
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Tue, 15 Apr 2014 16:20:19 +0200
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <1397562605235-5135121.post@n6.nabble.com>
References: <1397544986926-5135064.post@n6.nabble.com> <534CE027.8030406@mapmedia.de> <1397561289303-5135113.post@n6.nabble.com> <534D19B8.3010500@mapmedia.de>
<1397562605235-5135121.post@n6.nabble.com>
Message-ID: <534D4023.6030103@mapmedia.de>
hm..
- lines and points are stored in the same table you said?
- do you get the correct result if you do the data-query in postgis /
pgadmin?
- what happens if you use your point-shape-file as data-source in mapserver?
- if you only request the line-layer the points don't appear?
- could you post the whole mapfile?
J?rg
Am 15.04.2014 13:50, schrieb drobins:
> Let my add a screenshot from my problem
>
>
> I have 2 layers enabled in my map: a point layer and a line layer.
> The line layer works correct.
> The point layer shows points that are not in my source data (shape file
> which I inserted into postgis).
> At every end of a line, somehow a point is added, which isn't in my source
> data.
>
> When I load the same area in QGIS, these points do not appear.
>
> I hope this makes my problem more clear.
>
> Thanks
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135121.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Tue Apr 15 23:40:48 2014
From: d.robins at gisarts.nl (drobins)
Date: Tue, 15 Apr 2014 23:40:48 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <534D4023.6030103@mapmedia.de>
References: <1397544986926-5135064.post@n6.nabble.com>
<534CE027.8030406@mapmedia.de>
<1397561289303-5135113.post@n6.nabble.com>
<534D19B8.3010500@mapmedia.de>
<1397562605235-5135121.post@n6.nabble.com>
<534D4023.6030103@mapmedia.de>
Message-ID: <1397630448414-5135307.post@n6.nabble.com>
Hi J?rg,
I have lines, points and polygons stored in my table. The table has various
columns, one which I filter the elements on (element_type).
One of those elements is a "Voorziening", but Voorziening has points, lines
and polygon objects.
My LINE layer works fine. It only displays the lines on filter element_type
= Voorziening
My POLYGON layer works fine. It only displays the polygons on filter
element_type = Voorziening
However, my POINT layer does display the specific point objects, but also
all nodes on the line/polygon objects with element_type = Voorziening
When I set DEBUG 5 on the point layer and execute that query from the log
file into pgadmin, it only displays one result.
One thing I tried last night is to use 2 filters; one for the main
element_type and another that described the object -> objective. I was able
to filter out most of these extra points that way. Unfortunately, objective
also has point and line objects with the same name, so in a few cases I
still see the extra points.
Added the mapfile via "Upload a file", hope it adds correctly
The layer that's problematic is called
NAME "elements_voorzieningpoint"
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135307.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From jt at mapmedia.de Wed Apr 16 00:55:48 2014
From: jt at mapmedia.de (=?UTF-8?B?SsO2cmcgVGhvbXNlbg==?=)
Date: Wed, 16 Apr 2014 09:55:48 +0200
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <1397630448414-5135307.post@n6.nabble.com>
References: <1397544986926-5135064.post@n6.nabble.com> <534CE027.8030406@mapmedia.de> <1397561289303-5135113.post@n6.nabble.com> <534D19B8.3010500@mapmedia.de> <1397562605235-5135121.post@n6.nabble.com> <534D4023.6030103@mapmedia.de>
<1397630448414-5135307.post@n6.nabble.com>
Message-ID: <534E3784.3090903@mapmedia.de>
moin,
I don't see anything, that could cause the problem. Your architecture is
hard to understand without knowing the whole structure, viewing the
reuslts and access to the database. In my mapserver and postgis
trainings I'm always telling the participants you *can* mix
geometry-types and in in most cases it works....
So I would suggest to break it down to little pieces and rebuild your
WMS step by step:
- create a wms with only the problematic layer
- use the shape-file as data source
- import the shape-file to an new table with only the point-geometries
- ....
it's not a lot of fun, but at any step the behaviour will switch from
right to wrong (or wrong to right) and at this point point it will be
much easier to find the problem. Certainly you may post to the list
again and I am sure many of us want to know the solution. So when it
works don't forget the list :)
J?rg
Am 16.04.2014 08:40, schrieb drobins:
> Hi J?rg,
>
> I have lines, points and polygons stored in my table. The table has various
> columns, one which I filter the elements on (element_type).
> One of those elements is a "Voorziening", but Voorziening has points, lines
> and polygon objects.
>
> My LINE layer works fine. It only displays the lines on filter element_type
> = Voorziening
> My POLYGON layer works fine. It only displays the polygons on filter
> element_type = Voorziening
> However, my POINT layer does display the specific point objects, but also
> all nodes on the line/polygon objects with element_type = Voorziening
>
> When I set DEBUG 5 on the point layer and execute that query from the log
> file into pgadmin, it only displays one result.
>
> One thing I tried last night is to use 2 filters; one for the main
> element_type and another that described the object -> objective. I was able
> to filter out most of these extra points that way. Unfortunately, objective
> also has point and line objects with the same name, so in a few cases I
> still see the extra points.
>
>
> Added the mapfile via "Upload a file", hope it adds correctly
> The layer that's problematic is called
> NAME "elements_voorzieningpoint"
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135307.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From yves.jacolin at camptocamp.com Wed Apr 16 01:08:02 2014
From: yves.jacolin at camptocamp.com (Yves Jacolin)
Date: Wed, 16 Apr 2014 10:08:02 +0200
Subject: [mapserver-users] How to help translating MS documentation
Message-ID:
Hello,
I wrote a few weeks ago a short how to in the MS doc to give some info to
help translating via transifex.
This howto has currently no reference in any toc of the doc, so it still an
hidden and secret page ;)
Here it is: http://mapserver.org/development/translation.html
Any feedback is welcome (english proof reading very welcome).
Thanks,
Y.
--
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : 021 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gislars+list at googlemail.com Wed Apr 16 02:42:42 2014
From: gislars+list at googlemail.com (Lars Lingner)
Date: Wed, 16 Apr 2014 11:42:42 +0200
Subject: [mapserver-users] How to help translating MS documentation
In-Reply-To:
References:
Message-ID: <534E5092.6030807@googlemail.com>
Thanks Yves,
I signed up as a German translator.
Only the dashboard links aren't valid anymore.
Best wishes,
Lars
On 16.04.2014 10:08, Yves Jacolin wrote:
> Hello,
>
> I wrote a few weeks ago a short how to in the MS doc to give some info
> to help translating via transifex.
>
> This howto has currently no reference in any toc of the doc, so it still
> an hidden and secret page ;)
>
> Here it is: http://mapserver.org/development/translation.html
>
> Any feedback is welcome (english proof reading very welcome).
>
> Thanks,
>
> Y.
> --
> Responsable Formation et Support
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel (France) : +33 4 79 26 57 98
> Tel (Suisse) : 021 619 10 43
> Mob. : +33 6 18 75 42 21
> Fax : 04 79 70 15 81
>
> Mail : yves.jacolin at camptocamp.com
> http://www.camptocamp.com
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From d.robins at gisarts.nl Wed Apr 16 02:44:17 2014
From: d.robins at gisarts.nl (drobins)
Date: Wed, 16 Apr 2014 02:44:17 -0700 (PDT)
Subject: [mapserver-users] Mapserver shows all nodes on a
GeometryCollection
In-Reply-To: <534E3784.3090903@mapmedia.de>
References: <1397544986926-5135064.post@n6.nabble.com>
<534CE027.8030406@mapmedia.de>
<1397561289303-5135113.post@n6.nabble.com>
<534D19B8.3010500@mapmedia.de>
<1397562605235-5135121.post@n6.nabble.com>
<534D4023.6030103@mapmedia.de>
<1397630448414-5135307.post@n6.nabble.com>
<534E3784.3090903@mapmedia.de>
Message-ID: <1397641457380-5135348.post@n6.nabble.com>
I'll look a bit deeper into it when I have a bit more time available and try
it the way you suggest by building the WMS from scratch.
I'm not sure if I can use the shape file as source, because the geometry is
linked to a variety of postgres tables to supply the geometry with
administrative data.
If I happen to find a solution I'll be sure to post it here!
Thanks for your time and help thusfar!
Daniel
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135348.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From support at satshot.com Wed Apr 16 08:42:02 2014
From: support at satshot.com (Avi Blackmore)
Date: Wed, 16 Apr 2014 10:42:02 -0500
Subject: [mapserver-users] Paletted GeoTIFF output in 6.4 not working?
Message-ID: <3883415A-35F4-4555-A98D-E04035555A12@satshot.com>
On April 14, 2014 4:44:59 PM CDT, Stephen Woodbridge wrote:
> I'm not sure if this will work but give it a try. You might have to wait for Thomas to response as he would know for sure.
>
> OUTPUTFORMAT
> NAME "GTiff"
> DRIVER GDAL/GTiff
> MIMETYPE "image/tiff"
> IMAGEMODE RGB
> EXTENSION "tif"
> FORMATOPTION "INTERLACE=false"
> FORMATOPTION "QUANTIZE_NEW=ON"
> FORMATOPTION "QUANTIZE_FORCE=ON"
> FORMATOPTION "QUANTIZE_DITHER=OFF"
> FORMATOPTION "QUANTIZE_COLORS=256"
> END
>
> Also look at http://mapserver.org/mapfile/outputformat.html#outputformat
> there are FORMATOPTIONs specific to GDAL/GTiff and GDAl/* that can be passed to GDAL when the image is output.
>
> -Steve W
I gave this a shot. Unfortunately, it had no effect. I've been poking at FORMATOPTION directives, trying to find one which will work, and so far, no success.
I will have wait for Thomas to respond, I guess. Thank you for trying!
--
Avi Blackmore
Head Programmer/System Administrator
Agri ImaGIS Technologies, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Wed Apr 16 09:25:11 2014
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Wed, 16 Apr 2014 13:25:11 -0300
Subject: [mapserver-users] How to help translating MS documentation
In-Reply-To:
References:
Message-ID: <534EAEE7.8090604@gatewaygeomatics.com>
Hi Yves,
I've added your document to the Documentation section of the Development
page, and also added a reference to it in the Documentation Development
Guide. Wonderful contribution, thank you Yves!
-jeff
On 2014-04-16, 5:08 AM, Yves Jacolin wrote:
> Hello,
>
> I wrote a few weeks ago a short how to in the MS doc to give some info
> to help translating via transifex.
>
> This howto has currently no reference in any toc of the doc, so it still
> an hidden and secret page ;)
>
> Here it is: http://mapserver.org/development/translation.html
>
> Any feedback is welcome (english proof reading very welcome).
>
> Thanks,
>
> Y.
From richard.greenwood at gmail.com Thu Apr 17 07:48:44 2014
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Thu, 17 Apr 2014 08:48:44 -0600
Subject: [mapserver-users] JSON template dependencies
In-Reply-To:
References:
Message-ID:
I've been struggling with the JSON template errors described in my April 3
email below. Initially I was blaming it on different computers. Now I think
it is related to the MIMETYPE in the OUTPUTFORMAT block. This block fails
with "Malformed template name (dummy)"
OUTPUTFORMAT
NAME "geojson"
DRIVER "TEMPLATE"
MIMETYPE 'application/json; subtype=geojson'
FORMATOPTION "FILE=templates/json.js"
END
this block works (mimetype is removed)
OUTPUTFORMAT
NAME "geojson"
DRIVER "TEMPLATE"
FORMATOPTION "FILE=templates/json.js"
END
I'm still not 100% sure that I have this backed into a corner yet.
So is
MIMETYPE 'application/json; subtype=geojson'
incorrect? I've tried various other mimetypes to specify JSON output and
all fail, however "text/html" works.
I don't understand the relationship between mimetype and a "Malformed
template name". Why do I get that error for an invalid mimetype?
Thanks,
Rich
On Thu, Apr 3, 2014 at 8:33 AM, Richard Greenwood <
richard.greenwood at gmail.com> wrote:
> I have two very similar computers. On one JSON templates work, the other
> not. The not-working one displays "Malformed template name (dummy)" where
> "dummy" is a non-existent file and the non-working version seems to ignore
> the OUTPUTFORMAT block. For example I can put invalid parameters in the
> block and they don't throw errors whereas on my working computer they do.
>
> So I'm wondering if there are any dependencies at either compile or run
> time that I'm missing. My working computer is Fedora with MapServer
> installed from a repo, my non-working computer is Amazon Linux (at Redhat
> derivative) with MapServer 6.0 and 6.2 built from source.
>
> Thanks,
> Rich
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
>
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From lgnemmi at rgd73-74.fr Thu Apr 17 08:26:07 2014
From: lgnemmi at rgd73-74.fr (Ludovic Gnemmi)
Date: Thu, 17 Apr 2014 08:26:07 -0700 (PDT)
Subject: [mapserver-users] =?utf-8?q?Adding_support_for_blending_mode_/_bl?=
=?utf-8?q?urring_filter_=E2=80=93_call_for_co-funding?=
Message-ID: <1397748367083-5135694.post@n6.nabble.com>
Hello everyone,
We've been using Mapserver for several years. Mapserver is a great map
rendering tool. Almost perfect ;) we actually miss one thing to produce
beautiful maps : the ability to set compositing or blurring filters for
layers.
Unfortunately in Mapserver the only option for compositing layers is by
setting a layer?s opacity. As you know this approach has some limitations.
The opacity settings when overlaying layers don?t get the best results. All
layers are partially faded out.
Until now, the only way to get blending/blurring is to export a map, using
third-party tools playing with the layer modes there and finally combining
them. But this requires a lot of work. Having this implemented internally
would opens new interesting doors.
We all have seen maps from Stamen, TileMill/Mapbox or even from QGIS2.0
using compositing / blurring. These effects are more and more used by
cartographers to fine tune how layers are blended together. That would be a
great enhancement if Masperver could supports these processings natively.
(See attached examples)
It seems that we would have to raise approximately ?10k in total. We
actually are not able to fully support this development alone. So we?re
turning to the list to see if other organization would be interested in
co-funding with us this kind of enhancement?
So please let us know.
Regards,
Ludovic Gnemmi ? RGD 73-74
OpacityVsBlending.png
TileMill_blur_filter_effect.jpg
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-support-for-blending-mode-blurring-filter-call-for-co-funding-tp5135694.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From Steve.Lime at state.mn.us Thu Apr 17 08:29:35 2014
From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT))
Date: Thu, 17 Apr 2014 15:29:35 +0000
Subject: [mapserver-users] JSON template dependencies
In-Reply-To:
References:
Message-ID:
Hi Rich: Crap, I had meant to connect with your on this back when you first posted it.
I don?t think this is related to the MIMETYPE. I use an output format very similar to the you do. I think what?s happening is that MapServer doesn?t know to use the geojson output format and falls back to a template as defined in a layer in your mapfile. I?m guessing that at least one layer in your mapfile has ?TEMPLATE ?dummy??.
There are at least two ways to set the query format. One is to set a default:
WEB
QUERYFORMAT ?geojson?
END
The other is dynamically via your service call or using a cgi parameter. What I?d recommend is setting a default in the web object and see if that fixes things.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Richard Greenwood
Sent: Thursday, April 17, 2014 9:49 AM
To: mapserver
Subject: Re: [mapserver-users] JSON template dependencies
I've been struggling with the JSON template errors described in my April 3 email below. Initially I was blaming it on different computers. Now I think it is related to the MIMETYPE in the OUTPUTFORMAT block. This block fails with "Malformed template name (dummy)"
OUTPUTFORMAT
NAME "geojson"
DRIVER "TEMPLATE"
MIMETYPE 'application/json; subtype=geojson'
FORMATOPTION "FILE=templates/json.js"
END
this block works (mimetype is removed)
OUTPUTFORMAT
NAME "geojson"
DRIVER "TEMPLATE"
FORMATOPTION "FILE=templates/json.js"
END
I'm still not 100% sure that I have this backed into a corner yet.
So is
MIMETYPE 'application/json; subtype=geojson'
incorrect? I've tried various other mimetypes to specify JSON output and all fail, however "text/html" works.
I don't understand the relationship between mimetype and a "Malformed template name". Why do I get that error for an invalid mimetype?
Thanks,
Rich
On Thu, Apr 3, 2014 at 8:33 AM, Richard Greenwood > wrote:
I have two very similar computers. On one JSON templates work, the other not. The not-working one displays "Malformed template name (dummy)" where "dummy" is a non-existent file and the non-working version seems to ignore the OUTPUTFORMAT block. For example I can put invalid parameters in the block and they don't throw errors whereas on my working computer they do.
So I'm wondering if there are any dependencies at either compile or run time that I'm missing. My working computer is Fedora with MapServer installed from a repo, my non-working computer is Amazon Linux (at Redhat derivative) with MapServer 6.0 and 6.2 built from source.
Thanks,
Rich
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From richard.greenwood at gmail.com Thu Apr 17 09:05:01 2014
From: richard.greenwood at gmail.com (Richard Greenwood)
Date: Thu, 17 Apr 2014 10:05:01 -0600
Subject: [mapserver-users] JSON template dependencies
In-Reply-To:
References:
Message-ID:
Steve,
Adding
WEB
QUERYFORMAT ?geojson?
END
Seems to do the trick although I need to test a little more. I've really
been chasing my tail around on this one.
And yes, all of my layers have a TEMPLATE "dummy". That seems to be
required based on both the documentation and my experience.
I don't see any mention of QUERYFORMAT ?geojson? in the documentation at
http://mapserver.org/output/template_output.html
should I file a ticket, or am I just looking in the wrong place?
Thanks Steve!
Rich
On Thu, Apr 17, 2014 at 9:29 AM, Lime, Steve D (MNIT) <
Steve.Lime at state.mn.us> wrote:
> Hi Rich: Crap, I had meant to connect with your on this back when you
> first posted it.
>
>
>
> I don?t think this is related to the MIMETYPE. I use an output format very
> similar to the you do. I think what?s happening is that MapServer doesn?t
> know to use the geojson output format and falls back to a template as
> defined in a layer in your mapfile. I?m guessing that at least one layer in
> your mapfile has ?TEMPLATE ?dummy??.
>
>
>
> There are at least two ways to set the query format. One is to set a
> default:
>
>
>
> WEB
>
> QUERYFORMAT ?geojson?
>
> END
>
>
>
> The other is dynamically via your service call or using a cgi parameter.
> What I?d recommend is setting a default in the web object and see if that
> fixes things.
>
>
>
> Steve
>
>
>
>
>
> *From:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Richard Greenwood
> *Sent:* Thursday, April 17, 2014 9:49 AM
> *To:* mapserver
> *Subject:* Re: [mapserver-users] JSON template dependencies
>
>
>
> I've been struggling with the JSON template errors described in my April 3
> email below. Initially I was blaming it on different computers. Now I think
> it is related to the MIMETYPE in the OUTPUTFORMAT block. This block fails
> with "Malformed template name (dummy)"
>
> OUTPUTFORMAT
> NAME "geojson"
> DRIVER "TEMPLATE"
> MIMETYPE 'application/json; subtype=geojson'
> FORMATOPTION "FILE=templates/json.js"
> END
>
> this block works (mimetype is removed)
>
>
> OUTPUTFORMAT
> NAME "geojson"
> DRIVER "TEMPLATE"
> FORMATOPTION "FILE=templates/json.js"
> END
>
> I'm still not 100% sure that I have this backed into a corner yet.
>
> So is
> MIMETYPE 'application/json; subtype=geojson'
>
> incorrect? I've tried various other mimetypes to specify JSON output and
> all fail, however "text/html" works.
>
> I don't understand the relationship between mimetype and a "Malformed
> template name". Why do I get that error for an invalid mimetype?
>
> Thanks,
> Rich
>
>
>
>
>
>
>
> On Thu, Apr 3, 2014 at 8:33 AM, Richard Greenwood <
> richard.greenwood at gmail.com> wrote:
>
> I have two very similar computers. On one JSON templates work, the other
> not. The not-working one displays "Malformed template name (dummy)" where
> "dummy" is a non-existent file and the non-working version seems to ignore
> the OUTPUTFORMAT block. For example I can put invalid parameters in the
> block and they don't throw errors whereas on my working computer they do.
>
> So I'm wondering if there are any dependencies at either compile or run
> time that I'm missing. My working computer is Fedora with MapServer
> installed from a repo, my non-working computer is Amazon Linux (at Redhat
> derivative) with MapServer 6.0 and 6.2 built from source.
>
> Thanks,
> Rich
>
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
>
>
>
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
>
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tech_dev at wildintellect.com Fri Apr 18 09:39:55 2014
From: tech_dev at wildintellect.com (Alex Mandel)
Date: Fri, 18 Apr 2014 09:39:55 -0700
Subject: [mapserver-users] Downtime Notice for many OSGeo Hosted sites
Message-ID: <5351555B.3030108@wildintellect.com>
The following sites will be down later today for hardware maintenance
starting at approximately
http://www.timeanddate.com/worldclock/fixedtime.html?iso=20140418T2000
Outage will likely take a couple of hours.
All OSGeo hosted mailing lists will also likely be down. Messages sent
during that time will likely be delayed but not lost.
docs.geotools.org
featureserver.org
geos.osgeo.org
geotools.org
grass.osgeo.org
grasswiki.osgeo.org
mapserver.org
openlayers
pycsw.org
spatialreference.org
tilecache.org
www.gdal.org
www.remotesensing.org
demo.mapserver.org
mapbender
demo.pycsw.org
oam
qgis.org
hub.qgis.org
Additional sites not listed may also be down.
Please forward announcement to relevant project lists.
We'll be on IRC #osgeo during the outage since mailing lists will be down.
Thanks,
Alex
OSGeo System Admin Committee
From Steve.Lime at state.mn.us Tue Apr 22 10:00:00 2014
From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT))
Date: Tue, 22 Apr 2014 17:00:00 +0000
Subject: [mapserver-users] FW: [OSGeo-Discuss] Community voting open through
May 5th
In-Reply-To:
References:
Message-ID:
Hi all: A chance to contribute to the upcoming FOSS4G - Portland event. There are several MapServer/MapCache/TinyOWS related presentations in the mix.
Steve
-----Original Message-----
From: discuss-bounces at lists.osgeo.org [mailto:discuss-bounces at lists.osgeo.org] On Behalf Of Eli Adam
Sent: Tuesday, April 22, 2014 10:48 AM
To: OSGeo Discussions
Subject: [OSGeo-Discuss] Community voting open through May 5th
Hi all, more exciting FOSS4G news, help us by voting and spreading the news. Html version available online, https://2014.foss4g.org/foss4g-community-voting-open-through-may-5th/
Eli
April 22, 2014
Portland, OR, USA
Community voting open through May 5th
What presentations do you want to see at FOSS4G? Now is the time to tell us!
The FOSS4G community at large can now read and score potential presentations. The conference committee will use the aggregate scores from the community review process to help choose which presentations to accept, and to assign presentations to appropriately sized rooms.
The community review process is an important part of creating a conference that benefits and reflects the community. Your input is a significant part of what makes FOSS4G a great conference. Note that you do not need to be registered for the conference to vote. And remember, all presentations will be available online, so even if you are unable to attend, your vote matters.
You can vote now at: http://community-review.foss4g.org/.
Please complete your voting by May 5th.
Important Conference Dates
See the full calendar for more details at https://2014.foss4g.org/about/calendar.
* June 15th: Early bird registration ends
* Sept 8th-9th: Workshops
* Sept 10th-12th: Main Conference
* Sept 13th: Code Sprint
__________________________________________________________________
For more information or to keep informed from the FOSS4G Organizing Committee, follow @foss4g on Twitter, subscribe to our announcements list, or contact foss4g2014-info at osgeo.org Subscribe to announcements list: http://eepurl.com/N5Q6X
Darrell Fuhriman, Chair of the FOSS4G Organizing Committee, darrell at garnix.org _______________________________________________
Discuss mailing list
Discuss at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/discuss
From bob.basques at ci.stpaul.mn.us Wed Apr 23 12:23:07 2014
From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul))
Date: Wed, 23 Apr 2014 19:23:07 +0000
Subject: [mapserver-users] labelpoly buffer, how to increase??
Message-ID:
All,
Is there a way to increase the buffer distance for a lablepoly (as in GEOTRANSFORM labelpoly) to more than one pixel? Is this a compile thing?
I'm trying to make a billboard style leader/label. It's looking pretty good now, but more space around the edges of the text would be better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From cankorusa at gmail.com Wed Apr 23 12:33:35 2014
From: cankorusa at gmail.com (jrumbolt)
Date: Wed, 23 Apr 2014 12:33:35 -0700 (PDT)
Subject: [mapserver-users] mapcache check cache before testing source data?
Message-ID: <1398281615042-5136792.post@n6.nabble.com>
Hi,
I have my source datasets on Amazon S3 and mounted with s3fs. There is a
fair amount of latency in any check/read in the mounted s3 bucket to I use
the mapcache_seed to fill a cache on the local system in a one time
operation.
I'm finding that mapcache seems to want to check the source data before
hitting the cache and it's slow, high latency, even though the cache is
local and ready.
Is there some option that I can set that will have mapcache get from the
cache first before trying to do anything with the source data?
Regards,
Jerry
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From Steve.Lime at state.mn.us Wed Apr 23 16:14:55 2014
From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT))
Date: Wed, 23 Apr 2014 23:14:55 +0000
Subject: [mapserver-users] labelpoly buffer, how to increase??
In-Reply-To:
References:
Message-ID:
Hi Bob: I don't think so... It's a limitation of the implementation and something I hope to correct by allowing you to buffer the label polygon. You probably can hack the source if you wanted to change the value globally. I can look if you'd like.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Wednesday, April 23, 2014 2:23 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] labelpoly buffer, how to increase??
All,
Is there a way to increase the buffer distance for a lablepoly (as in GEOTRANSFORM labelpoly) to more than one pixel? Is this a compile thing?
I'm trying to make a billboard style leader/label. It's looking pretty good now, but more space around the edges of the text would be better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From lin at hvenegaard.dk Thu Apr 24 06:32:46 2014
From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=)
Date: Thu, 24 Apr 2014 15:32:46 +0200
Subject: [mapserver-users] TileIndex and relative paths
Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD69022DEF@hvmex01>
Hi,
I'm using Mapserver to display a raster, that I've split into multiple tiles for performance reasons.
The shape file I'm using for tile index have no path in the Location field, just the file name of the raster tile. And each tile (png) is accompanied by a wld file.
I've previously used absolute paths in my tile indexes, but this is not feasable in this project.
It looks like entries in a tile index is attempted read from the folder defined by the environment variable SHAPEPATH.
I would have thought that entries without path were to be considered relative to the tile index table itself.
Is there a way to force Mapserver to fetch the tiles relative to the tile index instead of relative to SHAPEPATH ?
Cheers.
Kind regards / Med venlig hilsen
Lars I. Nielsen
----------------------------------------------------------------
Landinspekt?r, Senior GIS Programm?r og Konsulent
Hvenegaard Landinspekt?rer A/S
Rugaardsvej 55, DK-5000 Odense C
Denmark
Tel. +45 6313 5050
http://www.hvenegaard.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mario at geosar.ch Thu Apr 24 08:16:38 2014
From: mario at geosar.ch (Mario Jurcevic)
Date: Thu, 24 Apr 2014 17:16:38 +0200
Subject: [mapserver-users] layer grid intersection points symbol
Message-ID: <53592AD6.3000906@geosar.ch>
Hi,
any idea of how to represent in a GRID layer only the intersecting
points of grid lines repeated on the whole extent.
|
---O---
|
Thanks
From deborah.traver at gmail.com Thu Apr 24 11:25:39 2014
From: deborah.traver at gmail.com (Deborah Traver)
Date: Thu, 24 Apr 2014 12:25:39 -0600
Subject: [mapserver-users] Beginning MapServer User needs help
Message-ID:
Is anyone willing to help me figure out my issues? I am doing a tutorial on
gistutor.com/mapserver,
and have followed it to the tee. I am a ms4w user. Mapserver and apache are
installed correctly. I imagine I am making a small mistake somewhere in my
MapFile &/or html. I tried sending a more detailed email, but it was too
large to send. I can send more info to anyone that has a few minutes for me.
Cheers,
Deb
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From thomas.bonfort at gmail.com Thu Apr 24 11:29:36 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Thu, 24 Apr 2014 20:29:36 +0200
Subject: [mapserver-users] layer grid intersection points symbol
In-Reply-To: <53592AD6.3000906@geosar.ch>
References: <53592AD6.3000906@geosar.ch>
Message-ID:
Mario,
To my knowledge this isn't possible. I or another dev would be
available for contracting if this is something you would want to fund.
Best regards,
Thomas
On 24 April 2014 17:16, Mario Jurcevic wrote:
> Hi,
> any idea of how to represent in a GRID layer only the intersecting points
> of grid lines repeated on the whole extent.
>
> |
> ---O---
> |
>
>
> Thanks
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From thomas.bonfort at gmail.com Thu Apr 24 11:32:57 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Thu, 24 Apr 2014 20:32:57 +0200
Subject: [mapserver-users] mapcache check cache before testing source
data?
In-Reply-To: <1398281615042-5136792.post@n6.nabble.com>
References: <1398281615042-5136792.post@n6.nabble.com>
Message-ID:
Jerry,
I'm not sure I follow your issue. Mapcache itself won't hit your
source data, it will only be accessed through by the configured wms
server if a tile was not found in the local cache. The seeder will
only hit the wms if a given tile was not present in the cache (or if
you have passed --force on the command line)
--
thomas
On 23 April 2014 21:33, jrumbolt wrote:
> Hi,
>
> I have my source datasets on Amazon S3 and mounted with s3fs. There is a
> fair amount of latency in any check/read in the mounted s3 bucket to I use
> the mapcache_seed to fill a cache on the local system in a one time
> operation.
>
> I'm finding that mapcache seems to want to check the source data before
> hitting the cache and it's slow, high latency, even though the cache is
> local and ready.
>
> Is there some option that I can set that will have mapcache get from the
> cache first before trying to do anything with the source data?
>
> Regards,
>
> Jerry
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From thomas.bonfort at gmail.com Thu Apr 24 11:34:37 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Thu, 24 Apr 2014 20:34:37 +0200
Subject: [mapserver-users] layer grid intersection points symbol
In-Reply-To:
References: <53592AD6.3000906@geosar.ch>
Message-ID:
(back on list)
This might work for orthogonal and even grids, but would fail when
using a projection that does not enforce this (i.e. with arcs instead
of straight lines)
--
thomas
On 24 April 2014 20:32, Basques, Bob (CI-StPaul)
wrote:
> All,
>
> I wonder if you could fake it by using a dashed line with the appropriate spacing. Would end up as a cross tic instead of a point though.
>
> Bobb
>
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
> Sent: Thursday, April 24, 2014 1:30 PM
> To: Mario Jurcevic
> Cc: MapserverList OSGEO
> Subject: Re: [mapserver-users] layer grid intersection points symbol
>
> Mario,
> To my knowledge this isn't possible. I or another dev would be available for contracting if this is something you would want to fund.
>
> Best regards,
> Thomas
>
> On 24 April 2014 17:16, Mario Jurcevic wrote:
>> Hi,
>> any idea of how to represent in a GRID layer only the intersecting
>> points of grid lines repeated on the whole extent.
>>
>> |
>> ---O---
>> |
>>
>>
>> Thanks
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From bfraser at geoanalytic.com Thu Apr 24 12:46:22 2014
From: bfraser at geoanalytic.com (Brent Fraser)
Date: Thu, 24 Apr 2014 13:46:22 -0600
Subject: [mapserver-users] Beginning MapServer User needs help
In-Reply-To:
References:
Message-ID: <53596A0E.9060902@geoanalytic.com>
Deb,
Which version of mapserver are you using? And what are the symptoms
of the problem?
Best Regards,
Brent Fraser
On 4/24/2014 12:25 PM, Deborah Traver wrote:
> Is anyone willing to help me figure out my issues? I am doing a
> tutorial on gistutor.com/mapserver
> ,
> and have followed it to the tee. I am a ms4w user. Mapserver and
> apache are installed correctly. I imagine I am making a small mistake
> somewhere in my MapFile &/or html. I tried sending a more detailed
> email, but it was too large to send. I can send more info to anyone
> that has a few minutes for me.
>
> Cheers,
> Deb
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From cankorusa at gmail.com Thu Apr 24 12:58:48 2014
From: cankorusa at gmail.com (jrumbolt)
Date: Thu, 24 Apr 2014 12:58:48 -0700 (PDT)
Subject: [mapserver-users] mapcache check cache before testing source
data?
In-Reply-To:
References: <1398281615042-5136792.post@n6.nabble.com>
Message-ID: <1398369528060-5136981.post@n6.nabble.com>
Thomas,
Hmmm... that means the for some reason mapcache is not using my cache. As a
test if, if I seed the cache and then point the map to some nonexisting data
then as long as the requests are of an area that I seeded then it should
still work, correct?
Regards,
Jerry
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792p5136981.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From thomas.bonfort at gmail.com Thu Apr 24 13:20:36 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Thu, 24 Apr 2014 22:20:36 +0200
Subject: [mapserver-users] mapcache check cache before testing source
data?
In-Reply-To: <1398369528060-5136981.post@n6.nabble.com>
References: <1398281615042-5136792.post@n6.nabble.com>
<1398369528060-5136981.post@n6.nabble.com>
Message-ID:
Jerry,
mapcache has no knowledge of where there's data or not. If it has the
requested tile in its cache it will serve it, otherwise it will ask
the wms to render it, then cache it, then serve it. Wether the wms hit
actual data or not is not mapcache's problem.
--
thomas
On 24 April 2014 21:58, jrumbolt wrote:
> Thomas,
>
> Hmmm... that means the for some reason mapcache is not using my cache. As a
> test if, if I seed the cache and then point the map to some nonexisting data
> then as long as the requests are of an area that I seeded then it should
> still work, correct?
>
> Regards,
>
> Jerry
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792p5136981.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From andy at squeakycode.net Thu Apr 24 13:52:28 2014
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 24 Apr 2014 15:52:28 -0500
Subject: [mapserver-users] Beginning MapServer User needs help
In-Reply-To:
References:
Message-ID: <5359798C.9080501@squeakycode.net>
On 4/24/2014 1:25 PM, Deborah Traver wrote:
> Is anyone willing to help me figure out my issues? I am doing a tutorial
> on gistutor.com/mapserver
> ,
> and have followed it to the tee. I am a ms4w user. Mapserver and apache
> are installed correctly. I imagine I am making a small mistake somewhere
> in my MapFile &/or html. I tried sending a more detailed email, but it
> was too large to send. I can send more info to anyone that has a few
> minutes for me.
>
> Cheers,
> Deb
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
A great place to look is the apache error.log. If you have syntax
errors there is a good chance they'll be displayed in the error.log
-Andy
From jukka.rahkonen at mmmtike.fi Thu Apr 24 14:29:28 2014
From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike))
Date: Thu, 24 Apr 2014 21:29:28 +0000
Subject: [mapserver-users] Beginning MapServer User needs help
In-Reply-To:
References:
Message-ID:
Hi,
I am willing to help but I would rather do it in some other way than trying to make that tutorial to work. For my mind it has been a good start as a tutorial but it has never been ready enough to be given for the beginners and now it is also outdated.
- Mapfile is not valid because it does not start with the magic word "MAP"
- Mapfile is using deprecated LAYER-CLASS while the current way it to have LAYER-CLASS-STYLE
- The mapfile is unnecessary simple. It would be better to learn users to use projection blocks everywhere.
- It would be more clear to use absolute paths instead of relative to shapepath
- It should contain MS_ERRORFILE and #DEBUG 5 set plus an instruction to remove # in case of troubles and have a look at the errorfile.
I think also that it would be better for the beginners to make a WMS service instead of using html templates and use QGIS or a web browser with handwritten WMS GetMap call as the first client. Page http://mapserver.org/ogc/wms_server.html is of much better reading but naturally it would be nice to get a map out of Mapserver with minimal work. It would make new users to believe that Mapserver really works. If we had an official installer for Mapserver it could come with a few small datasets and ready made mapfiles so that users would have something that works out-of-the-box after installation. Nightly/weekly or at least monthly builds would be welcome.
I am not sure if this soon 3 years old tutorial still works but you can have a try http://latuviitta.org/documents/Super_easy_WMS_server.pdf
-Jukka Rahkonen-
________________________________
Deborah Traver
> Is anyone willing to help me figure out my issues? I am doing a tutorial on gistutor.com/mapserver, and have followed it to the tee. I am a ms4w user. Mapserver and apache are installed correctly. I imagine I am making a small mistake somewhere in my MapFile &/or html. I tried sending a more detailed email, but it was too large to send. I can send more info to anyone that has a few minutes for me.
Cheers,
Deb
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From cankorusa at gmail.com Thu Apr 24 21:48:37 2014
From: cankorusa at gmail.com (jrumbolt)
Date: Thu, 24 Apr 2014 21:48:37 -0700 (PDT)
Subject: [mapserver-users] mapcache check cache before testing source
data?
In-Reply-To:
References: <1398281615042-5136792.post@n6.nabble.com>
<1398369528060-5136981.post@n6.nabble.com>
Message-ID: <1398401317255-5137048.post@n6.nabble.com>
Thomas,
If my mapcache.xml file is as below... then it does contain a reference to
the data. I'd like that if a tile is in the cache then use it otherwise
generate from the source. Is there something that I should be doing
differently?
Cheers,
Jerry
local-disk-cacheGoogleMapsCompatible80jpegdataset
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792p5137048.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From cankorusa at gmail.com Thu Apr 24 23:29:21 2014
From: cankorusa at gmail.com (jrumbolt)
Date: Thu, 24 Apr 2014 23:29:21 -0700 (PDT)
Subject: [mapserver-users] mapcache check cache before testing source
data?
In-Reply-To: <1398401317255-5137048.post@n6.nabble.com>
References: <1398281615042-5136792.post@n6.nabble.com>
<1398369528060-5136981.post@n6.nabble.com>
<1398401317255-5137048.post@n6.nabble.com>
Message-ID: <1398407361296-5137061.post@n6.nabble.com>
I think I have it fixed now. My bad. The mapcache_seed was being called with
an incorrect extent so the tiles were really not there hence it was going to
the source data.
Cheers,
Jerry
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-check-cache-before-testing-source-data-tp5136792p5137061.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From havard.tveite at nmbu.no Fri Apr 25 00:44:20 2014
From: havard.tveite at nmbu.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=)
Date: Fri, 25 Apr 2014 09:44:20 +0200
Subject: [mapserver-users] Beginning MapServer User needs help
In-Reply-To:
References:
Message-ID: <535A1254.1060209@nmbu.no>
The OpenLayers viewer is a nice tool for testing mapfiles:
http://mapserver.org/cgi/openlayers.html
H?vard
On 2014-04-24 23:29, Rahkonen Jukka (Tike) wrote:
> Hi,
>
> I am willing to help but I would rather do it in some other way than trying to make that tutorial to work. For my mind it has been a good start as a tutorial but it has never been ready enough to be given for the beginners and now it is also outdated.
> - Mapfile is not valid because it does not start with the magic word "MAP"
> - Mapfile is using deprecated LAYER-CLASS while the current way it to have LAYER-CLASS-STYLE
> - The mapfile is unnecessary simple. It would be better to learn users to use projection blocks everywhere.
> - It would be more clear to use absolute paths instead of relative to shapepath
> - It should contain MS_ERRORFILE and #DEBUG 5 set plus an instruction to remove # in case of troubles and have a look at the errorfile.
>
> I think also that it would be better for the beginners to make a WMS service instead of using html templates and use QGIS or a web browser with handwritten WMS GetMap call as the first client. Page http://mapserver.org/ogc/wms_server.html is of much better reading but naturally it would be nice to get a map out of Mapserver with minimal work. It would make new users to believe that Mapserver really works. If we had an official installer for Mapserver it could come with a few small datasets and ready made mapfiles so that users would have something that works out-of-the-box after installation. Nightly/weekly or at least monthly builds would be welcome.
>
> I am not sure if this soon 3 years old tutorial still works but you can have a try http://latuviitta.org/documents/Super_easy_WMS_server.pdf
>
>
> -Jukka Rahkonen-
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Deborah Traver
>
> > Is anyone willing to help me figure out my issues? I am doing a tutorial on gistutor.com/mapserver , and have followed it to the tee. I am a ms4w user. Mapserver and apache are installed correctly. I imagine I am making a small mistake somewhere in my MapFile &/or html. I tried sending a more detailed email, but it was too large to send. I can send more info to anyone that has a few minutes for me.
>
> Cheers,
> Deb
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
H?vard Tveite
Department of Mathematical Sciences and Technology, NMBU
Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/
From mario at geosar.ch Fri Apr 25 02:08:08 2014
From: mario at geosar.ch (Mario Jurcevic)
Date: Fri, 25 Apr 2014 11:08:08 +0200
Subject: [mapserver-users] layer grid intersection points symbol
In-Reply-To:
References:
Message-ID: <535A25F8.2080908@geosar.ch>
On 04/24/2014 09:00 PM, mapserver-users-request at lists.osgeo.org wrote:
> All,
>>
>>I wonder if you could fake it by using a dashed line with the appropriate spacing. Would end up as a cross tic instead of a point though.
>>
>>Bobb
Horizontal lines area dashed from visible map border, vertical lines
not, seems from starting points outside visible extent.
The off parameter of the pattern could vary on every pan/zoom.
From jmckenna at gatewaygeomatics.com Fri Apr 25 03:31:16 2014
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Fri, 25 Apr 2014 07:31:16 -0300
Subject: [mapserver-users] Beginning MapServer User needs help
In-Reply-To:
References:
Message-ID: <535A3974.30607@gatewaygeomatics.com>
On 2014-04-24, 3:25 PM, Deborah Traver wrote:
> Is anyone willing to help me figure out my issues? I am doing a tutorial
> on gistutor.com/mapserver
> ,
> and have followed it to the tee. I am a ms4w user. Mapserver and apache
> are installed correctly. I imagine I am making a small mistake somewhere
> in my MapFile &/or html. I tried sending a more detailed email, but it
> was too large to send. I can send more info to anyone that has a few
> minutes for me.
>
Hi Deb,
If I had to guess, I bet that tutorial that you are using is very very
old, and the templates you are using from it will likely not work as-is
with more recent versions of MapServer (e.g. "error line 1 blah blah
blah"). Use the shp2img commandline tool that is part of MS4W and try
to create a map image (see example usage at
http://mapserver.org/utilities/shp2img.html). That tool will return a
map image, or an error with a line number).
Once you get the exact error, search the mailing list for that error
(this is the best way to search:
http://osgeo-org.1560.x6.nabble.com/MapServer-f4226623.html).
And finally, welcome to the MapServer /OSGeo community! :)
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From geographika at gmail.com Mon Apr 28 01:50:24 2014
From: geographika at gmail.com (geographika)
Date: Mon, 28 Apr 2014 10:50:24 +0200
Subject: [mapserver-users] WMS Feature Order Problem
Message-ID: <535E1650.1020403@gmail.com>
Hi list,
I recently came across a problem with the order features are rendered by
Mapserver. I am displaying road surveys done at various times, and have
a WMS layer that displays the latest survey results. Rather than trying
to do complicated segmentation, I simply display features ordered by
survey date, with the most recent records on top.
Initially my layer DATA clause was similar to the following:
SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from mydata) as
tbl USING UNIQUE ID USING SRID=29902 ORDER BY [TimeStamp] DESC
I hadn't realised that anything outside after the USING... statement was
ignored, so the records were displayed unordered.
I then tried using:
SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from mydata
ORDER BY [TimeStamp] DESC) as tbl USING UNIQUE ID USING SRID=29902
However when the data for the WMS is prepared this SQL becomes a
subquery, and a WHERE clause is added to get the data for the requested
extent.
SQL Server doesn't allow ORDER BY in a subquery, so an error is thrown:
"The ORDER BY clause is invalid in views, inline functions, derived
tables, subqueries, and common table expressions, unless TOP or FOR XML
is also specified."
My current workaround is to change the SQL to:
SELECT TOP 1000000 ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from
mydata ORDER BY [TimeStamp] DESC) as tbl USING UNIQUE ID USING SRID=29902
However this causes slow queries as all data needs to be fetched in
order before filtering.
So my question is is there a way to order records using another LAYER
property (similar to the FILTER property), so ordering is done only on
the records returned for rendering?
Thanks for any advice,
Seth
--
web:http://geographika.co.uk
twitter: @geographika
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From umberto.nicoletti at gmail.com Mon Apr 28 02:53:39 2014
From: umberto.nicoletti at gmail.com (Umberto Nicoletti)
Date: Mon, 28 Apr 2014 11:53:39 +0200
Subject: [mapserver-users] WMS Feature Order Problem
In-Reply-To: <535E1650.1020403@gmail.com>
References: <535E1650.1020403@gmail.com>
Message-ID:
If you don't have an index yet on TimeStamp, you could try creating one
with an ORDER clause and see if this improves performance (with a properly
created index you can avoid running separate order operation for every
query):
http://technet.microsoft.com/en-us/library/ms181154(v=sql.105).aspx
HTH,
Umberto
On Mon, Apr 28, 2014 at 10:50 AM, geographika wrote:
> Hi list,
>
> I recently came across a problem with the order features are rendered by
> Mapserver. I am displaying road surveys done at various times, and have a
> WMS layer that displays the latest survey results. Rather than trying to do
> complicated segmentation, I simply display features ordered by survey date,
> with the most recent records on top.
>
> Initially my layer DATA clause was similar to the following:
>
> SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from mydata) as tbl
> USING UNIQUE ID USING SRID=29902 ORDER BY [TimeStamp] DESC
>
> I hadn't realised that anything outside after the USING... statement was
> ignored, so the records were displayed unordered.
>
> I then tried using:
>
> SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from mydata ORDER
> BY [TimeStamp] DESC) as tbl USING UNIQUE ID USING SRID=29902
>
> However when the data for the WMS is prepared this SQL becomes a subquery,
> and a WHERE clause is added to get the data for the requested extent.
> SQL Server doesn't allow ORDER BY in a subquery, so an error is thrown:
>
> "The ORDER BY clause is invalid in views, inline functions, derived
> tables, subqueries, and common table expressions, unless TOP or FOR XML is
> also specified."
>
> My current workaround is to change the SQL to:
>
> SELECT TOP 1000000 ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from
> mydata ORDER BY [TimeStamp] DESC) as tbl USING UNIQUE ID USING SRID=29902
>
> However this causes slow queries as all data needs to be fetched in order
> before filtering.
>
> So my question is is there a way to order records using another LAYER
> property (similar to the FILTER property), so ordering is done only on the
> records returned for rendering?
>
> Thanks for any advice,
>
> Seth
>
> --
> web: http://geographika.co.uk
> twitter: @geographika
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From geographika at gmail.com Tue Apr 29 09:10:40 2014
From: geographika at gmail.com (geographika)
Date: Tue, 29 Apr 2014 18:10:40 +0200
Subject: [mapserver-users] WMS Feature Order Problem
In-Reply-To:
References: <535E1650.1020403@gmail.com>
Message-ID: <535FCF00.6050403@gmail.com>
Thanks Umberto,
I have an index set up on the TimeStamp field, but looking at the query
plans it won't affect performance as SQL Server still has to get all the
records in the table to order them, before applying WHERE clauses in the
outer query.
What would be ideal is a LAYER property such as ORDER which would allow
a field to be set to order records for rendering (similar to FILTER
which is added to the outer query).
I'll have to look at how Postgres handles subqueries to see if it is
also affected by the same issues.
Note SQL Server simply (and silently) ignores the ORDER BY clause when
using SELECT TOP 100 PERCENT.
This introduced hard to find logical errors in my application which were
only spotted by someone who knew the data well, so I'd suggest anyone
who relies on features being rendered in a specific order to
double-check their apps!
On 28/04/2014 11:53, Umberto Nicoletti wrote:
> If you don't have an index yet on TimeStamp, you could try creating
> one with an ORDER clause and see if this improves performance (with a
> properly created index you can avoid running separate order operation
> for every query):
>
> http://technet.microsoft.com/en-us/library/ms181154(v=sql.105).aspx
>
>
> HTH,
> Umberto
>
>
>
> On Mon, Apr 28, 2014 at 10:50 AM, geographika > wrote:
>
> Hi list,
>
> I recently came across a problem with the order features are
> rendered by Mapserver. I am displaying road surveys done at
> various times, and have a WMS layer that displays the latest
> survey results. Rather than trying to do complicated segmentation,
> I simply display features ordered by survey date, with the most
> recent records on top.
>
> Initially my layer DATA clause was similar to the following:
>
> SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from
> mydata) as tbl USING UNIQUE ID USING SRID=29902 ORDER BY
> [TimeStamp] DESC
>
> I hadn't realised that anything outside after the USING...
> statement was ignored, so the records were displayed unordered.
>
> I then tried using:
>
> SELECT ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR] from mydata
> ORDER BY [TimeStamp] DESC) as tbl USING UNIQUE ID USING SRID=29902
>
> However when the data for the WMS is prepared this SQL becomes a
> subquery, and a WHERE clause is added to get the data for the
> requested extent.
> SQL Server doesn't allow ORDER BY in a subquery, so an error is
> thrown:
>
> "The ORDER BY clause is invalid in views, inline functions,
> derived tables, subqueries, and common table expressions, unless
> TOP or FOR XML is also specified."
>
> My current workaround is to change the SQL to:
>
> SELECT TOP 1000000 ID, GEOM, Rating, YEAR([TimeStamp]) AS [YEAR]
> from mydata ORDER BY [TimeStamp] DESC) as tbl USING UNIQUE ID
> USING SRID=29902
>
> However this causes slow queries as all data needs to be fetched
> in order before filtering.
>
> So my question is is there a way to order records using another
> LAYER property (similar to the FILTER property), so ordering is
> done only on the records returned for rendering?
>
> Thanks for any advice,
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From geographika at gmail.com Tue Apr 29 11:21:39 2014
From: geographika at gmail.com (geographika)
Date: Tue, 29 Apr 2014 20:21:39 +0200
Subject: [mapserver-users] WFS Layer and Filters Issue
Message-ID: <535FEDB3.9050504@gmail.com>
Hi list,
I have a LAYER set up with a FILTER clause. The filtering is fine when
using WMS requests along with TIME parameters.
However when using WFS requests, with additional client-side filters
(from OpenLayers), the MapServer LAYER FILTER is replaced by the client
filter. I can see this by looking at the logs and the temporary MAP file
created by MapServer:
FLTApplySimpleSQLFilter(): Map file after Filter was applied
C:\Users\MAPSER~1\AppData\
I would have expected any client-side filters to be appended to the
LAYER's FILTER clause rather than simply overriding it. Is this the
expected behaviour, or is this a bug? Beyond brining back unexpected
features, it may also have security implications as a user may be able
to access features a developer may think are being filtered out.
I'm using MapServer 6.4 and my LAYER is using the MSSQL plugin for
database connection.
Regards,
Seth
From bob.basques at ci.stpaul.mn.us Tue Apr 29 11:55:49 2014
From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul))
Date: Tue, 29 Apr 2014 18:55:49 +0000
Subject: [mapserver-users] MapServer Errors in APACHE logs.
Message-ID:
All,
Has anyone done any work with capturing MapServer errors in APACHE? Specifically I want to be able to tell the difference between a MapServer mis-config (textual error page) and a successful image response. The idea is to somehow log those textual message responses in an automated way through Apache.
I'm pretty sure I could make my own custom logfile for MapServer (CGI) calls, but not so sure about textual response vs raster response filters, at least from the APACHE point of view . . .. Is a MapServer Text based error page considered for inclusion in the Apache error log or??
Thanks.
Bobb
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pschweitzer at usgs.gov Tue Apr 29 12:51:32 2014
From: pschweitzer at usgs.gov (Schweitzer, Peter)
Date: Tue, 29 Apr 2014 15:51:32 -0400
Subject: [mapserver-users] MapServer Errors in APACHE logs.
In-Reply-To:
References:
Message-ID:
I think the problem is that mapserver is a CGI program, not a module
of Apache. If it were a module of Apache (for example, PHP) then its
error report could be sent to the Apache error log. But as a separate
process, it doesn't have access to the Apache log system. OCICBW
Perhaps if mapserver could be configured to write to its own error log
the parameters it got called with, then you could more easily
associate a particular web request with the mapserver error message.
At the moment, the only way you can do that is by matching the time of
the mapserver error entry with an apache log entry with the same time.
But does mapserver actually have anything that looks like the web
request that caused it to be called?
What do you think?
Peter
On Tue, Apr 29, 2014 at 2:55 PM, Basques, Bob (CI-StPaul)
wrote:
> All,
>
>
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a MapServer
> mis-config (textual error page) and a successful image response. The idea
> is to somehow log those textual message responses in an automated way
> through Apache.
>
>
>
> I?m pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response filters, at
> least from the APACHE point of view . . .. Is a MapServer Text based error
> page considered for inclusion in the Apache error log or??
>
>
>
> Thanks.
>
>
>
> Bobb
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192)
(703) 648-6533 email: pschweitzer at usgs.gov
http://geology.usgs.gov/peter/
From andy at squeakycode.net Tue Apr 29 13:07:20 2014
From: andy at squeakycode.net (Andy Colson)
Date: Tue, 29 Apr 2014 15:07:20 -0500
Subject: [mapserver-users] MapServer Errors in APACHE logs.
In-Reply-To:
References:
Message-ID: <53600678.8020509@squeakycode.net>
On 4/29/2014 2:51 PM, Schweitzer, Peter wrote:> I think the problem is
that mapserver is a CGI program, not a module
> of Apache. If it were a module of Apache (for example, PHP) then its
> error report could be sent to the Apache error log. But as a separate
> process, it doesn't have access to the Apache log system. OCICBW
>
I'm pretty sure you can write to stderr in cgi and apache will dump it
to the error log.
http://httpd.apache.org/docs/current/logs.html
search for stderr
-Andy
From andy at squeakycode.net Tue Apr 29 13:14:56 2014
From: andy at squeakycode.net (Andy Colson)
Date: Tue, 29 Apr 2014 15:14:56 -0500
Subject: [mapserver-users] MapServer Errors in APACHE logs.
In-Reply-To:
References:
Message-ID: <53600840.3020301@squeakycode.net>
On 4/29/2014 1:55 PM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a
> MapServer mis-config (textual error page) and a successful image
> response. The idea is to somehow log those textual message responses
> in an automated way through Apache.
>
> I?m pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response
> filters, at least from the APACHE point of view . . .. Is a MapServer
> Text based error page considered for inclusion in the Apache error log or??
>
> Thanks.
>
> Bobb
>
Have you checked your apache error log? I'm running perl as fastcgi,
and I get things like:
mod_fcgid: stderr: maps.pl: msWMSLoadGetMapParams(): WMS server error.
Invalid layer(s) given in the LAYERS parameter. A layer might be
disabled for this request. Check wms/ows_enable_request settings.
The text vs raster response is only for sending errors to the browser,
it wont affect whats written to the error log.
I think writing a thing to watch the error log is your best bet. You
could "simulate" some errors and see how it shows up in the error log.
-Andy
From bob.basques at ci.stpaul.mn.us Tue Apr 29 13:20:00 2014
From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul))
Date: Tue, 29 Apr 2014 20:20:00 +0000
Subject: [mapserver-users] MapServer Errors in APACHE logs.
In-Reply-To: <53600840.3020301@squeakycode.net>
References:
<53600840.3020301@squeakycode.net>
Message-ID:
Andy,
I was just looking at it . . . :c)
I think we can implement something through Apache to get at what I'm looking for. I basically need to periodically check application access errors from time to time, and the process is rather tedious to do based on the CGI request alone, once it's even retrieved from the accessing client app. Having the results showing up in a separated container is the end goal.
We are already applying some Apache magic to all our requests, I'll shoot this by the Web admin and see what extra filtering we can apply and try and figure out how much overhead something like this tracking might add onto the request process.
Thanks
Bobb
-----Original Message-----
From: Andy Colson [mailto:andy at squeakycode.net]
Sent: Tuesday, April 29, 2014 3:15 PM
To: Basques, Bob (CI-StPaul); mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] MapServer Errors in APACHE logs.
On 4/29/2014 1:55 PM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a
> MapServer mis-config (textual error page) and a successful image
> response. The idea is to somehow log those textual message responses
> in an automated way through Apache.
>
> I'm pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response
> filters, at least from the APACHE point of view . . .. Is a MapServer
> Text based error page considered for inclusion in the Apache error log or??
>
> Thanks.
>
> Bobb
>
Have you checked your apache error log? I'm running perl as fastcgi, and I get things like:
mod_fcgid: stderr: maps.pl: msWMSLoadGetMapParams(): WMS server error.
Invalid layer(s) given in the LAYERS parameter. A layer might be disabled for this request. Check wms/ows_enable_request settings.
The text vs raster response is only for sending errors to the browser, it wont affect whats written to the error log.
I think writing a thing to watch the error log is your best bet. You could "simulate" some errors and see how it shows up in the error log.
-Andy
From cp.manuel at gmail.com Tue Apr 29 20:02:41 2014
From: cp.manuel at gmail.com (Manuel Castro)
Date: Tue, 29 Apr 2014 21:02:41 -0600
Subject: [mapserver-users] Problems with mapserver gmap
Message-ID:
Greetings to all.
Install in MS4W - MapServer 4 Windows - version 3.0.6 on Windows 7 professional
and I generated the following problem with GMap (PHP MapScript Sample
Application):
Parse error: syntax error, unexpected 'else' (T_ELSE) in
C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 66.
Request cooperation to solve the problem.
Thank you.
--
Manuel Castro Prado.
http://signet-siglibre.blogspot.com/
San Jos?, Costa Rica.
Escribe texto o la direcci?n de un sitio web, o bien, traduce un
documento
.
Cancelar
Traducir del: gallego
SIGWEB Consultants.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jt at mapmedia.de Tue Apr 29 23:56:48 2014
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Wed, 30 Apr 2014 08:56:48 +0200
Subject: [mapserver-users] Problems with mapserver gmap
In-Reply-To:
References:
Message-ID: <53609EB0.9000603@mapmedia.de>
Hello Manuel,
please show us lines 65-67 of your gmap75.phtml.
J?rg
Am 30.04.2014 05:02, schrieb Manuel Castro:
> Greetings to all.
>
> Install in MS4W - MapServer 4 Windows - version 3.0.6 on Windows 7
> professional and I generated the following problem with GMap (PHP
> MapScript Sample Application):
>
> Parse error: syntax error, unexpected 'else' (T_ELSE) in
> C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 66.
>
> Request cooperation to solve the problem.
>
> Thank you.
>
> --
> Manuel Castro Prado.
> http://signet-siglibre.blogspot.com/
> San Jos?, Costa Rica.
> Escribe texto o la direcci?n de un sitio web, o bien, traduce un
> documento .
> Cancelar
> Traducir del: gallego
> SIGWEB Consultants.
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From thomas.bonfort at gmail.com Wed Apr 30 02:40:27 2014
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Wed, 30 Apr 2014 11:40:27 +0200
Subject: [mapserver-users] MapServer Errors in APACHE logs.
In-Reply-To:
References:
Message-ID:
http://mapserver.org/optimization/debugging.html
if you set the error file to "stderr" then the logs will go to the
apache error log, as others have pointed out.
--
thomas
On 29 April 2014 20:55, Basques, Bob (CI-StPaul)
wrote:
> All,
>
>
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a MapServer
> mis-config (textual error page) and a successful image response. The idea
> is to somehow log those textual message responses in an automated way
> through Apache.
>
>
>
> I?m pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response filters, at
> least from the APACHE point of view . . .. Is a MapServer Text based error
> page considered for inclusion in the Apache error log or??
>
>
>
> Thanks.
>
>
>
> Bobb
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From geographika at gmail.com Wed Apr 30 07:58:45 2014
From: geographika at gmail.com (geographika)
Date: Wed, 30 Apr 2014 16:58:45 +0200
Subject: [mapserver-users] Is PropertyIsNull supported by MapServer?
Message-ID: <53610FA5.4010703@gmail.com>
Hello again!
I'm trying to allow for any records with a NULL property to be returned
via a WFS 1.1 GetFeature request.
OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that
produces XML such as:
YEAR
MapServer (6.4) however doesn't support it, and logs the following
error: msWFSGetFeature(): WFS server error. Invalid or Unsupported
FILTER in GetFeature
Looking at the page http://mapserver.org/ogc/filter_encoding.html page
it seems all 8 tests fail for this filter:
1.3.4.10 GetFeature PropertyIsNull filter
And in the notes below "Test number 1.3.4.10: This property is not
supported in MapServer."
However several recent commits seem to reference this filter e.g.
https://github.com/mapserver/mapserver/commit/7c97d948645e3c04228e25ba2f5333f0a23fd128
Is this for WFS version 2.0? Is so are there any plans to implement
PropertyIsNull for older WFS protocols?
Regards,
Seth
--
web:http://geographika.co.uk
twitter: @geographika
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From even.rouault at mines-paris.org Wed Apr 30 08:03:18 2014
From: even.rouault at mines-paris.org (Even Rouault)
Date: Wed, 30 Apr 2014 17:03:18 +0200
Subject: [mapserver-users] Is PropertyIsNull supported by MapServer?
In-Reply-To: <53610FA5.4010703@gmail.com>
References: <53610FA5.4010703@gmail.com>
Message-ID: <201404301703.18312.even.rouault@mines-paris.org>
Le mercredi 30 avril 2014 16:58:45, geographika a ?crit :
> Hello again!
>
> I'm trying to allow for any records with a NULL property to be returned
> via a WFS 1.1 GetFeature request.
> OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that
> produces XML such as:
>
>
>
> YEAR
>
>
>
> MapServer (6.4) however doesn't support it, and logs the following
> error: msWFSGetFeature(): WFS server error. Invalid or Unsupported
> FILTER in GetFeature
> Looking at the page http://mapserver.org/ogc/filter_encoding.html page
> it seems all 8 tests fail for this filter:
>
> 1.3.4.10 GetFeature PropertyIsNull filter
>
> And in the notes below "Test number 1.3.4.10: This property is not
> supported in MapServer."
> However several recent commits seem to reference this filter e.g.
> https://github.com/mapserver/mapserver/commit/7c97d948645e3c04228e25ba2f533
> 3f0a23fd128 Is this for WFS version 2.0? Is so are there any plans to
> implement PropertyIsNull for older WFS protocols?
I've not tried, but the implementation of PropertyIsNull should also work with
WFS 1.1.0
>
> Regards,
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
--
Geospatial professional services
http://even.rouault.free.fr/services.html