Re: [MapServer-users] multiple shapepaths

2023-12-06 Thread Lime, Steve D (MNIT) via MapServer-users
IMHO, if you do a SHAPEPATH at the layer level then you might as well just add 
the full-path to the DATA element. You’re not really gaining anything with the 
additional complexity. Did the idea of using runtime variables not pan out?

From: MapServer-users  On Behalf Of 
Jan Hartmann via MapServer-users
Sent: Wednesday, December 6, 2023 1:14 AM
To: Steve Lime 
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] multiple shapepaths

How about a shapepath at the layer level? I am combining 20 years of working 
with old maps in three (or four :-)) different countries (Netherlands, Germany 
and Flemish and Walloon Belgium), all in their own formats, projections, 
directories an servers. It would help to keep my applications (and my mind) 
clear if I could use the appropriate shapepaths. And as to portability, it is 
essential to use relative paths. Just try to move a website to a new server 
with a differently named filesystem, if all paths are hard coded.

Jan


Op 5 dec 2023 om 15:43 heeft Steve Lime 
mailto:sdl...@gmail.com>> het volgende geschreven:

It won’t work. A configuration is loaded in entirety first, and then applied as 
necessary.

On Tue, Dec 5, 2023 at 7:21 AM Jan Hartmann via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>> wrote:
Not sure. I cannot get it working anyway. Any ideas, Steve?

On 04/12/2023 10:10, Jörg Thomsen (WhereGroup) via MapServer-users wrote:
> Hi,
>
> I am not sure, but perhaps overwriting it, would work?
>
> MAP
>
>   shapepath 'blah'
>
>   Layer 1
>   Layer 2
>
>   shapepath 'blubb'
>
>   Layer 3
>   Layer 4
>
> Jörg
>
>
>
> Am 02.12.23 um 19:32 schrieb Jan Hartmann via MapServer-users:
>> Yes, that is what I sought, didn't know it was possible. Thanks!
>>
>> Jan
>>
>> On 02/12/2023 19:29, Steve Lime wrote:
>>> One other thought, you can use multiple paths via runtime subs to
>>> approximate what I think you’re looking for, so:
>>>
>>> WEB
>>>   VALIDATION
>>> path1_default “/opt/path1”
>>> path1 “^\/opt\/path1$”
>>>   path2_default “/opt/path2”
>>>   path2 “^\/opt\/path2$”
>>>   END
>>> END
>>>
>>> Then in DATA values you’d use %path1% or %path2%. This is another
>>> use case for variables that was suggested recently. We could,
>>> perhaps, define a way to mark something as immutable via url so the
>>> regex could be simplified and only the default would ever be used
>>> (e.g. “path2” “immutable”).
>>>
>>> —Steve
>>>
>>> On Fri, Dec 1, 2023 at 11:28 PM Steve Lime 
>>> mailto:sdl...@gmail.com>> wrote:
>>>
>>> Nope, just the one value.
>>>
>>> On Fri, Dec 1, 2023 at 1:02 PM Jan Hartmann via MapServer-users
>>> 
>>> mailto:mapserver-users@lists.osgeo.org>> 
>>> wrote:
>>>
>>> Hi,
>>>
>>> Is it possible to use multiple paths in a shapepath?
>>> ./data1:./data2
>>> does not work
>>>
>>> Jan
>>> ___
>>> MapServer-users mailing list
>>> 
>>> MapServer-users@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>> ___
>> MapServer-users mailing list
>> MapServer-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>

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


Re: [MapServer-users] Who remembers the truth about antialiasing?

2023-11-15 Thread Lime, Steve D (MNIT) via MapServer-users
Looking at the code, the keyword is still in place in 8.0. It is recognized in 
the STYLE object but is silently ignored inside a LABEL object. I didn't check 
rendering code specifically to see what true vs false values affected. So, I 
think your conclusions are correct.

From: MapServer-users  On Behalf Of 
Rahkonen Jukka via MapServer-users
Sent: Wednesday, November 15, 2023 12:59 PM
To: Mapserver-Users (mapserver-users@lists.osgeo.org) 

Subject: [MapServer-users] Who remembers the truth about antialiasing?

Hi,

When Mapserver started to use AGG renderer everybody thought that antialiasing 
is not only the strength of the library but also the only way AGG can render. 
See https://mapserver.org/output/agg.html and 
https://lists.osgeo.org/pipermail/mapserver-users/2007-September/025467.html.
But then some Mapserver users noticed that AGG (and Mapnik) can also do aliased 
rendering at least for lines. Discussion on the mailing list 
https://lists.osgeo.org/pipermail/mapserver-users/2017-October/080278.html 
yielded a GitHub issue https://github.com/MapServer/MapServer/issues/5508 and a 
commit 
https://github.com/erik-h11/mapserver/commit/9ca99e763738fba7acaea6089afb5b5b7cd6e699.

However, the Mapserver documentation is unclear 
https://mapserver.org/mapfile/style.html#mapfile-style-antialias. I understand 
it so that setting antialias has not been functional since 7.0, and in 8.0 the 
whole keyword was removed.

"ANTIALIAS [true|false]
Removed in version 8.0: GD support was removed in 7.0 (and this mapfile 
parameter was removed in 8.0)
Should antialiasing be applied to the style. For line rendering only. Default 
is false."

My conclusions at the moment are:

  *   ANTIALIAS true|false does work in STYLE. It affects only lines, but 
polygon outlines are also lines. The default is TRUE.
  *   ANTIALIAS does not have an effect in other places: LABEL and SYMBOL. They 
are always antialiased.

If that is correct I may have a try with improving the documentation.

I started to experiment with antialias because I was not very satisfied with a 
very simple map that has only lines and labels. For my mind the lines on that 
map look better without antialiasing. Unfortunately I could not do anything for 
the labels. Especially dashes turn out light grey and blurry. The font is 
truetype, Vera, and the text color in the mapfile is pure black. All hints for 
making labels sharper are welcome.
[cid:image001.png@01DA17CC.42C69A10]

-Jukka Rahkonen-



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


Re: [MapServer-users] internal MapServer scaling

2023-11-15 Thread Lime, Steve D (MNIT) via MapServer-users
There is not. You'd do that (if it's possible) at the web server configuration 
level.

From: MapServer-users  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Wednesday, November 15, 2023 9:49 AM
To: Marcin Niemyjski via MapServer-users 
Subject: [MapServer-users] internal MapServer scaling

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hello,

Is there any environmental variable corresponding to the number of internal 
MapServer scaling (i.e., the number of maximal MapServer processes)? I guess 
FastCGI is responsible for this. Is it possible to manage it from the 
Dockerfile?

Best,
Marcin


[https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png]
Book time to meet with 
me

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


Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

2023-10-30 Thread Lime, Steve D (MNIT) via MapServer-users
Map-level metadata lives in the WEB object...

From: MapServer-users  On Behalf Of 
Jan Hartmann via MapServer-users
Sent: Monday, October 30, 2023 12:46 PM
To: Vassilis Chatzigiannakis ; mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

Almost there. There are additional migration examples in: 
https://ms4w.com/trac/wiki/MigrationGuide5.x


I wrote wrapper functions for the old ms_new... functions, and can create that 
way a new mapObj called $oMap.

The "set" function has been  renamed  to "__set" : not 
$oMap->set("maxsize",6020), but: ;$oMap->__set("maxsize",6020);

Layers can be declared as before:  $layer = $oMap->getLayer(1).

Metadata have to be set as follows:

Not: $layer->setMetadata("...","..."); but: $layer->metadata->set("...","...")

However, I cannot set the metadata of the mapObj: 
$oMap->metadata->set("...","...") gives: "Undefined array key "metadata""

Any idea?

On 29/10/2023 07:52, Vassilis Chatzigiannakis wrote:
Yes the documentation is a mess .
I worked with this reference:

https://mapserver.org/mapscript/mapscript-api/index.html

So, you start by
$oMap = new mapObj($mapfile);

Best regards,
Vassilis


From: Jan Hartmann 
Sent: Saturday, October 28, 2023 9:14 PM
To: Vassilis Chatzigiannakis ; 
mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

This seems to work.  And it says so in the migration guide 
(https://mapserver.org/mapscript/php/migration_guide.html):

all of your PHP scripts (that leverage MapServer objects and functions) must 
now always first include the generated mapscript.php file containing MapServer 
constants:

But could it be that only "$m = new mapObj('...');" is accepted, and 
"$m=ms_newMapObj('...');" isn't? The docs still mention the old call 
(https://mapserver.org/mapscript/php/phpmapscript.html
On 28/10/2023 09:11, Vassilis Chatzigiannakis wrote:
Hi,
I did it recently. There should be a mapscript.php file in the same folder as 
the  php_mapscriptng.so extension.
You need to include it in your php script.

Best,
Vassilis


From: MapServer-users 

 On Behalf Of Jan Hartmann via MapServer-users
Sent: Friday, October 27, 2023 9:42 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] Docker image for MapServer with PHP-MapScript

I made a docker version of mapserver/php-mapscript myself, based on Ubuntu 
22.04. I installed all required libraries with apt, and compiled mapserver and 
mapscript according to instructions. No problem at all.

At the end I got the following from phpinfo();




mapscript
MapServer Version
MapServer version 8.0.1 PROJ version 9.3 GDAL version 3.4 OUTPUT=PNG 
OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF

But no mapscript function or object was regognized in my PHP-scripts:

PHP Fatal error:  Uncaught Error: Class "mapObj" not found in 
/virdir/www_root/test.php:2
Stack trace:
#0 {main}
  thrown in /virdir/www_root/test.php on line 2


I am really desparate. Has anyone ever succeeded to get php_mapscriptng.so to 
work?  Or does anyone know of a working Docker image for MapServer with PHP 
MapScript?

Jan
On 21/10/2023 05:40, Jan Hartmann wrote:
I tried this with serveral versions of PHP and MapServer, but got always the 
same result. Can anyone point me to a Docker image for MapServer + 
PHP-MapScript?

Jan
On 19/10/2023 18:12, Jan Hartmann wrote:
Still not there. Everything has been installed, and phpinfo() gives:
MapServer Version
MapServer version 8.0.1 PROJ version 9.3 GDAL version 3.7 OUTPUT=PNG 
OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=OGCAPI_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF

But calling "$map = new mapObj('mapfile.map');" gives:

Fatal error: Uncaught Error: Class "mapObj" not found in 
/mnt/virdir/www_root/test/test_mapscript.php:2 Stack trace: #0 {main} thrown in 
/mnt/virdir/www_root/test/test_mapscript.php on line 2

Any idea?

Jan




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


Re: [MapServer-users] wms time validation of time parameter against timeextent gives unexpected results

2023-02-09 Thread Lime, Steve D (MNIT) via MapServer-users
So, if you turn on logging, what shows up in terms of Pg queries.

-Original Message-
From: MapServer-users  On Behalf Of 
Clausen Marcel via MapServer-users
Sent: Tuesday, February 7, 2023 7:37 AM
To: sdl...@gmail.com
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] wms time validation of time parameter against 
timeextent gives unexpected results

Hello Steve


Thank you for your response,
we would have expected that too.

with wms 1.1 the service response is the same.

with this metadata "wms_timeextent" "2005/2022"
the service response is:

http://localhost:/local/?SERVICE=WMS=1.1.0=GetMap=image/png=true=ch.swisstopo.lubis-bildstreifen=EPSG:2056==860=600=242,105,285,135=2022-01-01/2022-12-31

 
 
msWMSApplyTime: WMS server error. Time value(s) 2022-01-01/2022-12-31 given is 
invalid or outside the time extent defined (2005/2022).



The only work-around we found so far is to set the time-range in the metadata 
with a date precision of day:
"wms_timeextent" "2005-01-01/2022-12-31" but then in the getcap we would have 
this information:

2005-01-01/2022-12-31

which is not representing the real nature of this dataset, the time resolution 
here should be a year.

Best regards
Marcel




Von: Steve Lime 
Gesendet: Montag, 6. Februar 2023 17:48:26
An: Clausen Marcel swisstopo
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [MapServer-users] wms time validation of time parameter against 
timeextent gives unexpected results

Does WMS 1.1 behave the same? I suppose it comes down to how 2022 is 
interpreted as part of a range, I would have expected it would mean any date in 
that year. Sounds like it's behaving like strictly less than 2022-01-01. What 
happens if you set the range using full dates, so something like: 
20050101/20221231?

--Steve

On Thu, Feb 2, 2023 at 3:33 AM Clausen Marcel via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>> wrote:

Dear all

We have the following question concerning the configuration and usage of time 
enabled wms layers.

We are using the following metadata section for a time-enabled layer:

METADATA
"wms_enable_request" "*"
"wms_title" "lubis_bildstreifen"
"wms_extent" "210 105 285 140"
"wms_timeextent" "2005/2022"
"wms_timeitem" "flugdatum" # this is a date column in postgres
END


The time precision/resolution of the timeextent has to be set as year.

The validation of the time parameter against the time extent with year 
precision gives some strange results. We were using the following getmap 
request for the tests:

localhost:/local/?SERVICE=WMS=1.3.0=GetMap=image/png=true=ch.swisstopo.lubis-bildstreifen=EPSG:2056==860=600=242,105,285,135=2022

parameter:  time=2005
result: returns all features of 2005
expected result:ok

parameter:  time=2022
result: returns all features of 2022
expected result:ok

parameter:  time=2023
result: returns ServiceException [1]
expected result:ok

parameter:  time=2022-01-01
result: returns ServiceException [2]
expected result:we would expect this to be a valid timestamp

parameter:  time=2022-01-01/2022-12-31
result: returns ServiceException [3]
expected result:we would expect this to be a valid timestamp

It seems that if the precision of the time parameter is of -MM or 
-MM-TT the upper bound of the defined timextent 2005/2022 is not respected 
correctly.
We got the same result with the timextent defined  as: 2005/2022/P1Y

our mapserver version is:


Does someone have some insights or hints?

Best regards
Clausen Marcel

[1]
msWMSApplyTime: WMS server 
error. Time value(s) 2023 given is invalid or outside the time extent defined 
(2005/2022).

[2]
 msWMSApplyTime: WMS server 
error. Time value(s) 2022-01-01 given is invalid or outside the time extent 
defined (2005/2022). 

[3]
 msWMSApplyTime: WMS server 
error. Time value(s) 2022-01-01/2022-12-31 given is invalid or outside the time 
extent defined (2005/2022). 









___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users=05%7C01%7Csteve.lime%40state.mn.us%7C20a25ea5e6e1488c95a708db0910782a%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638113738576533245%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=ha1sFKw7qRtLxB7ei0D%2FjhcGNTQlgwYz5U0WhLnN3Iw%3D=0
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org

Re: [MapServer-users] [EXTERNAL] Two regular expressions

2023-02-08 Thread Lime, Steve D (MNIT) via MapServer-users
You can also match either with something like:

  ^(GERMAN|FRENCH)$

A good resource for testing is https://www.regextester.com/ and there others 
out there too.

--Steve

From: MapServer-users  On Behalf Of 
Schylberg Lars
Sent: Wednesday, February 8, 2023 2:07 AM
To: 'mapserver-users@lists.osgeo.org' 
Subject: Re: [MapServer-users] [EXTERNAL] Two regular expressions

Hi,

You need to use a CLASSITEM

LAYER
  ...
  CLASSITEM "LANGUAGE"

  CLASS
EXPRESSION /^GERMAN$/
...
EXPRESSION /^FRENCH$/
 ...
...

Have fun / Lars S.

From: MapServer-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 On Behalf Of Preuß, Sylvia
Sent: den 8 februari 2023 08:24
To: 'mapserver-users@lists.osgeo.org' 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [EXTERNAL] [MapServer-users] Two regular expressions

Hello,

is it possible to do something like that with a regular expression
MAP...
EXPRESSION ('[LANGUAGE]' eq 'GERMAN' OR '[LANGUAGE]' eq 'FRENCH')?
...END

my regular expressions include ^ and $:

EXPRESSION /^RMA$/
EXPRESSION /^RENC$/

Thanks
sylviaobk



Der E-Mail-Dienst des Oberbergischen Kreises dient ausschließlich der 
dienstlichen Kommunikation.
Senden Sie deshalb keine E-Mails privaten Inhalts an E-Mail-Adressen des 
Oberbergischen Kreises.
Es wird darauf hingewiesen, dass neben der Person, an die Ihre E-Mail gerichtet 
ist, auch deren Vertretung im Amt einen unmittelbaren Zugriff auf Ihre 
Nachricht hat. Für Berufsgeheimnisträger und besondere Funktionsträger gelten 
abweichende Regelungen.
Es wird außerdem darauf hingewiesen, dass die Kommunikation per E-Mail ohne 
Authentifizierung und Verschlüsselung unsicher ist, da für unberechtigte Dritte 
grundsätzlich die Möglichkeit der Kenntnisnahme und Manipulation besteht.
Es wird deshalb keine Verantwortung für den Inhalt dieser Nachricht übernommen, 
da eine Manipulation nicht ausgeschlossen werden kann.
Obwohl alle angemessenen Vorkehrungen getroffen wurden, um sicherzustellen, 
dass Anlagen dieser E-Mail virusgeprüft sind, wird empfohlen, anhängende 
Dateien vor dem Öffnen durch Ihr eigenes Virus-Programm zu prüfen, da keinerlei 
Haftung für Schäden übernommen wird, die infolge etwaiger Software-Viren 
entstehen könnten.
Der Inhalt dieser E-Mail ist ausschließlich für die bezeichnete Person 
bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen 
Vertretung sein sollten, beachten Sie bitte, dass jede Form der Kenntnisnahme, 
Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail 
unzulässig ist. In diesem Fall wird darum gebeten, sich mit der absendenden 
Person der E-Mail in Verbindung zu setzen.

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


Re: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver?

2023-01-06 Thread Lime, Steve D (MNIT) via MapServer-users
What isn't working with the configuration you have in place on docker? The 
locations aren't virtual hosts so they'd be sharing a mapserver config file. 
The config file support will fall back to an environment variable if the value 
isn't set explicitly in the config file - we get that for free with the CPL 
functions being used. So, at first glance it seems like having a custom value 
for MS_MAPFILE based on location should work assuming you don't have that value 
set in the mapserver config file.

From: MapServer-users  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Thursday, January 5, 2023 5:46 AM
To: Marcin Niemyjski via MapServer-users 
Subject: [MapServer-users] How to create aliases on mapserver docker image 
camptocamp/mapserver?



Hello,

I'm using camptocamp mapserver docker image. I want to create Aliases so I can 
access several mapfiles using their file names,

example: www.service.pl/WMSNo1 instead of 
www.service.pl?map=/etc/mapserver/WMSNo1.map.

Could you please provide me an example of how to edit /etc/apache2/apache2.conf 
to make it work?

On regular Mapserver I'm using this as alias and it works just fine:
Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv"

   SetHandler cgi-script
   Options ExecCGI
   SetEnv MS_MAPFILE 
"/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map"


On camptocamp I created somthing similiar to code above:

Alias /Sentinel2Ukraine "/usr/local/bin/mapserv"

SetHandler cgi-script
Options ExecCGI
SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"


Alias /Sentinel2Poland "/usr/local/bin/mapserv"

SetHandler cgi-script
Options ExecCGI
SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map"


Best,
Marcin

[cid:image001.png@01D921B4.154084C0]
Book time to meet with 
me

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


Re: [MapServer-users] Format of numeric query results in GML

2022-12-17 Thread Lime, Steve D (MNIT) via MapServer-users
Hi Tanya: You might want to try using an OGR output format 
(https://mapserver.org/output/ogr_output.html#ogr-output). It supports GML as 
well and should provide a little more control and does respect the precision 
metadata.

--Steve

From: MapServer-users  On Behalf Of TC 
Haddad
Sent: Friday, December 16, 2022 4:12 PM
To: Mapserver 
Subject: [MapServer-users] Format of numeric query results in GML

Hi all,

I have a MapServer WMS that is returning GML query results, and all works well 
except that non-integer numeric fields are returning in scientific notation, 
eg.:

4.8601000e+02
1100
3.58893542070e+01
-1.20962789560e+02
7.500e-01

I see there is a metadata setting "gml_[item name]_precision" [1] that should 
allow specifying precision of these fields, but it seems it is not intended for 
GML output. Is this correct?

For example I tried setting this for the SIZE field:

'gml_SIZE_type' 'Real'
'gml_SIZE_precision' '2'

but this had no effect on the GML output:

7.500e-01

Is there another way that I can accomplish better output from this service? The 
source data format is a shapefile, and unlikely to change in this case.

thanks for any suggestions,

Tanya

[1] 
https://mapserver.org/ogc/wfs_server.html
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Lime, Steve D (MNIT) via MapServer-users
Interestingly the SVG-related regression tests all pass using a more complex 
SVG file than what you had shared. Using 8.0, the 
msautotest/misc/data/Road_Works.svg  
(https://github.com/MapServer/MapServer/blob/branch-8-0/msautotest/misc/data/Road_Works.svg)
 file renders fine as a point symbol while your marker_customers.svg does not 
and matches your sample output. Using the current 7.6 branch, both symbols 
render as expected as point symbols.

More digging will be necessary. Are any devs aware of specific changes relative 
to SVG (or vector) symbol support?

--Steve

From: Marcin Niemyjski 
Sent: Wednesday, December 7, 2022 11:27 AM
To: Lime, Steve D (MNIT) ; Marcin Niemyjski via 
MapServer-users 
Subject: Re: Filled SVG symbol after switching to Mapserver 8

I am using the camptocamp/mapserver 8 image. I have not changed anything in the 
default configuration provided as part of the image.

Wysyłane z aplikacji Outlook dla systemu 
iOS<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fo0ukef=05%7C01%7Csteve.lime%40state.mn.us%7C10bb17d44aec4b17776a08dad8783ad5%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060308145753646%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=s3w2L%2Fh%2FYw1IAxcY4cqoZeoF%2F6Q0snFT9%2F7yaQVjyqk%3D=0>
____
Od: Lime, Steve D (MNIT) mailto:steve.l...@state.mn.us>>
Wysłane: Wednesday, December 7, 2022 6:21:39 PM
Do: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski 
via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Temat: RE: Filled SVG symbol after switching to Mapserver 8


Which SVG library are you using - RSVG or Cairo?



From: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>
Sent: Wednesday, December 7, 2022 9:38 AM
To: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>; Marcin Niemyjski via 
MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: Re: Filled SVG symbol after switching to Mapserver 8



Steve,



link to my svgs:

https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/EobJZb14qXRHj34634dWZdgBnZa3r7Qztx4-Z2HVFvZO9A?e=L2hCXj<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudferro-my.sharepoint.com%2F%3Af%3A%2Fp%2Fmniemyjski%2FEobJZb14qXRHj34634dWZdgBnZa3r7Qztx4-Z2HVFvZO9A%3Fe%3DL2hCXj=05%7C01%7Csteve.lime%40state.mn.us%7C10bb17d44aec4b17776a08dad8783ad5%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060308145753646%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=zJA2sroFd%2BwgsGdpctsC1p8GTgeMvoNWss5h54Xrul4%3D=0>

Thanks,

Marcin

________

From: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Wednesday, December 7, 2022 4:33 PM
To: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski 
via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: RE: Filled SVG symbol after switching to Mapserver 8



Hmmm... I'm not aware of any obvious changes between v.7 and v.8 that would 
account for the change and nothing jumps out looking at your mapfile. Would you 
be able to share one of your SVG graphics? --Steve



From: MapServer-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 On Behalf Of Marcin Niemyjski via MapServer-users
Sent: Wednesday, December 7, 2022 6:45 AM
To: Marcin Niemyjski via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [MapServer-users] Filled SVG symbol after switching to Mapserver 8



Hello,



after switching to Mapserver 8 my svg symbols started to be rendered as filled:



how it looks now:

https://pasteboard.co/4K4CIEW6oFIm.png<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2F4K4CIEW6oFIm.png=05%7C01%7Csteve.lime%40state.mn.us%7C10bb17d44aec4b17776a08dad8783ad5%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060308145753646%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=aR2PwDSFeKRZ3y58GB2Zvgv65%2B8zwYF6vAXZGzA5SQU%3D=0>



how it was looking (the good way):

https://pasteboard.co/wDQGW0xzFGRg.png<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2FwDQGW0xzFGRg.png=05%7C01%7Csteve.lime%40state.mn.us%7C10bb17d44aec4b17776a08dad8783ad5%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060308145753646%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=FHhnXrUCQTmWUd1jLag7k68bXFn%2By5HHkDMv1%2FbvUGk%3D=0>



My mapfile:

https://pastebin.com/KRYDEAR2<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FKRYDEAR2=05%7C01%7Csteve.lime%40state.mn.us%7C10bb17d44aec4b17776a08dad8783ad5%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060308145753646%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL

Re: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Lime, Steve D (MNIT) via MapServer-users
Which SVG library are you using - RSVG or Cairo?

From: Marcin Niemyjski 
Sent: Wednesday, December 7, 2022 9:38 AM
To: Lime, Steve D (MNIT) ; Marcin Niemyjski via 
MapServer-users 
Subject: Re: Filled SVG symbol after switching to Mapserver 8

Steve,

link to my svgs:
https://cloudferro-my.sharepoint.com/:f:/p/mniemyjski/EobJZb14qXRHj34634dWZdgBnZa3r7Qztx4-Z2HVFvZO9A?e=L2hCXj<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudferro-my.sharepoint.com%2F%3Af%3A%2Fp%2Fmniemyjski%2FEobJZb14qXRHj34634dWZdgBnZa3r7Qztx4-Z2HVFvZO9A%3Fe%3DL2hCXj=05%7C01%7Csteve.lime%40state.mn.us%7C922190aa01cf433857fb08dad8690441%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060243433667653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C=9QPjLg3mmyPKodGaRFIb1e2SfZeWAGo%2BOZmhd2ri6Ns%3D=0>
Thanks,
Marcin

From: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Wednesday, December 7, 2022 4:33 PM
To: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski 
via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: RE: Filled SVG symbol after switching to Mapserver 8


Hmmm... I'm not aware of any obvious changes between v.7 and v.8 that would 
account for the change and nothing jumps out looking at your mapfile. Would you 
be able to share one of your SVG graphics? --Steve



From: MapServer-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 On Behalf Of Marcin Niemyjski via MapServer-users
Sent: Wednesday, December 7, 2022 6:45 AM
To: Marcin Niemyjski via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [MapServer-users] Filled SVG symbol after switching to Mapserver 8



Hello,



after switching to Mapserver 8 my svg symbols started to be rendered as filled:



how it looks now:

https://pasteboard.co/4K4CIEW6oFIm.png<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2F4K4CIEW6oFIm.png=05%7C01%7Csteve.lime%40state.mn.us%7C922190aa01cf433857fb08dad8690441%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060243433667653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C=pKehb1QGIJpDT%2B9bK9qoKtMvgD4SzNDmrKn8%2B0NmLqQ%3D=0>



how it was looking (the good way):

https://pasteboard.co/wDQGW0xzFGRg.png<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2FwDQGW0xzFGRg.png=05%7C01%7Csteve.lime%40state.mn.us%7C922190aa01cf433857fb08dad8690441%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060243433823880%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C=UqyRS%2FLIQIgQB2FtMy%2FbXZl4YSbJzX4nWslRLRtUy%2Bc%3D=0>



My mapfile:

https://pastebin.com/KRYDEAR2<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FKRYDEAR2=05%7C01%7Csteve.lime%40state.mn.us%7C922190aa01cf433857fb08dad8690441%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638060243433823880%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C=4ScS4ZvanB7YxPhUibR80Y0nxYHF3wAcyBHsR1sqwHM%3D=0>



What can I do to render svg the good way?



Best,

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


Re: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

2022-12-07 Thread Lime, Steve D (MNIT) via MapServer-users
Hmmm... I'm not aware of any obvious changes between v.7 and v.8 that would 
account for the change and nothing jumps out looking at your mapfile. Would you 
be able to share one of your SVG graphics? --Steve

From: MapServer-users  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Wednesday, December 7, 2022 6:45 AM
To: Marcin Niemyjski via MapServer-users 
Subject: [MapServer-users] Filled SVG symbol after switching to Mapserver 8

Hello,

after switching to Mapserver 8 my svg symbols started to be rendered as filled:

how it looks now:
https://pasteboard.co/4K4CIEW6oFIm.png

how it was looking (the good way):
https://pasteboard.co/wDQGW0xzFGRg.png

My mapfile:
https://pastebin.com/KRYDEAR2

What can I do to render svg the good way?

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


Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Lime, Steve D (MNIT) via MapServer-users
Based on that error message you're not running MapServer 8.0 though. That was 
an area that changed between v.7 and v.8 and the error message was updated. V.8 
outputs something like:

  msLoadMap(): Regular expression error. Filename validation failed.

--Steve

From: Marcin Niemyjski 
Sent: Friday, December 2, 2022 9:33 AM
To: Lime, Steve D (MNIT) ; Marcin Niemyjski via 
MapServer-users 
Subject: Re: Mapserver on k8s weird behaviour

Steve,

I'm using Mapserver 8 from camptocamp/mapserver 
https://hub.docker.com/r/camptocamp/mapserver<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fr%2Fcamptocamp%2Fmapserver=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=SuPGI7u3eZOZXcYObRQL011G8FxPgk2TNbCipYb9OPY%3D=0>

Best,
Marcin

From: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Friday, December 2, 2022 4:23 PM
To: Marcin Niemyjski 
mailto:mniemyj...@cloudferro.com>>; Marcin Niemyjski 
via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: RE: Mapserver on k8s weird behaviour


Hi Marcin: Are you using FastCGI? Which version of MapServer? We ran into 
something similar w/FastCGI and version 8 during development where you'd see 
the first instance of an error message but then the server error subsequently. 
It was consistent on some setups but never happened on others. You could try 
applying the fix (see 
https://github.com/MapServer/MapServer/pull/6577<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMapServer%2FMapServer%2Fpull%2F6577=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=Af2O5Gg%2F4FPh%2BaokhLJZ1pWR9sGgpxBWR3bvzlRacYk%3D=0>)
 locally and see if that fixes things. It will be backported to the 7.6 branch 
in the near future.



--Steve



From: MapServer-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 On Behalf Of Marcin Niemyjski via MapServer-users
Sent: Friday, December 2, 2022 8:46 AM
To: Marcin Niemyjski via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [MapServer-users] Mapserver on k8s weird behaviour



Hello,



I am using Mapserver on Kubernetes (LoadBalancer). Everything works great -  
GetMap, GetCapabilities, layers load correctly in QGIS and Leaflet.

However, what caught my attention is that when passing the mapfile's url using 
LoadBalancer/Kubernetes IP, only the first time the message is



msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation 
failed



and every time thereafter



Internal Server Error

The server encountered an internal error or misconfiguration and was unable to 
complete your request.



By refreshing a few times, you may get the expected message again, but this is 
random. As I mentioned - layers and requests load correctly everywhere (also 
after repeated refreshing). Should I be concerned? I would love to understand 
why is this happening ^^



Sample mapfile (but problem occured on all those tested):

https://pastecode.io/s/pfaudfef<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastecode.io%2Fs%2Fpfaudfef=05%7C01%7Csteve.lime%40state.mn.us%7Ceabd7fa6ebbc4966680908dad47a7ab2%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638055919758219015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=WVKFMxZO%2Bb8tJPcyfPiQctXL62e4M1eiuWuhZbhqk5Q%3D=0>

As always - thank you,

Marcin




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


Re: [MapServer-users] Mapserver on k8s weird behaviour

2022-12-02 Thread Lime, Steve D (MNIT) via MapServer-users
Hi Marcin: Are you using FastCGI? Which version of MapServer? We ran into 
something similar w/FastCGI and version 8 during development where you'd see 
the first instance of an error message but then the server error subsequently. 
It was consistent on some setups but never happened on others. You could try 
applying the fix (see https://github.com/MapServer/MapServer/pull/6577) locally 
and see if that fixes things. It will be backported to the 7.6 branch in the 
near future.

--Steve

From: MapServer-users  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Friday, December 2, 2022 8:46 AM
To: Marcin Niemyjski via MapServer-users 
Subject: [MapServer-users] Mapserver on k8s weird behaviour

Hello,

I am using Mapserver on Kubernetes (LoadBalancer). Everything works great -  
GetMap, GetCapabilities, layers load correctly in QGIS and Leaflet.
However, what caught my attention is that when passing the mapfile's url using 
LoadBalancer/Kubernetes IP, only the first time the message is

msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation 
failed

and every time thereafter

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request.

By refreshing a few times, you may get the expected message again, but this is 
random. As I mentioned - layers and requests load correctly everywhere (also 
after repeated refreshing). Should I be concerned? I would love to understand 
why is this happening ^^

Sample mapfile (but problem occured on all those tested):
https://pastecode.io/s/pfaudfef
As always - thank you,
Marcin


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


Re: [MapServer-users] Does MapServer support dot density layers?

2022-11-15 Thread Lime, Steve D (MNIT) via MapServer-users
Not explicitly. There might be a was to simulate something, perhaps doing 
something in a database to create a randomized set of N points within a polygon 
based on a value. Could even precompute that I suppose.

From: MapServer-users  On Behalf Of 
Kyle Qian
Sent: Monday, November 14, 2022 6:23 PM
To: MapServer Users 
Subject: [MapServer-users] Does MapServer support dot density layers?

Hello, I'm running mapserver 7.6.4 and want to draw dot density map for polygon 
layers.  A dot density map uses varying numbers of dots to represent the value 
of properties of a polygon.
I checked the documentation and found nothing related. So currently MapServer 
does not support it?
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] mapserver 8 - CGI map_object substitutions broken?

2022-10-07 Thread Lime, Steve D (MNIT) via MapServer-users
Easy solution - cool. You can do that with straight runsubs and relatively easy 
validation. Here's a nice document on the topic 
https://www.regextutorial.org/regex-for-numbers-and-ranges.php. I updated an 
existing ticket to clean that documentation up and remove some other cruft 
towards the bottom of that documentation.

From: MapServer-users  On Behalf Of 
Tim Kempisty via MapServer-users
Sent: Friday, October 7, 2022 10:34 AM
To: Steve Lime 
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [MapServer-users] mapserver 8 - CGI map_object substitutions 
broken?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Well that's... not shocking.  I'm imagining the regex that might sanitize a URL 
with all that syntax in it... ughh...   *crumplecrumplecrumple* ~toss~

As for my own work... I realized yesterday late that I was going to have to 
find an alternative anyway.  All these maps need to go into Mapcache.  Turning 
that map_object notation into an intuitive mapcache dimension is a big ol Nope. 
 I can likely pass in a parameter on the URL (=10)  and then use 
multiple classes in the vein of  CLASS: EXPRESSION (%fontsize% = 10).  Voila.  
Easy mapcache dimension, easy sanitizing, supports a reasonable number of font 
sizes.

So I guess the item for the maintainers to fix is actually the documentation ( 
https://mapserver.org/cgi/controls.html
 )  which still makes it look like you can use map_object notation on the URL 
in MS8.

Thanks for the info!

-Tim


On Oct 6, 2022, at 3:49 PM, Steve Lime 
mailto:sdl...@gmail.com>> wrote:

Hi Tim: I was wondering if I'd see any messages on that topic. Short story is 
that the functionality was removed in MS8. I never liked the all-or-nothing 
aspect of it and was working on a method to control which objects would be 
allowed to be updated. The solutions I came up with were convoluted and were 
going to add a lot of complexity to the codebase for little value. That 
functionality is poorly documented and by itself overly complicates the code. 
So after a note to mapserver-users trying to judge how much it was used - with 
limited replies - it was decided to remove it. I'm dealing with my own upgrade 
issues as a result, but it's worth it in the end IMHO.

If necessary, it's better to revisit with another method - ideally something 
along the lines of runsubs. The challenge is specifying when to apply them and 
how to validate values. Strings are easy, but numeric/color values aren't so 
we'd need to do something like add runtime bindings (similar to attribute 
bindings) so you'd write SIZE %mysize% instead. One advantage being you could 
reuse the variable across layers.

So, what are the options right now? It sort of depends on your needs. Do you 
need to only support a couple of sizes for a class or do you truly need *any* 
size? Options include:

  *   multiple mapfiles - probably using includes to limit redundancy
  *   class groups
  *   if you're using a db backend I think attribute bindings could work paired 
with runsubs
DATA "shape FROM (select *, %textsize% AS textsize FROM ...)
VALIDATION
"textsize_default" "13"
"textsize" "^8|10|12|14$"
END
CLASS
  LABEL
SIZE [textsize] # I think attribute binding works here
  END
END

  *   MapScript - load the mapfile, do the changes you need, render the map
Happy to discuss further and perhaps other folks have ideas.

--Steve

On Thu, Oct 6, 2022 at 12:47 PM Tim Kempisty via MapServer-users 
mailto:mapserver-users@lists.osgeo.org>> wrote:
Good afternoon, all.

I am migrating a project from MS7 to the new Mapserver 8.0.0, and I've stumbled 
upon evidence that map_object notation support for CGI variable substitution 
may be broken.

Here's the relevant doc for CGI Controls:

https://mapserver.org/cgi/controls.html

Scoll down to the heading:  "Changing map file parameters via a form or a URL"
We have been using the map_object notation method to set custom image sizes and 
font sizes.

Excuse the messy query string.  The important parts are  "_size" and 

[mapserver-users] Question on Feature Use

2022-01-14 Thread Lime, Steve D (MNIT)
Hi all: This is in regard to 
https://mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url
 – we’re seriously thinking about dropping this functionality as part of 8.0. 
It’s just not as relevant as in the past with improvements runtime 
substitutions and SLD. This will allow us to simplify the code related to 
mapfile processing a good bit and just make things easier to maintain in the 
long run. I am curious if and how folks are using this feature – just to 
identify high-value use cases that we might need to address.

--Steve

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


Re: [mapserver-users] truetype symbols as polygon fills?

2021-12-13 Thread Lime, Steve D (MNIT)
I'm not sure offhand. Did you give it a try by chance?

From: MapServer-users  On Behalf Of 
artcliff...@gmail.com
Sent: Monday, December 13, 2021 5:58 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] truetype symbols as polygon fills?

Is it possible currently to use truetype symbols as polygon fill symbols?

The symbol creation page suggests that only hatch and pixmap symbols are used 
for polygon fills but that seems a bit weird to me and am wondering if that is 
just out of date?

If not, where is the best place to make a feature request?


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


Re: [mapserver-users] Apply styling for MVT from using .map file

2021-11-08 Thread Lime, Steve D (MNIT)
Hi! No, there’s no way built-in to export MapServer styling to something a MVT 
client could use. I imagine it would be possible to write something but it’s 
not something I’m aware anyone has a ready-made solution for.

--Steve

From: MapServer-users  On Behalf Of 
?? ??
Sent: Monday, November 8, 2021 6:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Apply styling for MVT from using .map file

Hello everyone!
Is it possible to serve an MVT layer in Openlayers, but using a style from a 
.map file?
Thank you!
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Asking help

2021-08-06 Thread Lime, Steve D (MNIT)
Hi! Seems like more of a question for the pgrouting project… --Steve

From: mapserver-users  On Behalf Of 
Boubacar Bah
Sent: Friday, August 6, 2021 11:24 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Asking help

Hello everyone l have a problem with the extension pgrouting in postgresql. I 
try to execute pgr_dijkstra extension but they show me the function doesn't 
exist . I want to Know how l can load the pgrouting functions in databases the 
version of my postgresql is 12
Thanks before

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


Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-14 Thread Lime, Steve D (MNIT)
Names aren’t valid (or useful) at the style-level. If you remove those lines it 
should work and you’ll get stacked styles for each feature. --Steve

From: Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] 

Sent: Monday, September 14, 2020 7:27 AM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS


We’re using 7.0.1… admittedly a bit of an older version.  Mapserver balks on 
NAME in the STYLE element in that version.

Thanks,
Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272

From: "Lime, Steve D (MNIT)" 
mailto:steve.l...@state.mn.us>>
Date: Friday, September 11, 2020 at 5:17 PM
To: Matthew Cechini 
mailto:matthew.f.cech...@nasa.gov>>, 
"mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>" 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

Hi Matt: Actually that syntax is supported (except for the style NAME 
attribute) and you can have multiple styles inside a class. What version are 
you using? --Steve

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 On Behalf Of Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, 
Inc.]
Sent: Friday, September 11, 2020 2:37 PM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Multiple Styles for a LAYER/CLASS


Greetings,
   I would like to provide multiple styles for the same LAYER/CLASS in our 
mapserver configuration.  Ideally that looks something like this, though of 
course this syntax isn’t currently supported.


CLASS

  NAME "Thermal Anomalies"

 STYLE

 NAME   'default'

 SYMBOL 'circle'

 COLOR  240 40 40

 OUTLINECOLOR  240 40 40

 SIZE 3

 END



 STYLE

 NAME   'blue'

 SYMBOL 'circle'

 COLOR  0 0 255

 OUTLINECOLOR  0 0 255

 SIZE 3

 END

END

   How would I accomplish this given existing functionality?

Thanks,
Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Multiple Styles for a LAYER/CLASS

2020-09-11 Thread Lime, Steve D (MNIT)
Hi Matt: Actually that syntax is supported (except for the style NAME 
attribute) and you can have multiple styles inside a class. What version are 
you using? --Steve

From: mapserver-users  On Behalf Of 
Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
Sent: Friday, September 11, 2020 2:37 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Multiple Styles for a LAYER/CLASS


Greetings,
   I would like to provide multiple styles for the same LAYER/CLASS in our 
mapserver configuration.  Ideally that looks something like this, though of 
course this syntax isn’t currently supported.


CLASS

  NAME "Thermal Anomalies"

 STYLE

 NAME   'default'

 SYMBOL 'circle'

 COLOR  240 40 40

 OUTLINECOLOR  240 40 40

 SIZE 3

 END



 STYLE

 NAME   'blue'

 SYMBOL 'circle'

 COLOR  0 0 255

 OUTLINECOLOR  0 0 255

 SIZE 3

 END

END

   How would I accomplish this given existing functionality?

Thanks,
Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How to dynamically change MapServer's GRID MININTERVAL?

2020-09-03 Thread Lime, Steve D (MNIT)
Hi David: That functionality was geared towards common use cases so I’d bet 
money it’s not supported but I’ll check the code to be sure. If you’re really 
just after 5 vs. 10 then using multiple layers would be an easy work around 
(e.g. grid5 vs grid10). Note that we’re always interested in 500 errors so if 
you are able to pass along how you triggered one that would be helpful. --Steve

From: mapserver-users  On Behalf Of 
David Miller
Sent: Thursday, September 3, 2020 8:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How to dynamically change MapServer's GRID 
MININTERVAL?

I started looking into using something similar to this example of the GRID 
layer definition in a MapServer mapfile that will draw lat/lon line grid at 
least every 5 degrees:

LAYER

  NAME "grid"

  METADATA

"DESCRIPTION" "Grid"

  END

  TYPE LINE

  STATUS ON

  CLASS

NAME "Graticule"

COLOR 0 0 0

LABEL

  COLOR  255 0 0

  FONT "sans"

  TYPE truetype

  SIZE 8

  POSITION AUTO

  PARTIALS FALSE

  BUFFER 2

  OUTLINECOLOR 255 255 255

END

  END

  PROJECTION

"init=epsg:4326"

  END

  GRID

LABELFORMAT '%g°'

MININTERVAL 5

  END

END # Layer

However, I don't want the MININTERVAL value to be hardcoded and would like to 
be able to vary that value by entering a different value in the URL call from a 
web page using the map_object notation. But, I've been unsuccessful. I have 
tried this in the URL call to MapServer:

_layer[grid].grid[0]=MININTERVAL+10 #changing to 10 degrees instead of 5

using the second example at this link: 
https://mapserver.org/cgi/controls.html#cgi-mapfile-change-parameters.
 But, I either get a parsing error or an Internal Server error. I've tried 
turning debug level to 5 and looking at logs but they don't offer any help. 
Perhaps I'm just not using the correct map_object notation, but I'm not sure 
what else to use given the examples in the link. I also attempted to look at 
the MapServer code to no avail.

Perhaps I just can't change this parameter via the URL?

I'm using MapServer v 7.2.2 but it seems like the GRID layer has been available 
for a while now.

Thanks for any help/suggestions/thoughts!

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

Re: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

2019-10-22 Thread Lime, Steve D (MNIT)
The warnings look legit. I did a quick search and neither of those global 
variables are being used anywhere in the source (PNGsig is actually defined 
twice in 7.4, once in mapsymbol.c and again in mapogcsld.c). I assume that 
means they can be removed and/or the warnings can safely be ignored. Perhaps 
your compiler is just newer and therefore smarter?

Are you seeing issues beyond the warnings?

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Flavio Hendry
Sent: Tuesday, October 22, 2019 3:17 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

Hi all

Never had a problem with PIXMAP symbols, this is on a new install (tried
to recompile several times and several versions, Ubuntu 18.04.3 LTS).

We see the following that  might cause the problem, any idea???

[ 21%] Building C object CMakeFiles/mapserver.dir/mapsymbol.c.o
/tmp/mapserver-7.4.2/mapsymbol.c:52:28: warning: ‘JPEGsig’ defined but
not used [-Wunused-const-variable=]
  static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF
hex */
 ^~~
/tmp/mapserver-7.4.2/mapsymbol.c:51:28: warning: ‘PNGsig’ defined but
not used [-Wunused-const-variable=]
  static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26,
10}; /* 89 50 4E 47 0D 0A 1A 0A hex */


THX.


--
Mit freundlichem Gruss / Best regards
Flavio Hendry


TYDAC Inc.  - https://www.tydac.ch/
Swiss Maps  - https://www.mapplus.ch/

  Mit freundlichen Gruessen / Kind Regards
 Flavio Hendry, CEO - mailto:fla...@tydac.ch
 TYDAC AG - https://www.tydac.ch
Geographic Information Solutions
   Optingenstrasse 27 -- CH-3013 Bern
 Tel +41 (0)31 368 0180

Location: 
https://www.mapplus.ch/?lang=en=solrsearch=bern%20optingenstrasse%2027

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

Re: [mapserver-users] wms servers html template output

2019-10-16 Thread Lime, Steve D (MNIT)
Hi Travis: I don’t think there is an “easy” way. I mean you could script 
template creation so that process does the tedious work for you by looking at 
the map. You would create a new-style template (see RFC 36) so everything is in 
one file and then you’d create a single output format reference to that table.

If we wanted to support this via MapServer templates I think we’d need to do 3 
things:


· Extend the [resultset] tag to support “layer_pattern” attribute so 
that it (a regex) could apply to multiple layers (like any/all of them).

· Enhance the [items] and [values] tags to control formatting. 
Currently those just slam the column names and values together in a delimited 
string.

· Enhance the [values] tag processing to allow referencing the 
associated item/column name in the context of formatting.

I’d probably also propose compliance with the item-related metadata that is 
typically used with OGC service outputs to control which items are output…

With those changes you could write a template like so:

// MapServer Template
[resultset layer_pattern="."]
[feature]

[values format=”$item$value]

[/feature]
[resultset]

This would give you an item/value table for any feature for any layer. You 
could also to more horizontal tables using the [items] tag to output one header 
row…

--Steve


From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Travis Kirstine
Sent: Tuesday, October 15, 2019 9:06 AM
To: mapserver-users 
Subject: [mapserver-users] wms servers html template output

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hi all,

I'm struggling a bit with using a generic template for html getfeatureinfo 
requests.  Is there a easy way to create a simple html table containing the 
attribute field names and values for any layer.  I don't want to create a 
separate template for each layer.  Thanks

There was some mention of this here:
http://osgeo-org.1560.x6.nabble.com/Generic-template-for-WMS-GetFeatureInfo-td4227865.html

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

Re: [mapserver-users] mapcache: restricted extent and ruleset to limit cache area seems ineffective

2019-09-06 Thread Lime, Steve D (MNIT)
Is it returning a blank tile? If so that might be expected. I thought mapcache 
would return a blank tile for requests outside the grid extent.

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Mark Volz
Sent: Friday, September 06, 2019 1:36 PM
To: Travis Kirstine 
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache: restricted extent and ruleset to limit 
cache area seems ineffective

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hello,

I am still having issues restricting the extent in my mapcache area using 
rulesets.  I created a rule for all of my zoom levels that has a limited 
visibility extent.  However, Mapcache is still returning imagery for the entire 
grid area even though I created a rule that should only display a limited 
extent.  I am still not sure why the visibility extent rule seems ineffective.

Thanks!


You can set the

empty_img

To return a blank tile.  I believe the status is still 404 - I don't think you 
can control this

On Fri, 30 Aug 2019 at 15:44, Mark Volz 
mailto:markv...@co.lyon.mn.us>> wrote:
Hello,
 I am in the process of limiting the cached area in mapcache.  I am having 
trouble with both the restricted_extent and ruleset parameters.  I first 
started by using restricted_extent such as “LyonCC”.  That parameter seemed to work.  However 
mapcache returned 404 errors for any tiles outside of the restricted extent.  
Next I tried to use rulesets instead.  The rulesets seem to have no effect, and 
new tiles were getting generated outside of the visibility extent.
 Question 1:  When we use restricted extents on a grid should MapCache return a 
transparent tile, white tile, or a 404 error?  Can we control what it returns?
 Question 2:  Do I have my ruleset configured appropriately?
 
LyonCC

 


435567 98889 568247 259687



 Thank You!

Sincerely,
Mark Volz, GISP
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapserver no longer reading pgpass file?

2019-08-21 Thread Lime, Steve D (MNIT)
I've never used that mechanism.


MapServer doesn't read or otherwise utilize that file or environment variable 
itself so the functionality must be inherent to the underlying Postgres C 
client library.


What packages did you update? Perhaps there was a permission change, missing 
Apache module (to set environment variables) or something along those lines?


--Steve



From: mapserver-users  on behalf of 
Thomas Horner 
Sent: Saturday, August 17, 2019 1:09:18 PM
To: mapserver-users@lists.osgeo.org 
Subject: [mapserver-users] Mapserver no longer reading pgpass file?


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hi List,

My MapServer mapfiles have been set up to read a Postgres connection with

`PG:host=... post=... dbname=...` etc for some time now.

I upgraded the packages on my linux box and the mapfiles no longer work (error 
when connecting to postgres). However, running gdalinfo "PG:host... ..." using 
the exact same connection string works fine.

I realized that it's an authentication issue as the mapfiles work fine again 
when I add password=... to the connection string.

I have a pgpass file in the cgi-bin, and one in my home directory which is 
referenced with the PGPASS environment variable. Why would mapserver suddenly 
not provide the correct password or consume the pgpass file anymore? Does it 
need to be somewhere else? Why does it work fine with gdalinfo without the 
password?

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

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Lime, Steve D (MNIT)
They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a 
pretty good job of finding things.

From: Jeremy JK [mailto:jeremy...@yandex.com]
Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) ; mapserver-users 

Subject: Re: [mapserver-users] Compiling mapserver with options

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Steve,
Thanks for the reply
This is what I came up with after viewing the CMakelists file

cmake -DCMAKE_INSTALL_PREFIX=/usr \
  -DWITH_GDAL
  -DWITH_PROJ=/usr/local
  -DWITH_POSTGIS=/usr/bin/pg_config
  -DWITH_CLIENT_WMS
  -DWITH_GEOS=/usr/local/bin/geos-config
  -DWITH_FCGI

but unsure about jpeg, freetype, png
How to compile w/ these options?
Or are they default?



19.08.2019, 02:08, "Lime, Steve D (MNIT)" 
mailto:steve.l...@state.mn.us>>:
That should be a pretty vanilla 7.4 install. The new versions use cmake so from 
source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page 
https://mapserver.org/installation/unix.html<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Finstallation%2Funix.html=02%7C01%7Csteve.lime%40state.mn.us%7C6cb683c789e54741d7b708d724b14fc3%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C637018216278270884=LKXDGXW7aSXA3SglCRW8skjYAHYGPhp64pZnuxtF65E%3D=0>
 has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Jeremy JK mailto:jeremy...@yandex.com>>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] Compiling mapserver with options

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hello all,

OK
My supervisor wants me to compile mapserver version 6.2.1 like so

./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg 
--with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient 
--with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no 
--with-gd --with-png

now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 
7.3 server

But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance

Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123






Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123



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

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Lime, Steve D (MNIT)
That should be a pretty vanilla 7.4 install. The new versions use cmake so from 
source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page https://mapserver.org/installation/unix.html has complete 
instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users  on behalf of 
Jeremy JK 
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users 
Subject: [mapserver-users] Compiling mapserver with options


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hello all,

OK
My supervisor wants me to compile mapserver version 6.2.1 like so

./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg 
--with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient 
--with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no 
--with-gd --with-png

now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 
7.3 server

But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance

Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123



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

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-08-12 Thread Lime, Steve D (MNIT)
Forgot the link: https://mapserver.org/development/rfc/ms-rfc-90.html.

From: Lime, Steve D (MNIT)
Sent: Monday, August 12, 2019 10:23 AM
To: Andrea Peri 
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] ows_denied_ip_list is working ?

The original RFC that proposed the feature addition does reference using CIDR 
notation for ips. I’ve not tested that specifically though…

From: Andrea Peri [mailto:aperi2...@gmail.com]
Sent: Monday, August 12, 2019 5:56 AM
To: Lime, Steve D (MNIT) mailto:steve.l...@state.mn.us>>
Cc: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] ows_denied_ip_list is working ?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hi Steve,

thx for your test.
I do more test to try to understand better what I'm wrong.

Just to do a better with an more large IP range.
Is possibile to use the IP/CIDR sintax to describe the IP range or need to list 
all the IP denied ?

A.

Thx,


Il giorno mer 31 lug 2019 alle ore 23:50 Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> ha scritto:
Hi Andrea: I just tested with MapServer 6.4 and 7.4 and it works as expected, 
at least with WMS GetMap requests. My process was:


1.   Make a WMS request and check the logs to confirm the IP I was showing 
up as.

2.   Edit the mapfile and add “ows_denied_ip_list” “my IP” to the WEB 
METADATA section.

3.   Perform the same WMS request in the browser – result was a WMS 
exception.

4.   Edit the mapfile and change the ip slightly so it shouldn’t match but 
leaving the directive in place.

5.   Perform the same WMS request in the browser – result was a PNG image.

I did tried multiple IPs in the list, with and without my IP and everything 
worked as expected. I did not try using an external file. I did notice with my 
IP in the list a GetMap request was blocked, a GetCapabilities request was not. 
I didn’t try a GetFeature… request.

Makes me wonder if you have the right IP for your test setup?

--Steve

From: Andrea Peri [mailto:aperi2...@gmail.com<mailto:aperi2...@gmail.com>]
Sent: Tuesday, July 30, 2019 2:30 PM
To: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I was using a compiled version from a recent clone of master .

I try to apply ot to WEB-> METADATA section section using this kind of values:

I try to use a list of IP directly listed using a space as separator
  "ows_denied_ip_list" "xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy zzz.zzz.zzz.zzz"
or using a file where there is the same list one IP for line

 "ows_denied_ip_list" "file:/path-to-file/file-with-ip-list.txt"

The values listed are the possibly values of our proxy.
So I guess setting them as denied IP mapserver should refuse to give a map to 
every client wms using them.
Instead the map are still showed.

I'm using QGIS as wms client to test it.

A.


Il mar 30 lug 2019, 04:21 Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> ha scritto:
I will test and reply back. What specific version, config and tests did you try 
on your end?

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Andrea Peri mailto:aperi2...@gmail.com>>
Sent: Saturday, July 27, 2019 9:02:07 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I see my version of mapserver don't work the ows_denied_ip_list.
I see ths other mex:
http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2Fows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html=02%7C01%7Csteve.lime%40state.mn.us%7C564cd4ee969a496b496208d71f13b9d6%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637012041888127305=qbq9hlhRcfYQ7FdObWXGxM5w%2BYfjxLUxWc7tD8jRnYs%3D=0>

I try all the same option but nothing is work.

So I guess that instead that the ows_denied_ip_list was dismissed.
Is this confirmed ?

Thx.

A.


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-08-12 Thread Lime, Steve D (MNIT)
The original RFC that proposed the feature addition does reference using CIDR 
notation for ips. I’ve not tested that specifically though…

From: Andrea Peri [mailto:aperi2...@gmail.com]
Sent: Monday, August 12, 2019 5:56 AM
To: Lime, Steve D (MNIT) 
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] ows_denied_ip_list is working ?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hi Steve,

thx for your test.
I do more test to try to understand better what I'm wrong.

Just to do a better with an more large IP range.
Is possibile to use the IP/CIDR sintax to describe the IP range or need to list 
all the IP denied ?

A.

Thx,


Il giorno mer 31 lug 2019 alle ore 23:50 Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> ha scritto:
Hi Andrea: I just tested with MapServer 6.4 and 7.4 and it works as expected, 
at least with WMS GetMap requests. My process was:


1.   Make a WMS request and check the logs to confirm the IP I was showing 
up as.

2.   Edit the mapfile and add “ows_denied_ip_list” “my IP” to the WEB 
METADATA section.

3.   Perform the same WMS request in the browser – result was a WMS 
exception.

4.   Edit the mapfile and change the ip slightly so it shouldn’t match but 
leaving the directive in place.

5.   Perform the same WMS request in the browser – result was a PNG image.

I did tried multiple IPs in the list, with and without my IP and everything 
worked as expected. I did not try using an external file. I did notice with my 
IP in the list a GetMap request was blocked, a GetCapabilities request was not. 
I didn’t try a GetFeature… request.

Makes me wonder if you have the right IP for your test setup?

--Steve

From: Andrea Peri [mailto:aperi2...@gmail.com<mailto:aperi2...@gmail.com>]
Sent: Tuesday, July 30, 2019 2:30 PM
To: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I was using a compiled version from a recent clone of master .

I try to apply ot to WEB-> METADATA section section using this kind of values:

I try to use a list of IP directly listed using a space as separator
  "ows_denied_ip_list" "xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy zzz.zzz.zzz.zzz"
or using a file where there is the same list one IP for line

 "ows_denied_ip_list" "file:/path-to-file/file-with-ip-list.txt"

The values listed are the possibly values of our proxy.
So I guess setting them as denied IP mapserver should refuse to give a map to 
every client wms using them.
Instead the map are still showed.

I'm using QGIS as wms client to test it.

A.


Il mar 30 lug 2019, 04:21 Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> ha scritto:
I will test and reply back. What specific version, config and tests did you try 
on your end?

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Andrea Peri mailto:aperi2...@gmail.com>>
Sent: Saturday, July 27, 2019 9:02:07 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I see my version of mapserver don't work the ows_denied_ip_list.
I see ths other mex:
http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2Fows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html=02%7C01%7Csteve.lime%40state.mn.us%7C564cd4ee969a496b496208d71f13b9d6%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637012041888127305=qbq9hlhRcfYQ7FdObWXGxM5w%2BYfjxLUxWc7tD8jRnYs%3D=0>

I try all the same option but nothing is work.

So I guess that instead that the ows_denied_ip_list was dismissed.
Is this confirmed ?

Thx.

A.


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] labels for pie|bar charts

2019-08-01 Thread Lime, Steve D (MNIT)
MapServer now supports multiple labels per feature so perhaps it’s a reasonable 
addition. Will take a peek...

From: Nicol Hermann 
Sent: Thursday, August 1, 2019 1:37:13 PM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org 
Subject: Re: [mapserver-users] labels for pie|bar charts

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Thanks Steve!
Yes, correct. Labeling slices was not possible back then as well.
The annotation layer was kind of a workaround.

Will give it a try with your code snippet.

Thanks
Nicol


Am Donnerstag, den 01.08.2019, 18:29 + schrieb Lime, Steve D
(MNIT):
> You weren't labeling slices with PHP from the looks of it, just the
> underlying feature using an annotation layer. So setting up a layer
> to behave like an annotation layer is doable... Here's a simple
> snippet for the state of Minnesota polygon:
>
>   LAYER
> NAME bdry_statepy2
> STATUS DEFAULT
> TYPE POLYGON
> DATA ' bdry_statepy2'
> CLASS
>   LABEL
> TEXT 'Minnesota'
> POSITION CC
> SIZE LARGE
> COLOR 0 0 0
>   END
> END
>   END
>
> Basically using a class with no styles.
>
> I don't recall the individual chart components (pies, bars, etc...)
> as being labelable. It's not covered in the docs or the original RFC.
> I will whip up a test case to confirm the behavior though.
>
> --Steve
>
> -Original Message-
> From: Nicol Hermann [mailto:mapser...@geoworld.de]
> Sent: Thursday, August 01, 2019 12:33 PM
> To: Lime, Steve D (MNIT) ;
> mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] labels for pie|bar charts
>
> This message may be from an external email source.
> Do not select links or open attachments unless verified. Report all
> suspicious emails to Minnesota IT Services Security Operations
> Center.
>
>
>
> Hello Steve,
>
> you are right. With older versions of Mapserver I used 2 layers.
> One for the chart (type=chart) and the other one to do the labeling
> (type=annotation).
> I used PHP Mapscript at that time. See the code snippet for the
> annotation layer below. It uses the same data source like the
> chartlayer.
>
> $layer = ms_newLayerObj($Map);
> $layer -> set('status', MS_ON);
> $layer -> set('labelcache', MS_ON);
> $layer -> set('type', MS_LAYER_ANNOTATION );
> $layer -> set('data', $datapath);
> $layer -> set('status', MS_ON);
> $poClass = ms_newClassObj($layer);
> $poClass-> set("name", "Beschrifung " );
> $felder= '(';
> foreach( $chartLayer['fieldlist'] as $feld ){
>$felder .= sprintf('%s = [%s]-', $feld, $feld);
> }
> $felder .=sprintf(')');
> $poClass->settext($layer, "$felder");
> $poClass-> label -> set('font', "arial");
> $poClass-> label -> set('type', MS_TRUETYPE);
> $poClass-> label -> set('size', 8);
> $poClass-> label -> set('antialias', MS_TRUE);
> $poClass-> label -> color -> setRGB ( 0, 0, 0 );
> $poClass-> label -> set ('wrap', 0x2d); // use '-' to do a line break
> $poClass-> label ->set('position', MS_AUTO);
> $poClass-> label ->set('partials', MS_FALSE);
> $poClass-> label ->backgroundcolor->setRGB('240','240','240');
>
> Unfortunately this approach do not work anymore as the annotation
> type
> is not longer supported.
>
> The MapFile which I am trying currently looks like this:
>
>   LAYER
> DATA
> "/home/nicol/public_html/geoworld/gw2_1und1/data/brd/media.shp"
> LABELITEM "NAME"
> NAME "Staedtecharts"
> PROJECTION
>   "init=epsg:4326"
> END # PROJECTION
> STATUS DEFAULT
> TYPE CHART
> # PROCESSING "CHART_SIZE_RANGE=bevzahl"
> # PROCESSING "CHART_SIZE=130" # Fixe Groesse
> PROCESSING "CHART_TYPE=pie"  # pie, bar
> PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval
> maxval exponent"
> PROCESSING "CHART_SIZE_RANGE=bevzahl 30 300 10 200"
> LABELITEM "NAME"
> UNITS DD
> CLASS
>   NAME "Maennlich"
>   TEXT 'Hallo'
>   LABEL
> FONT "arial"
> SIZE 30
> COLOR 255 0 0
> ENCODING "UTF-8"
> MINFEATURESIZE AUTO
> OFFSET 0 0
>     POSITION AUTO
> SHADOWSIZE 1 1
>   END # LABEL
>   STYLE
> COLOR 192 192 192
> OUTLINECOLOR 0 0 0
> SIZE [mann]
>  

Re: [mapserver-users] labels for pie|bar charts

2019-08-01 Thread Lime, Steve D (MNIT)
You weren't labeling slices with PHP from the looks of it, just the underlying 
feature using an annotation layer. So setting up a layer to behave like an 
annotation layer is doable... Here's a simple snippet for the state of 
Minnesota polygon:

  LAYER
NAME bdry_statepy2
STATUS DEFAULT
TYPE POLYGON
DATA ' bdry_statepy2'
CLASS
  LABEL
TEXT 'Minnesota'
POSITION CC
SIZE LARGE
COLOR 0 0 0
  END
END
  END

Basically using a class with no styles.

I don't recall the individual chart components (pies, bars, etc...) as being 
labelable. It's not covered in the docs or the original RFC. I will whip up a 
test case to confirm the behavior though.

--Steve

-Original Message-
From: Nicol Hermann [mailto:mapser...@geoworld.de] 
Sent: Thursday, August 01, 2019 12:33 PM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] labels for pie|bar charts

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello Steve,

you are right. With older versions of Mapserver I used 2 layers.
One for the chart (type=chart) and the other one to do the labeling
(type=annotation).
I used PHP Mapscript at that time. See the code snippet for the
annotation layer below. It uses the same data source like the chartlayer.

$layer = ms_newLayerObj($Map);
$layer -> set('status', MS_ON);
$layer -> set('labelcache', MS_ON);
$layer -> set('type', MS_LAYER_ANNOTATION );
$layer -> set('data', $datapath);
$layer -> set('status', MS_ON);
$poClass = ms_newClassObj($layer);
$poClass-> set("name", "Beschrifung " );
$felder= '(';
foreach( $chartLayer['fieldlist'] as $feld ){
   $felder .= sprintf('%s = [%s]-', $feld, $feld);
}
$felder .=sprintf(')');
$poClass->settext($layer, "$felder");
$poClass-> label -> set('font', "arial");
$poClass-> label -> set('type', MS_TRUETYPE);
$poClass-> label -> set('size', 8);
$poClass-> label -> set('antialias', MS_TRUE);
$poClass-> label -> color -> setRGB ( 0, 0, 0 );
$poClass-> label -> set ('wrap', 0x2d); // use '-' to do a line break
$poClass-> label ->set('position', MS_AUTO);
$poClass-> label ->set('partials', MS_FALSE);
$poClass-> label ->backgroundcolor->setRGB('240','240','240');

Unfortunately this approach do not work anymore as the annotation type
is not longer supported.

The MapFile which I am trying currently looks like this:

  LAYER
DATA
"/home/nicol/public_html/geoworld/gw2_1und1/data/brd/media.shp"
LABELITEM "NAME"
NAME "Staedtecharts"
PROJECTION
  "init=epsg:4326"
END # PROJECTION
STATUS DEFAULT
TYPE CHART
# PROCESSING "CHART_SIZE_RANGE=bevzahl"
# PROCESSING "CHART_SIZE=130" # Fixe Groesse
PROCESSING "CHART_TYPE=pie"  # pie, bar
PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval
maxval exponent"
PROCESSING "CHART_SIZE_RANGE=bevzahl 30 300 10 200"
LABELITEM "NAME"
UNITS DD
CLASS
  NAME "Maennlich"
  TEXT 'Hallo'
  LABEL
FONT "arial"
SIZE 30
COLOR 255 0 0
ENCODING "UTF-8"
MINFEATURESIZE AUTO
OFFSET 0 0
POSITION AUTO
SHADOWSIZE 1 1
  END # LABEL
  STYLE
COLOR 192 192 192
OUTLINECOLOR 0 0 0
SIZE [mann]
  END # STYLE
END # CLASS
CLASS
  NAME "Weiblich"
  STYLE
SIZE [frau]
COLOR 255 255 0
    OUTLINECOLOR 0 0 0
  END
END
  END # LAYER


My hope was that the chart type now also takes care of the labeling.

Any idea how to realize the labeling for the individual slices now?

Thanks
Nicol


Am Donnerstag, den 01.08.2019, 14:34 + schrieb Lime, Steve D
(MNIT):
> Hi Nicol: Do you you have a sample mapfile that showed your approach?
> Since CHART and ANNOTATION are both layer types that implies multiple
> layers. --Steve
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org
> ] On Behalf Of Nicol Hermann
> Sent: Wednesday, July 31, 2019 2:52 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] labels for pie|bar charts
>
> This message may be from an external email source.
> Do not select links or open attachments unless verified. Report all
> suspicious emails to Minnesota IT Services Security Operations
> Center.
>
>
>
> Hello,
>
> I am trying to understand how labeling/annotation with layer type
> 'chart' for the individual slices e.g. of a PIE/BAR chart would work
> (
> https://gcc01.safelinks.protection.outlook.com/?url=ht

Re: [mapserver-users] labels for pie|bar charts

2019-08-01 Thread Lime, Steve D (MNIT)
Hi Nicol: Do you you have a sample mapfile that showed your approach? Since 
CHART and ANNOTATION are both layer types that implies multiple layers. --Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Nicol Hermann
Sent: Wednesday, July 31, 2019 2:52 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] labels for pie|bar charts

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello,

I am trying to understand how labeling/annotation with layer type
'chart' for the individual slices e.g. of a PIE/BAR chart would work (
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Foutput%2Fdynamic_charting.htmldata=02%7C01%7Csteve.lime%40state.mn.us%7C6232218953ac431b0e4c08d715f1180f%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637001997557352724sdata=ZFkZ8QsEuUaAGFyFIxfZjWK9XR8QeyDBv390t2p%2F23o%3Dreserved=0).
I have tried to set a LABELITEM on layer level, a LABEL block within
the CLASS section, a TEXT property in the CLASS block but none of my
attempts show any labels.
In earlier versions of Mapserver I have used the ANNOTATION layer type
to get labels but this type is now deprecated for 7.x versions.
Any ideas?
Thank you very much.

Nicol

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C6232218953ac431b0e4c08d715f1180f%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637001997557352724sdata=dceZhhKxeZLbr717UmidG4ujIcnThwm7mlU5bIoGfBQ%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Projection help

2019-07-31 Thread Lime, Steve D (MNIT)
How are you setting an extent? The default extent you’re defining is in lat/lon.

From: Ian Walberg 
Sent: Wednesday, July 31, 2019 5:34:05 PM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org 
Subject: RE: Projection help


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Steve,



The map file below draws a non Mercator projection and if the epsg:4326 line is 
uncommented then the map is blank.



This is on a windows machine using Mapserver 7.0.7 from MS4W 3.2.6.



Any ideas?



Thanks



Ian





MAP

NAME global_map

STATUS ON

SIZE 1024 600

EXTENT -180 -90 180 90

 LAYER

   NAME "Earth_Vector"

   STATUS DEFAULT

   TYPE LINE

   DEBUG 3



   PROJECTION

#"init=epsg:4326"

   END



   DATA "../shp/land/ne_110m_land.shp"



   CLASS

 STYLE

   ANTIALIAS TRUE

   COLOR 0 255 0

   WIDTH 1

 END

   END



END



  PROJECTION

"init=epsg:3857"

  END



END #MAP END



From: Lime, Steve D (MNIT) 
Sent: Wednesday, July 31, 2019 3:22 PM
To: Ian Walberg ; mapserver-users@lists.osgeo.org
Subject: RE: Projection help



Should be straight forward. In the natural earth layers you’d have:



PROJECTION

"init=epsg:4326" # geographic

END



and at the MAP level you’d have:



  PROJECTION

"init=epsg:3857" # web mercator

  END



--Steve



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Ian Walberg
Sent: Wednesday, July 31, 2019 4:56 PM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Projection help





Hello,



We have used different projections previously but cannot get them to work at 
the moment.



All the examples we can find online look ok but do not make any difference to 
the generated map.



A way of projecting the Natural Earth vector country outlines as Mercator would 
be a perfect example.



Adding  CONFIG "PROJ_DEBUG" "ON" does not appear to generate any output.



Thanks



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

Re: [mapserver-users] Projection help

2019-07-31 Thread Lime, Steve D (MNIT)
Should be straight forward. In the natural earth layers you'd have:

PROJECTION
"init=epsg:4326" # geographic
END

and at the MAP level you'd have:

  PROJECTION
"init=epsg:3857" # web mercator
  END

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Ian Walberg
Sent: Wednesday, July 31, 2019 4:56 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Projection help


Hello,

We have used different projections previously but cannot get them to work at 
the moment.

All the examples we can find online look ok but do not make any difference to 
the generated map.

A way of projecting the Natural Earth vector country outlines as Mercator would 
be a perfect example.

Adding  CONFIG "PROJ_DEBUG" "ON" does not appear to generate any output.

Thanks

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

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-07-31 Thread Lime, Steve D (MNIT)
Hi Andrea: I just tested with MapServer 6.4 and 7.4 and it works as expected, 
at least with WMS GetMap requests. My process was:


1.   Make a WMS request and check the logs to confirm the IP I was showing 
up as.

2.   Edit the mapfile and add “ows_denied_ip_list” “my IP” to the WEB 
METADATA section.

3.   Perform the same WMS request in the browser – result was a WMS 
exception.

4.   Edit the mapfile and change the ip slightly so it shouldn’t match but 
leaving the directive in place.

5.   Perform the same WMS request in the browser – result was a PNG image.

I did tried multiple IPs in the list, with and without my IP and everything 
worked as expected. I did not try using an external file. I did notice with my 
IP in the list a GetMap request was blocked, a GetCapabilities request was not. 
I didn’t try a GetFeature… request.

Makes me wonder if you have the right IP for your test setup?

--Steve

From: Andrea Peri [mailto:aperi2...@gmail.com]
Sent: Tuesday, July 30, 2019 2:30 PM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I was using a compiled version from a recent clone of master .

I try to apply ot to WEB-> METADATA section section using this kind of values:

I try to use a list of IP directly listed using a space as separator
  "ows_denied_ip_list" "xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy zzz.zzz.zzz.zzz"
or using a file where there is the same list one IP for line

 "ows_denied_ip_list" "file:/path-to-file/file-with-ip-list.txt"

The values listed are the possibly values of our proxy.
So I guess setting them as denied IP mapserver should refuse to give a map to 
every client wms using them.
Instead the map are still showed.

I'm using QGIS as wms client to test it.

A.


Il mar 30 lug 2019, 04:21 Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> ha scritto:
I will test and reply back. What specific version, config and tests did you try 
on your end?

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Andrea Peri mailto:aperi2...@gmail.com>>
Sent: Saturday, July 27, 2019 9:02:07 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] ows_denied_ip_list is working ?

Hi,
I see my version of mapserver don't work the ows_denied_ip_list.
I see ths other mex:
http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2Fows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html=02%7C01%7CSteve.Lime%40state.mn.us%7Ca2bef76fd62f471db1e608d715245908%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637001118169695729=PWJxX4BJMhOodJ7FadppgR%2F3XAk9lLW%2FHJadeWehSRQ%3D=0>

I try all the same option but nothing is work.

So I guess that instead that the ows_denied_ip_list was dismissed.
Is this confirmed ?

Thx.

A.


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-07-29 Thread Lime, Steve D (MNIT)
I will test and reply back. What specific version, config and tests did you try 
on your end?

From: mapserver-users  on behalf of 
Andrea Peri 
Sent: Saturday, July 27, 2019 9:02:07 AM
To: mapserver-users@lists.osgeo.org 
Subject: [mapserver-users] ows_denied_ip_list is working ?


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hi,
I see my version of mapserver don't work the ows_denied_ip_list.
I see ths other mex:
http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html

I try all the same option but nothing is work.

So I guess that instead that the ows_denied_ip_list was dismissed.
Is this confirmed ?

Thx.

A.


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Is there a way of getting existing settings from a mapfile via CGI?

2019-07-29 Thread Lime, Steve D (MNIT)
By mapfile settings do you mean a list of mutable properties by layer, class, 
style, etc...? If so, then no, that doesn't exist as part of the CGI. I would 
think doing so would be pretty challenging in a generic way.

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Monday, July 29, 2019 11:54 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Is there a way of getting existing settings from a 
mapfile via CGI?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



All,

I have a thought on populating a FORM with the results of a “MapFile SETTINGS” 
query.  The end game being a  method for users to change current settings on 
the fly.

Could I need to build a generic template for this, or would all exceptions need 
to be handled, like missing values, etc?  What happens if something doesn’t 
exist as a setting in the return . .

Just thinking out loud.

Using mostly WMS/WFS calls to MapServer right now, so I could possibly go the 
SLD route, but, other thoughts?

bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C322b383624ec462b5dcd08d714455a82%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637000160407407040sdata=rsENRqIXDJUmdBAAI47X7UVL%2BszFjZwU7fNtrPAcetA%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Programmatically refresh the current view

2019-07-17 Thread Lime, Steve D (MNIT)
BTW What version of OL are you using?


From: Lime, Steve D (MNIT)
Sent: Wednesday, July 17, 2019 4:51:12 PM
To: Jerry Faust; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Programmatically refresh the current view


This isn't a MapServer issue per se. I mean MapServer isn't caching anything. 
If I understand your question you could bust the browser cache by adding 
another parameter to the call to mapserver - something to make each map call 
unique even if the layers and extent don't change. Just tagging on the current 
unix timestamp would do it (e.g. &_timestamp=134232523).


From: mapserver-users  on behalf of 
Jerry Faust 
Sent: Wednesday, July 17, 2019 1:12:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Programmatically refresh the current view


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello all.


We have set up MapServer using MS4W, running against IIS.  We have a .map file 
defined to include about a dozen layers contained in an ESRI GDB format.



All of this works fine for the initial load of the map, but following any data 
changes, we would like to be able to force a refresh of the map without having 
to reload the entire page.  For example, if we simply drag/pan the map, the 
layers will refresh with the latest data using the current zoom-level/extents; 
but we would like to programmatically refresh the view when data has changed.


Up to this point we have exhausted what we feel are the relevant OpenLayers API 
calls found at 
http://dev.openlayers.org/docs/files/OpenLayers-js.html<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdev.openlayers.org%2Fdocs%2Ffiles%2FOpenLayers-js.html=02%7C01%7Csteve.lime%40state.mn.us%7C2eec587306d04dfb3ffc08d70ae264ad%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636989839771390369=UWweeLR2vqMT3mghppc%2F08GUeYY97a11XN0MQu2lZd8%3D=0>
 (OpenLayers.Layer, OpenLayers.MapServer, & OpenLayers.Map). Everything that 
we’ve tried so far seems to simply reload the last cached image.



Another developer working with this has set up buttons that recenter the map to 
predetermined locations. This is what he has reported.

  *   Whenever we press one of these, we create a new OpenLayers.Map object 
(always with the same extents) and OpenLayers.Layer.MapServer (always with the 
same params). Then, we add the layer to the map object and call setCenter, with 
the lat-long and scale.
  *   If we center on Location A, then move a map marker (via a separate 
application) and go to Location B, the marker is seen in its new position. But 
if we click the button to recenter back on Location A, the marker appears to 
return to its old position. We suspect this is because the browser or the 
server is reusing a previously generated map image. If we reload the entire 
page, the marker is shown at its correct position.


Thank you for any insight/feedback you could provide.

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

Re: [mapserver-users] Programmatically refresh the current view

2019-07-17 Thread Lime, Steve D (MNIT)
This isn't a MapServer issue per se. I mean MapServer isn't caching anything. 
If I understand your question you could bust the browser cache by adding 
another parameter to the call to mapserver - something to make each map call 
unique even if the layers and extent don't change. Just tagging on the current 
unix timestamp would do it (e.g. &_timestamp=134232523).


From: mapserver-users  on behalf of 
Jerry Faust 
Sent: Wednesday, July 17, 2019 1:12:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Programmatically refresh the current view


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello all.


We have set up MapServer using MS4W, running against IIS.  We have a .map file 
defined to include about a dozen layers contained in an ESRI GDB format.



All of this works fine for the initial load of the map, but following any data 
changes, we would like to be able to force a refresh of the map without having 
to reload the entire page.  For example, if we simply drag/pan the map, the 
layers will refresh with the latest data using the current zoom-level/extents; 
but we would like to programmatically refresh the view when data has changed.


Up to this point we have exhausted what we feel are the relevant OpenLayers API 
calls found at 
http://dev.openlayers.org/docs/files/OpenLayers-js.html
 (OpenLayers.Layer, OpenLayers.MapServer, & OpenLayers.Map). Everything that 
we’ve tried so far seems to simply reload the last cached image.



Another developer working with this has set up buttons that recenter the map to 
predetermined locations. This is what he has reported.

  *   Whenever we press one of these, we create a new OpenLayers.Map object 
(always with the same extents) and OpenLayers.Layer.MapServer (always with the 
same params). Then, we add the layer to the map object and call setCenter, with 
the lat-long and scale.
  *   If we center on Location A, then move a map marker (via a separate 
application) and go to Location B, the marker is seen in its new position. But 
if we click the button to recenter back on Location A, the marker appears to 
return to its old position. We suspect this is because the browser or the 
server is reusing a previously generated map image. If we reload the entire 
page, the marker is shown at its correct position.


Thank you for any insight/feedback you could provide.

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

Re: [mapserver-users] Mapcache seeder question

2019-07-08 Thread Lime, Steve D (MNIT)
And regular tile generation (no seeding) works ok? 

-Original Message-
From: Matej Mailing [mailto:mail...@tam.si] 
Sent: Monday, July 08, 2019 12:26 AM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapcache seeder question

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello Steve,

thanks for answering. I have changed the extent definition in grid
declaration, but I still get the "0 tiles needed to be seeded,
exiting" message back from mapcache_seed.

Any ideas will be appreciated.

Thanks,
Matej

V V pet., 5. jul. 2019 ob 23:00 je oseba Lime, Steve D (MNIT)
 napisala:
>
> I believe the  in your grid should be space delimited - no 
> commas. At least that's how I have things setup, for example...
>
> 
> 
>   Standard Minnesota UTM Grid
> 
> 105000 4785000 809000 5489000
> epsg:26915
> 256 256
> 5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 
> 21.484375 10.7421875 5.37109375 2.685546875 1.3427734375
>   
>
> --Steve
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
> Behalf Of Matej Mailing
> Sent: Thursday, July 04, 2019 10:35 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Mapcache seeder question
>
> This message may be from an external email source.
> Do not select links or open attachments unless verified. Report all 
> suspicious emails to Minnesota IT Services Security Operations Center.
>
>
>
> Hello,
> I am having issues with running Mapcache Seeder with extent options.
> My grid is defined like:
>   
> 256 256
> 373233,31868 625985,194134
> EPSG:3912
> m
> 18 9 45000 22500 11250 5000 2500 1250 600 300
> 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06
>
>
> and when I try to run seeder with:
> mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e
> 533124,86639,544462,103589
>
> I get an output 0 tiles needed to be seeded, exiting, which is
> certainly not true since plenty of those do not exist in the cache
> directory.
>
> What am I missing?
>
> Thanks,
> Matej
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C202cd663129445fe4f3908d70364db3a%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636981604044024635sdata=H7Hfyb9kyJueMQ%2Bh9puMB4C1WyTzrI3I8RzeFqvLXVI%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache seeder question

2019-07-05 Thread Lime, Steve D (MNIT)
I believe the  in your grid should be space delimited - no 
commas. At least that's how I have things setup, for example...



  Standard Minnesota UTM Grid

105000 4785000 809000 5489000
epsg:26915
256 256
5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 21.484375 
10.7421875 5.37109375 2.685546875 1.3427734375
  

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Matej Mailing
Sent: Thursday, July 04, 2019 10:35 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapcache seeder question

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.



Hello,
I am having issues with running Mapcache Seeder with extent options.
My grid is defined like:
  
256 256
373233,31868 625985,194134
EPSG:3912
m
18 9 45000 22500 11250 5000 2500 1250 600 300
200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06
   

and when I try to run seeder with:
mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e
533124,86639,544462,103589

I get an output 0 tiles needed to be seeded, exiting, which is
certainly not true since plenty of those do not exist in the cache
directory.

What am I missing?

Thanks,
Matej
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7Ca8f92e6de3474b3eb52608d7009534a0%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636978513162884312sdata=FdCj%2F%2F704BA8lCcJ7cO0t7erzHPXs56%2BpgCXLIugok8%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Adding cache control headers to wms requests

2019-07-05 Thread Lime, Steve D (MNIT)
I guess the question is whether this belongs in MapServer or if it should be 
done at the web server level - you shouldn't need to write a wrapper process. 
The mod_headers module provides this for Apache and since you can use the 
module in any container (e.g. ) you could set headers based on things 
like the value of the map parameter or the WMS request type. I would guess 
other web servers provide similar functionality but I don't know that for sure. 
That seems extremely flexible IMHO.

Currently the setting max-age is supported in 3 spots within MapServer: 
WMS/GetMap (1), mode=map (2) and mode=legendicon (3) CGI requests. Other 
request responses don't look for or set it and probably should in a more 
general solution.

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Stephen Woodbridge
Sent: Thursday, July 04, 2019 10:16 AM
To: mapserver-users 
Subject: [mapserver-users] Adding cache control headers to wms requests

Hi all,

I need to add the following headers to some wms responses:

|Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache
Expires: 0 I am aware that I can set: MAP WEB METADATA ...
"ows_http_max_age" "0" END END ... END But it seems like it would be a
good idea to be able to set additional headers also. Maybe something
like: WEB HEADERS "||Cache-Control: no-cache, no-store, must-revalidate|"
 "|Pragma: no-cache|"
 "Expires: 0"
   END
   METADATA
 ...
   END
END

This would provide an easy way to add arbitrary response header.
The various headers are because browsers are not consistent which headers they 
respond to.
See||   
https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers

||
Maybe we can already do this and I'm not aware of how. I could write a wrapper 
around mapserver and
funnel some requests through it to do this, but it would be nice if mapserver 
via the mapfile can do it.

Thoughts?

-Steve W


---
This email has been checked for viruses by Avast antivirus software.
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fantivirusdata=02%7C01%7Csteve.lime%40state.mn.us%7C1af86007bc1f4912624008d7009286dc%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636978501633400154sdata=AdIpAUJ50fRgV5qyalgsGa%2BVvJzoTezeeL%2BdvCXWGJ4%3Dreserved=0

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C1af86007bc1f4912624008d7009286dc%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636978501633410140sdata=vQFd1f%2BWlo%2Bc5Hf651WMklqv9%2B5fmPWuLYX%2B0RHZkM8%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

2019-06-27 Thread Lime, Steve D (MNIT)
I don't believe you can muck with the SVG color since SVG can carry multiple 
elements and colors. That complexity doesn't map very well to a single color 
value in a styleObj. It's probably best to consider SVG as immutable, same as 
an image symbol. You can use truetype fonts (or vector symbols) if you want 
something scaleable where you can alter color.

--Steve

From: Brian Stice [mailto:br...@peoplegis.com]
Sent: Thursday, June 27, 2019 12:35 PM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hi Steve,

Thanks for the tip. I used the link you provided and was able to get the SVG 
symbol sizing to a reasonable level. I appreciate the help.

I did have another question, maybe you know this. In the most recent version 
MAPSERVER, are we able to change the color of SVGs using the COLOR parameter? 
It does not seem that we are able to do so. I found a couple topics on the 
forum but they were from a few years ago. I am not sure if anything has changed 
or if I am missing something.  Maybe you know the answer to this as well? 
Thanks for your help!



On Tue, Jun 25, 2019, at 1:50 PM, Lime, Steve D (MNIT) wrote:
Hi Brian: Welcome! My guess that the SVG file might be "sized" to whatever page 
size you had defined in Inkscape and your elements may be significantly smaller 
than that. Basically I'm wondering if there's a bunch of empty space that is 
also being scaled and your actual symbol would appear proportionately smaller 
as well. If this is the case it looks like you can do things in Inkscape to 
remove that space...

  
https://graphicdesign.stackexchange.com/questions/21635/getting-rid-of-whitespace-in-inkscape

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Brian Stice
Sent: Monday, June 24, 2019 2:46 PM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

Hello,

I am fairly new with MapServer and was wondering if anyone had any 
recommendations or guidelines of sizing point symbol SVG's?

I created some SVG symbols in Inkscape. When I load them into MapServer and 
choose SIZEUNITS feet, I have to set the actual symbol size to around 500 for 
these to show up in a Map. My understanding is that the SIZEUNIT parameter 
changes the way the symbol rendered in real world space (in my case feet rather 
than pixels). I am not sure if this has to do with how the SVG is sized in 
Inkscape or if there is an issue with using SIZEUNITS and SVGs together in 
MapServer. I looked at the MAPSERVER documentation online and did not have much 
luck.

I have tried a few things including setting the MIN and MAX Size with no luck. 
Any help or pointers would be awesome.

Thanks for your help!

Sincerely,

**Brian Stice ***GISP
**Project Implementation Manager | PeopleGIS*
500 West Cummings Park, Suite 3900
Woburn, MA 01801
P: 617.625.3608
www.peoplegis.com<http://www.peoplegis.com>


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


Brian Stice GISP
Project Implementation Manager | PeopleGIS
500 West Cummings Park, Suite 3900
Woburn, MA 01801
P: 617.625.3608
www.peoplegis.com<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.peoplegis.com=02%7C01%7Csteve.lime%40state.mn.us%7C79a47f9dda454b849b6a08d6fb25d42c%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636972537227731679=aiwCP6EoEA%2FLKsdLS7t%2FjTBmyXPNLSWSx%2ByidIxGmME%3D=0>

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

Re: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

2019-06-25 Thread Lime, Steve D (MNIT)
Hi Brian: Welcome! My guess that the SVG file might be "sized" to whatever page 
size you had defined in Inkscape and your elements may be significantly smaller 
than that. Basically I'm wondering if there's a bunch of empty space that is 
also being scaled and your actual symbol would appear proportionately smaller 
as well. If this is the case it looks like you can do things in Inkscape to 
remove that space...

  
https://graphicdesign.stackexchange.com/questions/21635/getting-rid-of-whitespace-in-inkscape

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Brian Stice
Sent: Monday, June 24, 2019 2:46 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Recommendations for SVG Sizing in MAPSERVER?

Hello,

I am fairly new with MapServer and was wondering if anyone had any 
recommendations or guidelines of sizing point symbol SVG's?

I created some SVG symbols in Inkscape. When I load them into MapServer and 
choose SIZEUNITS feet, I have to set the actual symbol size to around 500 for 
these to show up in a Map. My understanding is that the SIZEUNIT parameter 
changes the way the symbol rendered in real world space (in my case feet rather 
than pixels). I am not sure if this has to do with how the SVG is sized in 
Inkscape or if there is an issue with using SIZEUNITS and SVGs together in 
MapServer. I looked at the MAPSERVER documentation online and did not have much 
luck.

I have tried a few things including setting the MIN and MAX Size with no luck. 
Any help or pointers would be awesome.

Thanks for your help!

Sincerely,

**Brian Stice ***GISP
**Project Implementation Manager | PeopleGIS*
500 West Cummings Park, Suite 3900
Woburn, MA 01801
P: 617.625.3608
https://gcc01.safelinks.protection.outlook.com/?url=www.peoplegis.comdata=02%7C01%7Csteve.lime%40state.mn.us%7C2d0f3cfe4e1e4534512708d6f8dca0de%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636970023811378893sdata=WmPqkz8JEMbMlOlu4trPJuj2F6JYFIFfxp0k6O8DoGs%3Dreserved=0


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C2d0f3cfe4e1e4534512708d6f8dca0de%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636970023811378893sdata=GQyeNVCdztVMXrdR9CPJm3vBtvJvqB%2B7bAl2gnpnVjo%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Stretching subset of a raster

2019-06-13 Thread Lime, Steve D (MNIT)
Hi Asen: Hmmm… What version of MapServer and GDAL? The scaling should be 
happening in GDAL before the data hit MapServer so the [pixel] values MapServer 
gets are already between 0-255 in both of your cases. What I don’t know is what 
GDAL does with values outside the scaling range – so with SCALE=10,20 what do 5 
or 50 get mapped to.

Do you have a sample GeoTiff to play with?

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND]
Sent: Wednesday, June 12, 2019 3:40 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Stretching subset of a raster

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hello,

Can someone help me with this issue?
https://gis.stackexchange.com/questions/316651/mapserver-processing-scale-a-b-does-not-stretch-data
Any help is greatly appreciated.


Thank you,
Asen Radov

NASA Goddard Space Flight Center / Code 619
Phone: 301-614-6517
E-mail: asen.s.ra...@nasa.gov

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

Re: [mapserver-users] MapServer on Centos 7

2019-05-28 Thread Lime, Steve D (MNIT)
Perhaps post the relevant mapcache config snippets... I'm using MapCache with 
both MapServer and non-MapServer WMS sources. 

-Original Message-
Thanks Steve for the fast reply! 

By now i have a ncWMS2 server that delivers a WMS service using .nc (NetCDF) 
files ...i was trying to use mapcache to process that WMS service, but i 
keep getting errors from curl : 


curl failed to request url 
http://myserver.local:8080/ncWMS2>?VERSION=1.3.0=GetMap=WMS==259722.00
 
\xf699727.00 \xca302512.00 
\xd0142517.00=1556=1556=PNG=EPSG 
%a27700=ww3.total.2 : 
The requested URL returned error: 400 , referer: 
http://10.1.3.38/mapcache/demo/wms

Since i'm a newbie on this subject, perhaps something needs to be configured 
in the mapcache.xml file, when i copy that URL in the error, i can't obtain 
a valid response from my ncWMS2 server...there's a lot of jibberish caused 
by slashes . 

I was trying to find someone that uses mapcache 



-- 
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
___ 
mapserver-users mailing list 
[hidden email] 
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] MapServer on Centos 7

2019-05-28 Thread Lime, Steve D (MNIT)
You can use MapCache without MapServer. You’ll need something to provide WMS 
services to tile (or proxy) but that could be anything. I don’t have any hints 
for CentOS but it should run there fine... —Steve

From: mapserver-users  on behalf of 
nsilva 
Sent: Tuesday, May 28, 2019 2:26:24 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapServer on Centos 7

At this point, i'm only interested to know if i can use only MapCache withou
a MapServeror do i have to install MapServer as well.

I want to create a mapcache server farm to speed up client requests as well
a WMTS service to clients with low bandwidth...i already tryed MapProxy with
sucess and now i'm trying to install another server with MapCache for a
Proof of Concept.

By now I installed it on a Ubuntu Server 18 but i'm not getting the tiles
from the server that provides a WMS service...and i can't find 'recipes'
online for Centos7... do you have any hints or saved recipe?


Kind regards,
Nuno Silva



--
Sent from: 
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FMapserver-User-f4226646.htmldata=02%7C01%7Csteve.lime%40state.mn.us%7C51392d1b6ed74a53247808d6e33dcbc7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636946251879500828sdata=ckapnzZLvcCugGOweVsLmiV6qN8W7wsjnbAsOuk6AGU%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C51392d1b6ed74a53247808d6e33dcbc7%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636946251879500828sdata=ar%2FcN3ZiMH9SDGx5loYO9IXhAA%2BmsYagI8hAPLEiNYc%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] map server WFS with GML input

2019-05-16 Thread Lime, Steve D (MNIT)
Hi Leigh: Welcome! MapServer by default won't expose any attributes unless you 
explicitly tell it to. Look at the gml_include_items and gml_exclude_items 
layer metadata on this page:


  https://mapserver.org/ogc/wfs_server.html

--Steve

From: mapserver-users  on behalf of 
Leigh Porter 
Sent: Thursday, May 16, 2019 2:24:59 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] map server WFS with GML input


Hey All!

I just joined the list. I have used mapserver for a while and just started with 
WFS.


I’m serving WFS requests from a GML input file. Input is like this:



  
-3.187863,54.948226
  
f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5
  2019-03
  Avon and Somerset Constabulary
  Avon and Somerset Constabulary
  On or near Field View
  E01019107
  Allerdale 002B
  Other theft
  Under investigation
  

  

But the output doesn’t include any of the other feature attributes (such as 
Crime_ID).






50.948685 -2.807610


50.948685 -2.807610






50.948685 -2.807610






The mapfile looks like this:

   LAYER
NAME street-avon
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION 
"/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml"
CLASS
STYLE
COLOR 0 255 0
SYMBOL 'circle'
SIZE 6
END
END
END


I don’t think I need to add anything to the apple for the feature attributes to 
be included in the WFS output, or do I?


Thanks!
Leigh


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

[mapserver-users] Version 7.4.0 released...

2019-05-16 Thread Lime, Steve D (MNIT)
Hi all: The MapServer team is proud to announce the initial release of 
MapServer 7.4. This release is largely focused on MapScript improvements 
including support for PHP 7. A full changelog can be found at:


  https://mapserver.org/development/changelog/changelog-7-4.html#changelog-7-4


The tarball can be downloaded at:


  https://mapserver.org/download.html


As always this is a group effort so thanks much to all folks working on 
development, documentation, testing and packaging. Your work is greatly 
appreciated.


--Steve



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

Re: [mapserver-users] Sqlite error in generated tiles

2019-05-15 Thread Lime, Steve D (MNIT)
I was searching through some old posts and found one that referenced checking 
permissions on the database file and/or the directory containing those files. 
What does that look like? --Steve


From: mapserver-users  on behalf of 
parsis presswala 
Sent: Tuesday, May 14, 2019 6:04:14 AM
To: mapserver-users
Subject: [mapserver-users] Sqlite error in generated tiles

Hello,
I am seeding tiles using multiple sqlite database.I am generating tiles of 15 
zoom level but there are some potion in which I am not able load my tiles even 
after seeding is completed. When I check what's wrong I got  sqlite backend 
failed on set: SQL logic error (1) error.

Here is a url in which I am getting error.
http://localhost/worldcache/gmaps/world-tileset@grid2/15/23007/14603.png

I have checked the sqlite file version which is also not specific. I am getting 
this.
1000-11000.sqlite3: SQLite 3.x database, last written using SQLite version 
3022000

I tried to delete that area and again regenerate it but had not luck, what 
should I do?

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

[mapserver-users] MapServer 7.4 Release Candidate 2 Available

2019-05-10 Thread Lime, Steve D (MNIT)
Hi all: The second release candidate for MapServer 7.4.0 is now available for 
download:

  https://mapserver.org/download.html#development-releases

For the detailed list of upcoming 7.4.0 changes please see the changelog:

  https://mapserver.org/development/changelog/changelog-7-4.html

Thank you to all of the users, developers, documenters, and packagers for all 
you do!

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

Re: [mapserver-users] 7.2.1 html [shpxy] formating (templating)

2019-05-09 Thread Lime, Steve D (MNIT)
I think cs is coordinate separator so it only comes into play if you have 
multiple points. Try xf=“&” where xf means “x footer”.

From: mapserver-users  on behalf of 
pe_lord 
Sent: Tuesday, May 7, 2019 11:41:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] 7.2.1 html [shpxy] formating (templating)

I try to format my html getfeatureinfo response with my geometry coordinate
(point).

In my html.html response, I want [shpxy] with a "&" separator.

Here what I set into my html template:
[shpxy xh="x=" yh="y=" cs="&"]

and I get this response:
x=701467,y=305958

I need to concatenate my x an y with a & to build an url. Something I'm
doing wrong?




--
Sent from: 
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FMapserver-User-f4226646.htmldata=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309sdata=ylBKFHAzd9lQj7fqZSvr9%2FtxsTfBJajah0FayYoBOHw%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C518d2ae99b60442b0d2c08d6d30ae651%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636928441098283309sdata=YRDYd7RQTNsXjfKRT99mSCeYAib8RuV3BXSwjbZ1zNc%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache: Modifying GoogleMapsCompatible grid?

2019-04-29 Thread Lime, Steve D (MNIT)
I would create a new grid, coping from the default grid, and then add 
additional zoom levels...

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Mark Volz
Sent: Monday, April 29, 2019 12:25 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapcache: Modifying GoogleMapsCompatible grid?

Hello,

Within Mapcache, Is it considered "good form" to modify the 
GoogleMapsCompatible grid to add additional resolutions so we can zoom in 
closer to the map?  Will I just need to override the grid in mapcache.xml, or 
will I need to create a new grid by copying the parameters on 
https://mapserver.org/mapcache/config.html?

Background:
WMS seems to work in ArcMap using any MapCache grid (UTM 15N, Lyon County, 
Google, WGS84).  However when using WMTS, ArcMap only displays the Google and 
WGS 84 grids in the correct location.  Therefore I plan on using the 
GoogleMapsCompatible grid until the issue with ArcMap is resolved, but I would 
like to zoom in closer on the map.

Thanks

Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator

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

Re: [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when using WMTS services.

2019-04-12 Thread Lime, Steve D (MNIT)
The resolution doesn't matter. That just impacts scale computations internally 
so when layers/classes are on/off and how symbol/font scaling is done.

I just tried our Compass MapCache/WTMS service overlaid with a shapefile in UTM 
projected appropriately and they line up perfectly in ArcGIS 10.6. You can try 
it too with your data since you're in MN 
(http://maps1.dnr.state.mn.us/mapcache/wmts/1.0.0/WMTSCapabilities.xml). Does 
it behave any differently for you?

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Mark Volz
Sent: Friday, April 12, 2019 12:08 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapcache WMTS - imagery is offset in ArcGIS when 
using WMTS services.

Hello,

I noticed that WMTS services are extremely fast when using Mapcache to serve 
tiles to ArcGIS clients.  However, the imagery appears to be shifted down 
significantly from the actual location.   I did notice that Mapserver and 
Mapcache use a 72 DPI while ArcGIS is using a 90.714 DPI.  In addition the 
image is the correct width and height.  In addition, when I use WMS the imagery 
appears in the correct location, however it is not as fast as WMTS.

Please let me know if there is a way to get ArcGIS to place imagery in the 
correct location when using WMTS and Mapcache.

Thanks

Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator

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

[mapserver-users] Reminder - OSGeo Minneapolis Code Sprint Coming Up Fast

2019-03-27 Thread Lime, Steve D (MNIT)
Hi all: Just a quick note to remind folks that the annual OSGeo Community 
Sprint in Minneapolis is only about 7 weeks out - May 14-17 and all projects 
are most welcome. We have a great venue at the University of Minnesota and the 
weather in Minnesota is finally looking up! Of course it really helps with 
planning if have an idea of how many folks might attend. So if you're thinking 
about it - even if you're not 100% - we'd love to know about it. You can learn 
more and sign up at:

  
https://wiki.osgeo.org/wiki/OSGeo_Community_Sprint_2019

Of course events like this are impossible without the generous support of 
sponsors:

Gold Sponsors

-  GeoCue 
(http://www.geocue.com/)

-  Safe Software 
(https://www.safe.com/)

Silver Sponsors

-  Hobu Inc 
(https://hobu.co/)

-  EOX 
(http://eox.at)

-  Tydac 
(http://www.tydac.ch/)

-  crunchy data 
(http://www.crunchydata.com/)

Bronze Sponsors

-  Coordinate Solutions 
(http://www.coordinatesolutions.com/)

-  SharedGeo 
(https://www.sharedgeo.org/)

-  Greenwood Mapping 
(https://greenwoodmap.com/)

-  Azavea 
(https://www.azavea.com/)

-  Bohannan Huston 
(https://www.bhinc.com/)

-  Extensis 
(https://www.extensis.com/)

Please contact me with any questions. Many thanks!

--Steve

Steve Lime
OSGeo Community Sprint 2019
Local Organizing Committee


Re: [mapserver-users] Mapfile comment parsing issue

2019-03-20 Thread Lime, Steve D (MNIT)
Should be easy enough to replicate. Does this sum it up?


· Label TEXT w/expression followed with a comment containing ()’s - 
FAILS

· Same TEXT w/expression but with moving the comment containing ()’s 
onto its own line - WORKS

· Label TEXT w/expression followed with a comment without ()’s – WORKS

Seems like the regex in maplexer.l for expressions might be too greedy.

--Steve


From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Julian Hollingbery
Sent: Wednesday, March 20, 2019 10:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapfile comment parsing issue

Hi list,

I have observed an obscure behavior in MapServer version 7.0.7, which I’d like 
to run by you before I submit an issue.

I have an issue where labels on contour line disappear when I write a 
particular type of comment after the TEXT directive.

Using this request:
http://host/fcgi-bin/mapserv.fcgi?map=ms_issue_report.map=WMS=1.3.0=GetMap=542400.00,6216800.00,542600.0,6217000.0=EPSG:25832=400=400=dhm_kote_0_5_m,dhm_kurve_0_5_m==image/png=FALSE
this piece of MAP file

   CLASS
 GROUP "default"
 NAME "dhm2015 kurver, 0,5 m"

 TEXT (tostring([hoejde],"%.2f")) #altid to decimal, også .00 (eng. always 
two decimals, including .00)
 STYLE
   OPACITY 80
   COLOR 100 50 0
   WIDTH 1
 END #STYLE
  LABEL
FONT "arial"
SIZE 9
COLOR 137 90 68
OFFSET 0 -6
SHADOWSIZE 1 1
TYPE TRUETYPE
REPEATDISTANCE 300
ANGLE auto
PARTIALS FALSE
  END # LABEL
   END #CLASS

Gives me 
https://pasteboard.co/I6jsBen.png
 (contour lines w/o labels), whereas

   CLASS
 GROUP "default"
 NAME "dhm2015 kurver, 0,5 m"
 #altid to decimal, også .00 (eng. always two decimals, including .00)
 TEXT (tostring([hoejde],"%.2f"))
 STYLE
   OPACITY 80
   COLOR 100 50 0
   WIDTH 1
 END #STYLE
  LABEL
FONT "arial"
SIZE 9
COLOR 137 90 68
OFFSET 0 -6
SHADOWSIZE 1 1
TYPE TRUETYPE
REPEATDISTANCE 300
ANGLE auto
PARTIALS FALSE
  END # LABEL
   END #CLASS

Results in https://pasteboard.co/I6js9YK.png (which is the desired result: 
Contour lines labelled with two decimal points).
I have narrowed it down a bit, and if I delete the “(eng. ..)”, i.e. just have
 TEXT (tostring([hoejde],"%.2f")) #altid to decimal, også .00
It still works nicely.

So I guess the parentheses are somehow parsed as something meaningful (related 
to the “tostring”-expression, perhaps?), invalidating the TEXT declaration.

Has anyone seen something similar?

Best Regards
/julian

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

Re: [mapserver-users] mapserver connection string with multiple hosts

2019-03-18 Thread Lime, Steve D (MNIT)
Nope, just one host. I mean how would MapServer know which to choose? Does it 
work referencing just one proxy?

From: mapserver-users  on behalf of 
Linsenmaier Dierk 
Sent: Monday, March 18, 2019 5:10:50 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapserver connection string with multiple hosts

Hello altogether,

we are running a postgresql cluster with patroni and haproxy.

Therefore we'd like to address mutliple postgresql servers via haproxy in one 
connection string.
Haproxy then decides which postgresql servers is master and has to be addressed.

Is it possible to address multiple hosts in one connection string in a layer 
file?

For examle something like this:
CONNECTION "host=haproxy01,haproxy02,haproxy03 dbname=mydb user=myuser 
password=mypass port=5000"

Thanks and cheers,
Dierk
--

Dierk Linsenmaier
Systemtechnik

regioDATA
Tullastr. 61
79108 Freiburg i. Brsg.
Telefon  07621 91943-477
Telefax   07621 91943-465
dierk.linsenma...@regiodata-gmbh.de
https://gcc01.safelinks.protection.outlook.com/?url=www.regiodata-gmbh.dedata=02%7C01%7Csteve.lime%40state.mn.us%7C961eacd21f2a4f7f425608d6ab8b195f%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636885011272670266sdata=CZ7NLY88oNEPIuO6MwvMxDw2ZKPxTVAQSi4SytMu%2BsQ%3Dreserved=0

regioDATA Gesellschaft für raumbezogene Informationssysteme mbH
Sitz Lörrach, Amtsgericht Freiburg HRB 412719
Geschäftsführer: Michael Schade
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C961eacd21f2a4f7f425608d6ab8b195f%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636885011272670266sdata=4vcFt7wYvmCJogqfte3Aw%2Fo3pdJv0mrYVXmMdp8qw1o%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MS4W version 4.0.0 released!

2019-03-12 Thread Lime, Steve D (MNIT)
+1 to that comment...

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Michael Smith
Sent: Tuesday, March 12, 2019 5:50 PM
To: Jeff McKenna ; MapServer-users 

Subject: Re: [mapserver-users] MS4W version 4.0.0 released!

Congrats to Gateway Geomatics on a big release!

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers


On 3/12/19, 6:48 PM, "mapserver-users on behalf of Jeff McKenna" 
 wrote:

Hello all!

Today is a big day as Gateway Geomatics is truly proud to announce that 
MS4W 4.0.0 is finally available! This is a huge release of changes, as 
every library (over 200 now) has been upgraded and built with a new 
compiler (Visual Studio 2017), and contains many great additions 
overall.  Get it now at 
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fms4w.comdata=02%7C01%7Csteve.lime%40state.mn.us%7C6da74ed8fc194b404fee08d6a73d0019%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C63688020977424sdata=9Qdku2702wLP3Z6M6Y8x2o7pI2cHVkcbR5pgNLjEESg%3Dreserved=0

Please see MS4W's HISTORY.txt for all of the changes (or the bottom of 
this email for the full list), but here are some of the highlights:

  - PHP7 mapscript support (using the SWIG API)
  - PHP 7.2.16
  - embedded Python 3.7.0
  - running pycsw Catalogue Server
  - expanded ZOO-Project WPS support (all GDAL/OGR services, Python, 
PHP, CSharp, Java)
  - new Matomo Analytics package
  - simple map viewer on the localhost page
  - GDAL 2.4.0
  - MapServer 7.4.0-dev
  - mod_wsgi for Apache
  - Mapbox Vector Tile output through MapServer (demo included)
  - osm2pgsql commandline utility
  - many HTTPS config changes and fixes (including a workaround for a 
show-stopping MapCache issue on some systems)
  - enhancements to the setup.exe installer
  - and many more...

You can see that MS4W-4.0.0 is a full SDI for Windows environments, with 
~40+ working mapfiles and over 1.7GB of files, empowering DevOps and 
organizations worldwide.  Also note that this is a major release for 
MS4W, meaning that some things have changed dramatically (PHPmapscript 
will now use the SWIG API for example), so please follow MS4W's README 
for specific instructions for the many plugins and mapscripts.

When installing, it is very important that (if you are using the .zip) 
your server must have the C++ Redistributable installed on it 
beforehand: execute the local file /ms4w/tmp/vcredist_x86.exe 
(alternatively if you use MS4W's setup.exe installer this is done 
automatically)

As always please provide your requests for enhancements and issues 
through the MS4W tracker (so the feedback is not lost or forgotten): 

https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fms4w.com%2Ftrac%2Fdata=02%7C01%7Csteve.lime%40state.mn.us%7C6da74ed8fc194b404fee08d6a73d0019%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C63688020977424sdata=crS6%2FJjPjwuqHQxdbijGdCzf92hxND36aUNPA55RMHk%3Dreserved=0
  You can also contact me directly for support.

Thank you all for sharing your spatial information with MS4W !!

"MS4W: open doors and as well as windows"


-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services

https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgatewaygeomatics.com%2Fdata=02%7C01%7Csteve.lime%40state.mn.us%7C6da74ed8fc194b404fee08d6a73d0019%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C63688020977424sdata=L4R02Q0H%2FZw56zr7lhO%2FiJqhN2yEXOIrgpn0%2FiLUHQ4%3Dreserved=0



Full 4.0 Changelog
--

2019-03-12
   * ms4w version 4.0.0 created. Notable changes are:
  - upgraded PHP to 7.2.16 (trac ticket 194)
  - re-add php_ogr.dll extension (trac ticket 190)
  - upgraded MapServer and MapScript (CSharp, Java, Python, PHP) 
to today's 7.4.0-dev
  - upgraded MapCache to today's 1.7dev
  - handle null MapCache CURL_CA_BUNDLE environment variable 
occuring on some systems (trac ticket 189)
  - include latest mapcache.xml.sample
  - added SSL_CERT_FILE path to setenv.bat
  - set certificates bundle path in php.ini (trac ticket 171)
  - set OPENSSL_CONF path in httpd.conf
  - added osm2pgsql commandline utility, with Visual Studio 2017 
compiler (trac ticket 48)
  - clean unused files from the TinyOWS demo (trac ticket 183)


2019-02-11
   * ms4w version 4.0.0-beta2 created. Notable changes are:
  - upgraded PHP to 7.2.15 (trac ticket 184)
  - upgraded APCu to 5.1.17
  - upgraded MapServer and MapScript (CSharp, Java, Python, PHP) 
to today's 7.4.0-dev
  - 

Re: [mapserver-users] MapServer derived MVTiles Benchmark test vs. T-Rex tile server

2019-03-11 Thread Lime, Steve D (MNIT)
Will have a look... I hadn’t spent much time on optimization at this point. I 
wouldn’t doubt there might be improvements to be made. The simplification code 
would be the spot to look.

Extent represents the resolution of the tile and guides the simplification done 
as part of the conversion from world to mvt coordinates. Edge buffer defines 
tile overlap.

By chance have you done output comparisons at all? That is, tile to tile in 
terms of size: feature counts, point counts/feature, etc... That would help 
tune the format parameters and make sure MapServer is returning reasonable 
output.

One quick note on the SQL (2) is to be explicit with returned columns, avoid *. 
The t-rex SQL hints at zoom-related attributes in the layer? Again, will have 
to find time to checkout the benchmark stuff.

From: karsten 
Sent: Monday, March 11, 2019 5:53:35 PM
To: 'karsten'; mapserver-users@lists.osgeo.org
Cc: 'Pirmin Kalberer'; Lime, Steve D (MNIT); l...@lingner.eu; 
jmcke...@gatewaygeomatics.com; thomas.bonf...@gmail.com
Subject: RE: MapServer derived MVTiles Benchmark test vs. T-Rex tile server

Corrected map file link:
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/ne.map<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkarstenv%2Fmvt-benchmark%2Fblob%2Fmaster%2FMapServer%2Fne.map=02%7C01%7Csteve.lime%40state.mn.us%7Ca811ae33be2d46f58eed08d6a67469eb%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636879416281231683=tjeEJeuolr3ihw9fj%2B2ejyrDb46FJRR3haXMjhRMO1I%3D=0>


From: karsten [mailto:kars...@terragis.net]
Sent: Monday, March 11, 2019 23:15
To: 'mapserver-users@lists.osgeo.org'
Cc: 'Pirmin Kalberer'; 'Lime, Steve D (MNIT)'; 'l...@lingner.eu'; 
'jmcke...@gatewaygeomatics.com'; 'thomas.bonf...@gmail.com'
Subject: MapServer derived MVTiles Benchmark test vs. T-Rex tile server

Dear All,

I  am working on optimizing a MapServer /MapCache configuration of  a benchmark 
for creating MVT tiles (seeding) of MapServer - versus T-Rex.

This will be featured in a presentation at the German FOSS4g ('FOSSGIS') 2019 
in Dresden at the end of this week. The whole thing is based on Pirmin 
Kalberer's automated vector tile benchmark see - 
http://blog.sourcepole.ch/2018/09/06/the-tale-of-a-vector-tile-benchmark/<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fblog.sourcepole.ch%2F2018%2F09%2F06%2Fthe-tale-of-a-vector-tile-benchmark%2F=02%7C01%7Csteve.lime%40state.mn.us%7Ca811ae33be2d46f58eed08d6a67469eb%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636879416281241691=Rq7vxQk62vpPNJ4qjeq4fkLSuvSJ46t3Bicj760mTCU%3D=0>
 . Thus I created a similar configuration of the Natural Earth Data based world 
map for MapServer (my favorite rendering engine !) to run it against T-REX.. 
Now Pirmin has added this into the GitHUB repository as a 'MapServer' branch 
see - 
https://github.com/pka/mvt-benchmark/tree/mapserver<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpka%2Fmvt-benchmark%2Ftree%2Fmapserver=02%7C01%7Csteve.lime%40state.mn.us%7Ca811ae33be2d46f58eed08d6a67469eb%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636879416281251699=0j4MMJBWx5IYNszsZPrSY1RRTGzvicRUoPw1BZGGcqk%3D=0>

Results of one of my first trial benchmarks can be found here 
https://github.com/karstenv/mvt-benchmark/tree/master/firsttests<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkarstenv%2Fmvt-benchmark%2Ftree%2Fmaster%2Ffirsttests=02%7C01%7Csteve.lime%40state.mn.us%7Ca811ae33be2d46f58eed08d6a67469eb%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636879416281261701=cu3VQvVDV2ieGjZs6Lld9kLa7SK0W%2FJe27Ak%2BJqcZSc%3D=0>
 .

Unfortunately my favorite software (MapServer /MapCache.fcgi) is falling pretty 
far behind in seeding speed in these tests
see e.g. in 
https://github.com/karstenv/mvt-benchmark/blob/master/firsttests/http.jpg<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkarstenv%2Fmvt-benchmark%2Fblob%2Fmaster%2Ffirsttests%2Fhttp.jpg=02%7C01%7Csteve.lime%40state.mn.us%7Ca811ae33be2d46f58eed08d6a67469eb%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636879416281271709=K7o4vKUwAbL79z%2BPMElpMwMkPXtRNr%2BQO708LgTJN%2Fg%3D=0>

Thus, I wanted to call in the experts to find out what configuration tweaks 
will help to increase the MapServer / Mapcache  performance.

So far my next steps I will be working on
--
1.) Setting the correct map file parameters to match the T-Rex configuration 
for the FORMATOPTIONS
"EXTENT" and "EDGE_BUFFER" in the OUTPUTFORMAT  bloc.

OUTPUTFORMAT
 NAME "mvt"
 DRIVER MVT
 FORMATOPTION "EXTENT=512" # default is 4096. # Comment by Pirmin for t-rex 
this is 'tile_size' (per Layer): Width and height of the tile (Default: 4096. 
Grid default size is

Re: [mapserver-users] Arc symbol.

2019-03-05 Thread Lime, Steve D (MNIT)
Not within MapServer directly, at least not at first glance. There are circle 
layers but there’s no way to limit drawing to just a specific arc on that 
circle. Here are some other ideas:


1)  Perhaps it could be done externally in OGR or PostGIS and then rendered 
in MapServer as a polygon or a line…

2)  You could also take a look at using javascript geotransformations: 
https://mapserver.org/mapfile/geomtransform.html#javascript-transformation 
Support was added a while back and isn’t widely used but this is the sort of 
thing it was added for. In theory you should be able to compute the arc 
yourself and return it for rendering. So you pass in the 2 lines and then 
return the arc as a line shape or a pie slice as a polygon shape. (maybe this 
helps… 
https://stackoverflow.com/questions/45009327/draw-arc-between-two-lines-i-need-to-calculate-points)

If option 2 works this would be a great thing to archive – a library of 
geomtranforms. I might tinker with this tonight… ;-)

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Marek Bak
Sent: Tuesday, March 05, 2019 1:27 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Arc symbol.


Hello All,

Is it possible to create an arc symbol im mapserver? For example I have two 
lines constructed over some angle (ex. 30 degree) and I want to draw an arc 
between them.

Regards,

Marek


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

Re: [mapserver-users] Rendering TrueType labels.

2019-02-27 Thread Lime, Steve D (MNIT)
Can you post some visuals (and/or layer snippets) that demonstrate each case? 
That would help... It's not clear if this a result of layer compositing or 
strictly related to label matching/caching.

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Marek Bak
Sent: Wednesday, February 27, 2019 10:01 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering TrueType labels.

Hello All,

Can anyone explain how the rendering engine works? For example I have 
four layers:

case1. Polygon

case2. Point which is presented as symbol (circle) with truetype label

case3. Polygon which is more detailed version of layers case1

case4. Point which is presented as symbol (circle) with truetype label 
which is more detailed version of layers case2

The problem is that composition (shadownig) during rendering (default 
src-over compop) works only for Polygon and Symbol. The label is 
preserved and final tile has one Symbol but with two labels. Is there 
any way to disable that behaviour?


Regards,

Marek

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C72f1427468e142a36f7c08d69cce0cee%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636868806132112515sdata=7k2h8mhQApfceAbqTKs5eCf7XS8Ms3GbBj7Jc0wrX68%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] probleme mapserver 5.x tutorial

2019-02-25 Thread Lime, Steve D (MNIT)
Hi: In that particular example the states label layer should become:

  LAYER # States label layer begins here
NAME states
DATA states_ugl
STATUS   OFF
TYPE POLYGON

PROJECTION
  "init=epsg:4326"
END

CLASSITEM"CLASS"
LABELITEM"STATE"
CLASS
  EXPRESSION 'land'
  LABEL
COLOR 132 31 31
OUTLINECOLOR 128 128 128
SHADOWCOLOR 218 218 218
SHADOWSIZE 1 1
TYPE TRUETYPE
FONT arial-bold
SIZE 12
ANTIALIAS TRUE
POSITION CL
PARTIALS FALSE
MINDISTANCE 200
BUFFER 4
  END # end of label
END # end of class
  END # States label layer ends here

The reason you might want to use a label style is for something like drawing a 
road shield paired with a road number but that’s not necessary in this 
particular case. We really do need to update the demo and tutorials for 7.0 and 
newer versions. The changes are minor but can be frustrating for a new user. 
Please feel free to reach out as often as you need and I’ll do my best to help!

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Bogui Yannick Dogne
Sent: Monday, February 25, 2019 10:02 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] probleme mapserver 5.x tutorial


hello I am really new on mapserver. I started learning through the tutorial but 
I am stuck on section 1 example 1-9 which does not appear in my browser: 
Annotation Layers have been removed. To obtain same functionality, use a layer 
with label->styles and no class->styles. this also applies to section 2 I did 
some research but I still do not understand how to do it.

should you change the annotation block or just add a style in label, if you 
have some examples and also anything that could help me learn better mapserver.
thank you so much
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapServer 7.2.2 Released

2019-02-19 Thread Lime, Steve D (MNIT)
Hi all: The maintenance release of MapServer 7.2.2 is now available for 
download:



  http://mapserver.org/download.html



For a list of changes please see the changelog at 
https://mapserver.org/development/changelog/changelog-7-2.html



Thank you to all of the users, developers, documenters, and packagers for 
sharing the passion for such a great OSGeo project.



--The MapServer Team

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

Re: [mapserver-users] Help with failing Postgis query...

2019-02-12 Thread Lime, Steve D (MNIT)
Also, I'd turn on debugging. The PostGIS code is very good about writing 
meaningful debugging information to that log file.

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Stephen Woodbridge
Sent: Sunday, February 10, 2019 11:04 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Help with failing Postgis query...

Brent,

Are you wrapping your query like:

DATA "select * from (select ROW_NUMBER() OVER (order by code) as id, 
code, sci_name, com_name, lower(family_com)||' ('|| family_sci||')' as 
Family, point from rdb.species_master s, maps.null_point p where code in 
(select distinct species from trawl.t_catch) limit 10) as foo using 
unique id using srid=4326"

where srid is appropriate for your data?

-Steve W

On 2/10/2019 7:51 PM, Brent Wood wrote:
>
> Hi,
>
>
> I'm getting an error with an SQL in a mapfile.
>
>
> The query works from from the command line:
>
>
> select ROW_NUMBER() OVER (order by code) as id, code, sci_name, 
> com_name, lower(family_com)||' ('|| family_sci||')' as Family, point 
> from rdb.species_master s, maps.null_point p where code in (select 
> distinct species from trawl.t_catch) limit 10 ;
>
>
> id,code,sci_name,com_name,family,locn
> 1,AAT,Alainopasiphaea australis,Alainopasiphaea 
> australis,,010120E610
>
> ...
>
>
> When embedded in a mapfile & invoked from a browser or QGIS I get an 
> error:
>
>
> WFS server error. ms_error->code not found
> msPostGISLayerWhichShapes(): Query error. Error executing query.
>
>
>
> Any suggestions?
>
>
> Brent Wood
>
> Programme leader: Environmental Information Delivery
> NIWA
> DDI:  +64 (4) 3860529
>
>
> 
>
>   
> Brent Wood
> Principal Technician - GIS and Spatial Data Management
> Programme Leader - Environmental Information Delivery
> T +64-4-386-0529  
>
> National Institute of Water & Atmospheric Research Ltd (NIWA)
> 301 Evans Bay Parade, Greta Point, Wellington
> Connect with NIWA: niwa.co.nz 
> Facebook
>  
> Twitter
>  
> LinkedIn
>  
> Instagram
>  
> 
>
> To ensure compliance with legal requirements and to maintain cyber 
> security standards, NIWA's IT systems are subject to ongoing 
> monitoring, activity logging and auditing. This monitoring and 
> auditing service may be provided by third parties. Such third parties 
> can access information transmitted to, processed by and stored on 
> NIWA's IT systems.
>
>
>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7Ccd30802415dd452ec1eb08d68fde5c89%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636854582543106672sdata=Or5QlT2y7YnEoea9XqkSlgoyC1OAm0Q0BiklpHtZkZc%3Dreserved=0


---
This email has been checked for viruses by Avast antivirus software.

Re: [mapserver-users] [mapserver-dev] Setup for MVT (was: Time for a 7.2.2 release?)

2019-02-12 Thread Lime, Steve D (MNIT)
BTW my MVT demo does have a sample mapache config included now. Note that the 
MVT creation does do simplification so for example you'll see islands in lakes 
disappear as they become degenerate and points removed from lines, etc 
That's the fun part and hat you need for scanline conversion is a little 
different from what Open/Web GL needs.

-Original Message-
From: Stephen Woodbridge [mailto:stephenwoodbridg...@gmail.com] 
Sent: Tuesday, February 12, 2019 12:45 PM
To: Lime, Steve D (MNIT) ; mapserver-users 

Subject: Re: [mapserver-dev] Setup for MVT (was: Time for a 7.2.2 release?)

Hi Steve,

Thanks!, I put this back on the list so other can benefit from your 
thoughts.

Tiles at various scales is not intuitive to me either. If you don't 
simplify the geometries, then all you are getting it more features in 
each tile as you zoom out. But your point about degenerate geometries 
play right into this and you can't really simplify them except via 
clustering which makes more sense on the client side.

I was thinking of using this for serving point features to an OL5 
application. Since my case was so simple, I ended up writing a trivial 
PHP handler to do this using a bbox strategy, but I want to revisit that 
using mapcache and MVT because I think it would be good to learn and I 
think it would be more efficient on both the client and server, not that 
I need to worry that much about that.

-Steve

On 2/12/2019 11:56 AM, Lime, Steve D (MNIT) wrote:
> I like the OL example as well. Years ago I created an initial run at that 
> format using the CGI-based options against a common MapFile. It worked ok for 
> that use case because all the differences between examples were configured 
> completely on the client.
>
> 1) You actually don't need to define an output format - there's one set by 
> default if the support is compiled in. You can override of course.
> 2) Configuration for MVT mirrors that of WMS (strangely) and WFS at least in 
> terms of determining which feature attributes are exposed, so 
> OWS_INCLUDE_ITEMS and OWS_[item name]_TYPE are about all you care about. This 
> applies to either MapCache or mode=tile requests. GeoJSON and KML drivers 
> behave similarly.
> 3) If using MapCache the requests are made using WMS so that protocol needs 
> to be enabled in the MapFIle.
> 4) The other option is using the CGI and mode=tile. You can set the format 
> either in the mapfile via IMAGETYPE or via URL using map_imagetype=mvt
> 5) The MVT format is layer-based so it maps nicely to MapServer. You can 
> certainly mix geometry types across layers. I don't know that the format 
> supports mixed geometry types within layers - MapServer doesn't so it's a 
> moot point anyway.
> 6) MapServer is generating binary protobuf files so there isn't really a way 
> to show sample outout.
> 7) The rendering process does respect MIN/MAXSCALEDENOM values
> 8) Features are converted from map coordinates to tile coordinates much the 
> same way as you would for drawing in an images. Features are clipped and then 
> sampled based on the tile extent and resolution. I think it's helpful to 
> think of MVT features as almost pre-processed features suitable for 
> drawing-only.
> 9) One difference from the vector->raster conversion and the vector->mvt 
> conversion is that I was finding that the Mapbox GL client was pretty 
> sensitive to degenerate geometries - specifically triangles that trend 
> towards a point (area < 1) or a line (triangle height along the longest size 
> < 1 pixel). The geometries are valid according to a few MVT utilities out 
> there but Mapbox GL stops rendering the geometry as soon as it reaches a part 
> like this. I've got a feeling this is related to Web GL itself. Anyway, 
> MapServer 7.2.2 has some additional filtering in place to remove this 
> portions of a geometry. I suspect we'll run into other issues like this as we 
> gain experience.
>
> One thing I don't have good handle on is strategies to optimize tiles based 
> on scale. For example, it's certainly possible to send full-resolution 
> features at a certain zoom level and it would seem to me that you wouldn't 
> want to keep sending them since the client already has as good a data as it 
> can get. This is all probably heavily dependent on the behavior of the client 
> and until folks get a chance to use this functionality we won't be able to 
> provide much guidance.
>
> --Steve
>
> -Original Message-
> From: Stephen Woodbridge [mailto:stephenwoodbridg...@gmail.com]
> Sent: Thursday, February 07, 2019 9:06 PM
> To: Lime, Steve D (MNIT) ; 
> mapserver-...@lists.osgeo.org
> Subject: Re: [mapserver-dev] Time for a 7.2.2 release?
>
> Steve L,
>
> I like what Openlayers has in the way of examples but that would be a
&g

Re: [mapserver-users] styling based on attribute for MapServer derived MVTiles

2019-02-09 Thread Lime, Steve D (MNIT)
You can specify a type in the gml metadata and that will impact how the 
conversion is done in the mvt encoding. Something like:

   gml_mapcolor7_type integer

Otherwise things are treated as strings...

—Steve

From: karsten 
Sent: Tuesday, February 5, 2019 3:01:51 PM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (MNIT)
Subject: RE: [mapserver-users] styling based on attribute for MapServer derived 
MVTiles

Great, Thanks Steve
I added  "gml_include_items" "mapcolor7"
to the Metadata block and got it working.
One quirk seems to be that when I am trying to the values as integer (from the 
mapcolor7 column) specifying the style as in 1.) below did not work.
However it I treat them as characters instead, quoted them and used "type": 
"categorical" in the json file for the style as in 2.) below it is working.

Cheers
Karsten

1.)

{
"id": "country-fill",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"paint": {
  "fill-color": {
"property": "mapcolor7",
"stops": [
[1, "#fdaf6b"],
[2, "#fdc663"],
[3, "#fae364"],
[4, "#d3e46f"],
[5, "#aadb78"],
[6, "#a3cec5"],
[7, "#ceb5cf"]
]
  }
}
}

2.)

{
"id": "country-fill",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"paint": {
  "fill-color": {
"property": "mapcolor7",
"type": "categorical",
"stops": [
["1", "#fdaf6b"],
["2", "#fdc663"],
["3", "#fae364"],
["4", "#d3e46f"],
["5", "#aadb78"],
["6", "#a3cec5"],
["7", "#ceb5cf"]
]
  }
}
}


From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Sent: Tuesday, February 05, 2019 21:15
To: karsten; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] styling based on attribute for MapServer derived 
MVTiles


I believe the default WxS behavior is to expose no attributes. You need to be 
explicit and I don’t see the gml_include_items metadata property in the mapfile 
for the layer allcountries. You’d need something like:



“gml_include_items”“mapcolor7”



Added to the allcountries layer. The mvt-demo does this for most layers…



--Steve



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of karsten
Sent: Monday, February 04, 2019 4:33 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] styling based on attribute for MapServer derived 
MVTiles



Dear All,



I was working on the configuration of MapServer generated MVT tiles for a demo 
country world map and had success with MS v 7.2 outputting tiles in MVT format 
( all thanks to 
https://github.com/sdlime/mvt-demo<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsdlime%2Fmvt-demo=02%7C01%7Csteve.lime%40state.mn.us%7C8cad89d7aa6f4f29f40e08d68bad2b0d%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636849973214573577=5L4SwL6sPn9%2BFDEQbvM1%2BKzCQ6KtXdc6OACIm4afEDc%3D=0>
 ).

I am trying to work on the client side style for my demo map (using 
mapbox-gl.js) and defined them in a similar way as JSON as in Steve's mvt-demo 
above. The whole thing is later intended to be used in a benchmark for 
MapServer MVT rendering speed versus T-Rex ( see 
http://blog.sourcepole.ch/2018/09/06/the-tale-of-a-vector-tile-benchmark/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fblog.sourcepole.ch%2F2018%2F09%2F06%2Fthe-tale-of-a-vector-tile-benchmark%2F=02%7C01%7Csteve.lime%40state.mn.us%7C8cad89d7aa6f4f29f40e08d68bad2b0d%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636849973214583591=x0OMGP7hH2SvVQysWctAAAlzU5kML4sxg1m9ZHj3yNM%3D=0>
 ) .



For now I am struggling with specifying the correct style syntax for the client 
side and it seem that I missing something as I was not yet able to successfully 
use attribute properties to render Countries as different colors based on an 
attribute field of my PostGIS source.

Below is the configuration of my 'allcountries' layer. The mapcolor7 filed is 
an integer field (in the input PostGIS source) but my set-up fails to output 
multiple colors , instead I am getting all default black for the country fill 
color. A second layer where I specified only Italy as 

Re: [mapserver-users] MVT Tiles status?

2019-02-05 Thread Lime, Steve D (MNIT)
It's in 7.2 although there are a couple of useful bug fixes set for 7.2.2...

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Stephen Woodbridge
Sent: Tuesday, February 05, 2019 5:44 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MVT Tiles status?

Is the MVT vector tiles stuff released yet? If not what’s the plan for that? I 
saw some posts in the archives that Steve L had stuff on github but would 
prefer to get it from Ubuntu packages. 

Thanks,
  -Steve W

Sent from my iPhone
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7Ce7118d8fe1684447cf1b08d68bc3c6cf%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636850070304631443sdata=%2BLnYvAsWuU7%2F7oKP55JKHsHW7fFIjVlPokyM3M0YAhQ%3Dreserved=0
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] styling based on attribute for MapServer derived MVTiles

2019-02-05 Thread Lime, Steve D (MNIT)
I believe the default WxS behavior is to expose no attributes. You need to be 
explicit and I don't see the gml_include_items metadata property in the mapfile 
for the layer allcountries. You'd need something like:

"gml_include_items""mapcolor7"

Added to the allcountries layer. The mvt-demo does this for most layers...

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of karsten
Sent: Monday, February 04, 2019 4:33 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] styling based on attribute for MapServer derived 
MVTiles

Dear All,

I was working on the configuration of MapServer generated MVT tiles for a demo 
country world map and had success with MS v 7.2 outputting tiles in MVT format 
( all thanks to 
https://github.com/sdlime/mvt-demo
 ).
I am trying to work on the client side style for my demo map (using 
mapbox-gl.js) and defined them in a similar way as JSON as in Steve's mvt-demo 
above. The whole thing is later intended to be used in a benchmark for 
MapServer MVT rendering speed versus T-Rex ( see 
http://blog.sourcepole.ch/2018/09/06/the-tale-of-a-vector-tile-benchmark/
 ) .

For now I am struggling with specifying the correct style syntax for the client 
side and it seem that I missing something as I was not yet able to successfully 
use attribute properties to render Countries as different colors based on an 
attribute field of my PostGIS source.
Below is the configuration of my 'allcountries' layer. The mapcolor7 filed is 
an integer field (in the input PostGIS source) but my set-up fails to output 
multiple colors , instead I am getting all default black for the country fill 
color. A second layer where I specified only Italy as one Country 
'country-italy' to show up renders fine -  see 
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/countries_mvt.png

My complete style JSON is at 
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/ms_ne_simple.json
and the corresponding map file is here 
https://github.com/karstenv/mvt-benchmark/blob/master/MapServer/ne.map

Would anyone know what I need to change in order to render the countries with 
different colors according to the 'mapcolor7' attribute ?
To me it seems that somehow the attribute is not available to the renderer even 
though in the MapServer map file I am selecting all fields in the sub-query ...

Thanks
Karsten


{
"id": "country-fill",
"type": "fill",
"source": "compass",
"source-layer": "allcountries",
"paint": {
  "fill-color": {
"property": "mapcolor7",
"stops": [
[1, "#fdaf6b"],
[2, "#fdc663"],
[3, "#fae364"],
[4, "#d3e46f"],
[5, "#aadb78"],
[6, "#a3cec5"],
[7, "#ceb5cf"]
]
  }
}
},{
"id": "country-italy",
"type": "fill",
"source": "compass",
"source-layer": "italy",
"paint": {
  "fill-color": "#fdc663"
  }
  }

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

Re: [mapserver-users] map file syntax for geojson file formats

2019-01-12 Thread Lime, Steve D (MNIT)
Depends if you’re talking about connecting to a WFS service or using MapServer 
to create a WFS service.

See https://mapserver.org/input/vector/wfs.html for the former and 
https://mapserver.org/ogc/wfs_server.html for the latter... it’s a little more 
involved.

—Steve

From: e.arapostat...@gmail.com 
Sent: Saturday, January 12, 2019 10:06:40 AM
To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] map file syntax for geojson file formats


Thank you very much for the quick and very clear and helpful responses.

Could I ask a last question please?

How could the same map file be transformed in order to create a WFS connection 
type?



Is it something like:



CONNECTIONTYPE WFS

DATA ‘./cemeteries.shp’ ?





From: Lime, Steve D (MNIT) 
Sent: Friday, January 11, 2019 10:25 PM
To: e.arapostat...@gmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] map file syntax for geojson file formats



It’s actually GDAL/OGR that provides GeoJson read support. So assuming you have 
a file called cemeteries.geojson it should be as simple as replacing:



  DATA './cemeteries.shp’



with:



   CONNECTIONTYPE OGR

   CONNECTION ‘./cemeteries.geojson’



See https://mapserver.org/input/vector/ogr.html for additional information on 
OGR support.



--Steve





From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of e.arapostat...@gmail.com<mailto:e.arapostat...@gmail.com>
Sent: Friday, January 11, 2019 11:24 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] map file syntax for geojson file formats



Hello,



  As few years have passed since the time that I was using mapserver constantly 
(before geojson file format started emerging) I would like to ask if there is 
any basic difference while creating the map files.



It would be of great help if you could provide me an example in the following 
map file which loads a shape file. What differences must be done in order to 
load the file cemetery.geojson instead of the cemetery.shp?





MAP

INCLUDE '../../geomoose_globals.map'



WEB

METADATA

'ows_title' 'Cemeteries'

INCLUDE 
'../../common_metadata.map'

'wfs_getfeature_formatlist' 'gml,geojson'

END

END



DEBUG 5





LAYER

NAME cemeteries

GROUP cemeteries

STATUS ON



METADATA

'ows_title' 'cemeteries'

'ows_include_items' 'all'

'gml_include_items' 'all'

END



TYPE POINT

DATA './cemeteries.shp’

TOLERANCE 4

PROJECTION

'init=epsg:4326'

END



CLASS

STYLE

SYMBOL 
'cemetery.png'

SIZE 13

END

END



TEMPLATE 'dummy'

END



END ## end Map





Thank you for your help.



[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient_term=icon>


Virus-free. 
www.avast.com<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=emailclient_term=link>



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

Re: [mapserver-users] map file syntax for geojson file formats

2019-01-11 Thread Lime, Steve D (MNIT)
It's actually GDAL/OGR that provides GeoJson read support. So assuming you have 
a file called cemeteries.geojson it should be as simple as replacing:

  DATA './cemeteries.shp'

with:

   CONNECTIONTYPE OGR
   CONNECTION './cemeteries.geojson'

See https://mapserver.org/input/vector/ogr.html for additional information on 
OGR support.

--Steve


From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of e.arapostat...@gmail.com
Sent: Friday, January 11, 2019 11:24 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] map file syntax for geojson file formats

Hello,

  As few years have passed since the time that I was using mapserver constantly 
(before geojson file format started emerging) I would like to ask if there is 
any basic difference while creating the map files.

It would be of great help if you could provide me an example in the following 
map file which loads a shape file. What differences must be done in order to 
load the file cemetery.geojson instead of the cemetery.shp?


MAP
INCLUDE '../../geomoose_globals.map'

WEB
METADATA
'ows_title' 'Cemeteries'
INCLUDE 
'../../common_metadata.map'
'wfs_getfeature_formatlist' 'gml,geojson'
END
END

DEBUG 5


LAYER
NAME cemeteries
GROUP cemeteries
STATUS ON

METADATA
'ows_title' 'cemeteries'
'ows_include_items' 'all'
'gml_include_items' 'all'
END

TYPE POINT
DATA './cemeteries.shp'
TOLERANCE 4
PROJECTION
'init=epsg:4326'
END

CLASS
STYLE
SYMBOL 
'cemetery.png'
SIZE 13
END
END

TEMPLATE 'dummy'
END

END ## end Map


Thank you for your help.

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]

Virus-free. 
www.avast.com


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

Re: [mapserver-users] mapserver queries and java / javascript

2019-01-10 Thread Lime, Steve D (MNIT)
It’s certainly possible to execute native MapServer queries via OpenLayers or 
Leaflet. I originally wrote jbox (and dbox, a pure JavaScript implementation) 
but abandoned those long ago for OpenLayers and Leaflet. I’d have to see your 
app to comment on appropriateness of each.

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Arthur Delorme
Sent: Thursday, January 10, 2019 8:44 AM
To: mapserver-users 
Subject: Re: [mapserver-users] mapserver queries and java / javascript

Thanks for your answer Yves.

I didn't know about lealet, which seems interesting: I will probably give it a 
try, for another application at least! And I know about OpenLayers. But if I'm 
not wrong, this implies to develop a new interface, where I would prefer to 
keep my MapServer app.

Besides, do they allow to make queries like MapServer does? The way MapServer 
does is perfect for my interface: select multiple georeferenced objects and 
browse through the results to download the ones of interest.

Thanks again
Arthur
Le 10/01/2019 à 15:20, Yves Jacolin a écrit :
Hello Arthur

You can find such features in two main projects:
* OpenLayers: http://www.openlayers.org/
* leaflet: https://leafletjs.com/

Regards,

Y.

Le jeu. 10 janv. 2019 à 15:03, Arthur Delorme 
mailto:delo...@ipgp.fr>> a écrit :
Hello,

Years ago there was a Java code called JBox, which were very nice to
make multiple queries by drawing a box on the map (which you could also
use in browse mode to zoom).

With the restrictions on Java in modern web browsers, I would like to
replace JBox with something else, maybe some Javascript, but I can't
find help about this by myself, so I come to you!

I'm not super familiar with JS, even though I can write some stuff. Do
you know about some examples / libraries to have this box tool?

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


--
Yves Jacolin
Training and support manager - Team Manager
Camptocamp

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com
http://www.camptocamp.com



--



Arthur Delorme

Institut de Physique du Globe de Paris

Bureau 219

1 rue Jussieu 75238 Paris Cedex 05

Tél. : 01 83 95 76 13
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How do a GetFeaureInfo on vector layer but showing raster layer ?

2018-12-27 Thread Lime, Steve D (MNIT)
Unfortunately you probably have to use mod_rewrite. It is possible to use 
MapServer to use its standard template processing to forward the query for a 
layer to another URL  or to use hidden layers and templates but to do so you 
have to be able to set the info_format to be used for the GetInfoRequest and it 
doesn’t appear that’s possible from QGIS – it always sets 
info_format=text/plain. If that’s not the case let me know and I can provide 
details on the MapServer-only methods.

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Anna Muñoz
Sent: Wednesday, December 26, 2018 11:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How do a GetFeaureInfo on vector layer but showing 
raster layer ?

Hi,
I would like to show with QGIS the attribute of a vector layer when I request 
for information in a raster layer. Raster layer is an image from wms service 
that also provides the vector layer.

I have tried to solve the problem defining a GROUP layer but QGIS doesn't 
recognize layers in a group as queryable although each of them is queryable. 
This topic is well described here: 
https://lists.osgeo.org/pipermail/mapserver-users/2012-July/072892.html

I have also test apache rewrite_rules following this link:
https://github.com/mapserver/mapserver/issues/3310

I have a very little knowledge of mapserver but I guess the solution is using 
rewrite rules. The most examples I have found are about clean url, but I am 
looking for redirection from one map file to another.

The idea is to get attribute information from vector layer when user request 
for information in a raster image loaded from wms service in QGIS.
Is this possible ? Any help would be appreciated.

Thank you in advance !
Anne
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] PHP MapScript queryByPoint fails successive query.

2018-12-13 Thread Lime, Steve D (MNIT)
How many bands are in the raster?

From: mapserver-users  on behalf of 
Moen, Paul T. 
Sent: Thursday, December 13, 2018 10:32:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP MapScript queryByPoint fails successive query.




I am trying to query a raster at 2 points in a single php file using php 
mapscript.

  1.  I create a map object.
  2.  I get a layer object from my raster
  3.  I create 2 point objects.
  4.  I query the raster layer object with queryByPoint using point 1 and it is 
successful, except that it gives me 4 results even though I pass in MS_SINGLE.
  5.  I query the raster layer object a second time using queryByPoint with the 
second point object I created and the query fails.



My questions:

Shouldn’t this be possible? If so, what am I doing wrong?

Why are 4 points returned when I pass in MS_SINGLE?





I have tried using MapScript 7.2.1, 6.4.4 and 7.0.7 with the same results.

MapScript



MapServer Version => MapServer version 7.2.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

PHP MapScript Version => ($Revision$ $Date$)



MapScript



MapServer Version => MapServer version 7.0.7 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

PHP MapScript Version => ($Revision$ $Date$)



MapScript



MapServer Version => MapServer version 6.4.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

PHP MapScript Version => ($Revision$ $Date$)





The code I am using is below.  I have set up a test script and sample data here 
http://swc.nd.gov:8000/_Usd8Y3s4N9pgkR.

The test can be run using php query.php 1 for the fail case. 
Running php query.php 2 is my work around using 2 map objects.





$map = new mapObj($path."/simple.map");

$qlay = $map->getLayerByName("qLayer");

$pq = ms_newPointObj();

$pq->setXY(567231,5086977); // 1298.609

$pq2 = ms_newPointObj();

$pq2->setXY(566445,5086590); // 1304.3274

$rastquery=$qlay->queryByPoint($pq,MS_SINGLE,1);

if($rastquery == MS_SUCCESS){

error_log("Number of results from 1st query: 
".$qlay->getNumResults()."\nShouldn't there be only 1 result since MS_SINGLE is 
passed?");

if($qlay->getNumResults()>0){

$qlay->open();

for ($i=0; $i < $qlay->getNumResults(); $i++) {

$rasresult = 
$qlay->getResult($i);

if($rasresult === FALSE){

error_log('No 
result '.$i);

} else {

$rasshptemp = 
$qlay->getShape($rasresult);


error_log("Result $i = ".$rasshptemp->values['value_0']);



}

}



}

} else {

error_log('1st query failed');

}



$rastquery=$qlay->queryByPoint($pq2,MS_SINGLE,1);

if($rastquery == MS_SUCCESS){

error_log("Number of results from 1st query: 
".$qlay->getNumResults()."\nShouldn't there be only 1 result since MS_SINGLE is 
passed?");

if($qlay->getNumResults()>0){

// error_log("In rastquery");

$qlay->open();

for ($i=0; $i < $qlay->getNumResults(); $i++) {

$rasresult = 
$qlay->getResult($i);

if($rasresult === FALSE){

error_log('No 
result'.$i);

} else {

$rasshptemp = 
$qlay->getShape($rasresult);


error_log("Result $i = ".$rasshptemp->values['value_0']);



}

}

}

} else {

error_log('2nd query failed!');

}

break;



Results



php 

Re: [mapserver-users] load an svg or a png or a gif as a map symbol in a map file

2018-12-12 Thread Lime, Steve D (MNIT)
You can do something like:

CLASS
STYLE
  SYMBOL 'http://maps2.dnr.state.mn.us/compass/lib/markers/02.png'
  SIZE 41
END
END

Where the symbol can reference a local file or a URL.

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Stathis G. Arapostathis
Sent: Wednesday, December 12, 2018 9:21 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] load an svg or a png or a gif as a map symbol in a 
map file

Dear Sirs/Madams,

  It's been a while since the last time I used map server. As a result I don't 
remember the exact syntax for loading some svg, png and gifs as symbols in a 
point layer. How could the following code be transformed in order to replace 
the star symbol with a gif titled as cemetery.gif?

CLASS
NAME 'cemeteries'
STYLE
COLOR 254 0 0
IMAGE 'star'
SIZE 8
END
END


thank you very much in prior for your help.

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]

Virus-free. 
www.avast.com


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

Re: [mapserver-users] OGR GeoJSON Layers...

2018-12-07 Thread Lime, Steve D (MNIT)
It may be my GDAL version, it’s a tad older. I will try and update that. Might 
be worth thininking about supporting runtime subs in the OGR url to pass extent 
values easily - where MapServer does the substitution using computed values. 
Kinda like the bbox hack for PostGIS.

From: James Klassen 
Sent: Friday, December 7, 2018 10:50:36 AM
To: Lime, Steve D (MNIT)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] OGR GeoJSON Layers...

The following works for me with MapServer 7.0.6/GDAL 2.2.  Note it doesn't 
appear to pass the bbox filter to the ESRI service so this only works with 
small layers (otherwise it will timeout).  With newer GDAL versions 
'OGRGeoJSON' will likely need to become 'ESRIJSON'.


LAYER
NAME 'rcoffices'
TYPE POINT

CONNECTIONTYPE OGR
CONNECTION 
"https://maps.co.ramsey.mn.us/arcgis/rest/services/MapRamsey/MapRamseyOperationalLayersAll/MapServer/1/query?f=json=1=1=*=OBJECTID;

DATA "OGRGeoJSON"

PROJECTION "init=epsg:200068" END

CLASS
STYLE
SYMBOL "circle"
SIZE 10
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END
END
END


Note: epsg:200068 is setup locally as Ramsey County Coordinates:

+proj=lcc +lat_2=44.88 +lat_1=45.13 
+lat_0=44.79 +lon_0=-93.383334 +x_0=152400.3048 
+y_0=30480.0610 +unit=sft +to_meter=0.30480060960122 +a=6378418.941 
+b=6357033.310 +no_defs

On Mon, Dec 3, 2018 at 3:13 PM Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> wrote:

Hi all: I’m running into an issue with GeoJSON service URLs vs local GeoJSON 
files. If I setup a connection like so:



  CONNECTIONTYPE OGR

  CONNECTION “http://...some arcgis server.../arcgis/rest/services...?...query 
string…”



and try to draw the layer it seems like it’s fetching features yet nothing is 
drawn. With CONFIG “CPL_DEBUG” “ON” I see an OGR message that it was able to 
open the URL successfully as GeoJSON . Using ogrinfo at the command line also 
works with the URL.



If I first save the URL response using wget and reference the local file, e.g.:



  CONNECTIONTYPE OGR

  CONNECTION “foo.json”



then the layer is drawn successfully. I know this has come up at least once 
before on the list but with no resolution.



This is running MapServer 6.4.5.



--Steve

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

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

2018-11-29 Thread Lime, Steve D (MNIT)
Hi Martin: Hmmm... I'm surprised it works one way and not the other. I can only 
guess that a scale denominator is not being computed in one case versus the 
other. I can confirm the necessary check is being done in the MVT code (via 
msLayerIsVisible()) but if the basic information that function needs is not 
available then that's the problem. 

I created a ticket: https://github.com/mapserver/mapserver/issues/5714

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Martin Høgh
Sent: Saturday, November 17, 2018 6:05 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer/MapCache vector tile test with max/min 
scale denominator

I've tested MapServer and MapCache with vector tiles using this 
MapServer branch:

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

And this MapCache PR:

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

And it works.

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

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

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

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

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

The definition in the MapCache file is





    mvt

application/vnd.mapbox-vector-tile









   

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

   

   

     

   public

application/vnd.mapbox-vector-tile

   /my_mapfile.map 

     

   









   wms_mvt

   g

   disk

   MVT





Cheers

-- 
Martin Høgh
MapCentia ApS

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

Re: [mapserver-users] a MapServer success story

2018-11-21 Thread Lime, Steve D (MNIT)
Hi David: Thanks for sharing and congrats. It's awesome to hear about the 
things build with the tool, it's very fulfilling on this end. It was 
interesting poking around the articles to see what people have created using 
your tool - it's impressive. Thanks for offering that service.

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of David Shorthouse
Sent: Wednesday, November 21, 2018 9:25 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] a MapServer success story

All -

A MapServer-based application I develop and maintain out-of-pocket surpassed 
what I think is an exciting milestone and I wanted to extend my deepest 
gratitude to the entire community for all your efforts. It's not often that 
software is cited in the scientific literature so I am very pleased that a 
MapServer-based app is helping to change that. Five hundred peer-reviewed 
articles that used its outputs is cause for celebration.

See: https://twitter.com/SimpleMappr/status/1064935188847828994. 

Thanks everyone,

David P. Shorthouse

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

Re: [mapserver-users] About the granularity of DEBUG on tileindex layers

2018-11-16 Thread Lime, Steve D (MNIT)
This isn't surprising. We haven't been real good about consistently using 
levels across the code base - cleaning that up would be a good project (or 
sprint activity) and wouldn't require deep technical knowledge.

I'll create a ticket for the case you've pointed about below...

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Friday, November 16, 2018 5:48 AM
To: Mapserver-Users (mapserver-users@lists.osgeo.org) 

Subject: [mapserver-users] About the granularity of DEBUG on tileindex layers

Hi,

I have always used just "DEBUG 5" for debugging raster layers but now I finally 
made a test with Mapserver 7.0.1 for seeing what is the real difference between 
the debugging levels. I was a bit surprised to see that there is not so much 
difference at all, and that the DEBUG 1 level gives information that is missing 
from the higher debugging levels but that would be useful sometimes.

Debug 1 prints these lines
[Fri Nov 16 12:05:50 2018].964589 msDrawRasterLayerLow(layer_name): entering.
[Fri Nov 16 12:05:50 2018].980393 msDrawRasterLayerLow(layer_name): Filename 
is: path/file.TIF
[Fri Nov 16 12:05:50 2018].980423 msDrawRasterLayerLow(layer_name): Path is: 
path/file.TIF
[Fri Nov 16 12:05:50 2018].980591 AUTO = +proj=utm +zone=35 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs
[Fri Nov 16 12:05:50 2018].980677 msDrawRasterLayerGDAL(): Entering transform.
[Fri Nov 16 12:05:50 2018].980687 msDrawRasterLayerGDAL(): 
src=9979,8,1786,1062, dst=0,0,1697,1009
[Fri Nov 16 12:05:50 2018].980691 msDrawRasterLayerGDAL(): source raster PL 
(9978.817,7.700) for dst PL (0,0).
[Fri Nov 16 12:05:50 2018].980700 msDrawRasterLayerGDAL(): red,green,blue,alpha 
bands = 1,2,3,0



All debug levels from level 2 print these lines:

[Fri Nov 16 12:09:05 2018].581597 msDrawRasterLayerLow(layer_name): entering.
[Fri Nov 16 12:09:05 2018].589989 AUTO = +proj=utm +zone=35 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs
[Fri Nov 16 12:09:05 2018].590061 msDrawRasterLayerGDAL(): Entering transform.
[Fri Nov 16 12:09:05 2018].590069 msDrawRasterLayerGDAL(): 
src=2318,7977,1786,1062, dst=0,0,1697,1009
[Fri Nov 16 12:09:05 2018].590073 msDrawRasterLayerGDAL(): source raster PL 
(2317.846,7977.061) for dst PL (0,0).
[Fri Nov 16 12:09:05 2018].590081 msDrawRasterLayerGDAL(): red,green,blue,alpha 
bands = 1,2,3,0
[Fri Nov 16 12:09:05 2018].720794 msDrawMap(): Layer 3 (layer_name), 0.139s


The only additional item that debug levels 2 and above give is the rendering 
time msDrawMap that is often useful.  But at the same time the filename and 
path items which are present at debug level 1 are missing.

I suggest to add debug items msDrawRasterLayerLow(): Filename and 
msDrawRasterLayerLow(): Path should be added alto to debug levels >=2.  For 
being even more useful the highest debug level could give also timings about 
reading the tileindex and perhaps separate timings about things like how long 
does it take to read the "src" window from each "Filename" and if overviews are 
used or not.

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

Re: [mapserver-users] savequery and queryfile

2018-11-07 Thread Lime, Steve D (MNIT)
Let me check and report back...

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of giantchen2010
Sent: Tuesday, November 06, 2018 1:18 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] savequery and queryfile

I'm a newbie to mapserver, and following the tutorial in example 3-3, and I
actually get the *.qy file,

MapServer Query Params - Generated by msSaveQuery()
1 1 -1 -1
1361917.39632199 -143455.578596053 0 0
-1 -1 -1 -1
-1 -1 1
NULL
NULL
3


but an error occurs when use map mode to get the cache :

mapserv(): Web application error. Parameter 'queryfile' value fails to
validate.

the env is :

MapServer version 7.0.7 (MS4W 3.2.7)

windows 10 enterprise build 1803

vivaldi browser.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] A couple of mapcache questions

2018-10-10 Thread Lime, Steve D (MNIT)
For my example below the mapfile has:

  TRANSPARENT TRUE
  IMAGECOLOR 181 181 181

and mapcache.xml has:

 

  http://maps2.dnr.state.mn.us/cgi-bin/mapserv64?


  
dummy
false
PNG24
LAKEFINDER_TILES_MAPFILE
  

  

  
lakefinder_wms
mn_google
disk
PNGQ_FAST
8 8
20
  

My mn_google grid is just the standard Google grid mapcache defines along with 
a limited extent.

--Steve

-Original Message-
From: Robert Miller [mailto:robert.mil...@floodbroker.com] 
Sent: Wednesday, October 10, 2018 11:40 AM
To: Lime, Steve D (MNIT) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] A couple of mapcache questions

Thanks very much for your reply.  I actually worked #1 out - I had the 
wrong units set in the grid.

I'm only using the style in the .map file, and haven't set min and max 
scale at this point.  Linecolor and width are (I think) sufficient, 
since it's just drawing a grid.

I've tried various combinations of TRANSPARENT TRUE, IMAGECOLOR 
"#FF" and IMAGECOLOR #00" in the mapfile, and turning 
transparent on and off in the mapcache file, and I get either white or 
black backgrounds in the cached tiles.  The mapserver tiles look fine in 
all cases.

Cheers,
Bob


On 10/10/2018 11:37 AM, Lime, Steve D (MNIT) wrote:
> Not sure if others replied off-list or not. It's hard to advise on issue 1 
> since the mapfile and layer definition you sent in the subsequent email was 
> incomplete. Knowing what styles you're using and any min/max scale values 
> would help.
>
> For issue 2 this is what I do for transparent tiles - I think you can just do 
> one or the other but it doesn't hurt to do both:
>
>- set "true" in the WMS source definition 
> params section.
>- set "TRANSPARENT TRUE" in the mapfile (at the map level). You might need 
> to set an IMAGECOLOR too depending on what you're drawing.
>
> In this example:
>
>http://maps1.dnr.state.mn.us/lakefinder/map.html
>
> I only did the latter...
>
> --Steve
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
> Behalf Of Robert Miller
> Sent: Friday, October 05, 2018 3:13 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] A couple of mapcache questions
>
> I'm trying to get my head around mapserver after using geoserver for a
> year or so.  I'm really impressed so far with the speed and ability of
> mapserver.  I've got a layer up and running on a WMS service and it
> works just I'd like.
>
> My question pertains to mapcache.  After a fair amount of head
> scratching, I've got mapcache serving up the tiles, but with a couple of
> issues...
>
> 1. The layer is basically a grid structure - so a bunch of black lines.
> When I load the layer in QGIS the lines disappear 5 or 6 zoom levels
> out.  I adapted the grid from WGS84 (my layer uses epsg:4269), and I
> don't really understand resolutions, so I'm thinking that might be the
> issue.  I tried tweaking the values and everything I did just turned the
> whole layer black.
>
> 2. Although the mapserver WMS service generates a transparent layer,
> webcache is sending me a layer with an opaque white background.
>
> I've tried googling and searching the archive for an understanding of #1
> and haven't found anything.  As for #2, I don't know where to start.  So
> any help would be much appreciated.
>
> Thanks,
> Bob Miller
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] A couple of mapcache questions

2018-10-10 Thread Lime, Steve D (MNIT)
Not sure if others replied off-list or not. It's hard to advise on issue 1 
since the mapfile and layer definition you sent in the subsequent email was 
incomplete. Knowing what styles you're using and any min/max scale values would 
help.

For issue 2 this is what I do for transparent tiles - I think you can just do 
one or the other but it doesn't hurt to do both:

  - set "true" in the WMS source definition params 
section. 
  - set "TRANSPARENT TRUE" in the mapfile (at the map level). You might need to 
set an IMAGECOLOR too depending on what you're drawing.  

In this example:

  http://maps1.dnr.state.mn.us/lakefinder/map.html

I only did the latter...

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Robert Miller
Sent: Friday, October 05, 2018 3:13 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] A couple of mapcache questions

I'm trying to get my head around mapserver after using geoserver for a 
year or so.  I'm really impressed so far with the speed and ability of 
mapserver.  I've got a layer up and running on a WMS service and it 
works just I'd like.

My question pertains to mapcache.  After a fair amount of head 
scratching, I've got mapcache serving up the tiles, but with a couple of 
issues...

1. The layer is basically a grid structure - so a bunch of black lines.  
When I load the layer in QGIS the lines disappear 5 or 6 zoom levels 
out.  I adapted the grid from WGS84 (my layer uses epsg:4269), and I 
don't really understand resolutions, so I'm thinking that might be the 
issue.  I tried tweaking the values and everything I did just turned the 
whole layer black.

2. Although the mapserver WMS service generates a transparent layer, 
webcache is sending me a layer with an opaque white background.

I've tried googling and searching the archive for an understanding of #1 
and haven't found anything.  As for #2, I don't know where to start.  So 
any help would be much appreciated.

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

Re: [mapserver-users] Getting all endpoints on a single MapServer instance

2018-10-08 Thread Lime, Steve D (MNIT)
Correct, MapServer doesn't provide this capability. You'd have to uses a 
catalog services or write something custom.

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Passmore, James H.
Sent: Monday, October 08, 2018 5:00 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Getting all endpoints on a single MapServer 
instance

> Is there a way to get all the endpoints (maps) that are available from a 
> given server?

I hope not, each service should be isolated from another.

To find different services from a single provider you should search some 
metadata catalogue, perhaps:

http://mcc.jrc.ec.europa.eu/emis/dev.py?N=42=277_page=Catalogue%20Service%20(CSW)_chap=Data%20access

James

-Original Message-
Today's Topics:

   1. Getting all endpoints on a single MapServerinstance
  (Jonathan Moules)


--

Message: 1
Date: Sat, 6 Oct 2018 20:08:45 +0100
From: Jonathan Moules 
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Getting all endpoints on a single MapServer
instance
Message-ID: <92a837a1-0334-a0e3-6757-bdee4bc22...@lightpear.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi List,

Is there a way to get all the endpoints (maps) that are available from a given 
server?

Or put another way, take this example where these two URL's both use different 
map files, and so have different layers (one is pointing to 
"wms_4km_modisa-bbp.map", the other to "wms_9km_seawifs-pp.map"):

http://gmis.jrc.ec.europa.eu/cgi-bin/mapserv?map=/srv/www/htdocs/wms/wms_4km_modisa-bbp.map=wms=getcapabilities

http://gmis.jrc.ec.europa.eu/cgi-bin/mapserv?map=/srv/www/htdocs/wms/wms_9km_seawifs-pp.map=wms=getcapabilities

If I only knew one of those URL's, would it be possible for me to figure out 
the other one, ideally via a GET request?

Thanks,
Jonathan

 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.

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

[mapserver-users] MapServer 7.2.1 Released

2018-10-01 Thread Lime, Steve D (MNIT)
The maintenance release of MapServer 7.2.1 is now available for download:



  http://mapserver.org/download.html



For a list of changes please see the changelog at 
https://mapserver.org/development/changelog/changelog-7-2.html



Thank you to all of the users, developers, documenters, and packagers for 
sharing the passion for such a great OSGeo project.



--

The MapServer Team

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

Re: [mapserver-users] Ideas about how to render over/under roadways/bridges in maps?

2018-09-18 Thread Lime, Steve D (MNIT)
Beautiful maps!

From: Edward Mac Gillavry [mailto:emacgilla...@hotmail.com]
Sent: Tuesday, September 18, 2018 4:58 PM
To: Lime, Steve D (MNIT) ; Basques, Bob (CI-StPaul) 
; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Ideas about how to render over/under 
roadways/bridges in maps?


Check out our MAP files for the City of Amsterdam reference map at
https://github.com/Amsterdam/mapserver/blob/develop/kbk50.map for the 1:50K 
map. The GROUP "lijnen" is the one you are looking for: it renders all casing 
from streets to regional thoroughfares, followed by the fills for the same 
lines. We then render all railroads and then the highways come last: again, we 
render the casings for all lines and then we finish with the fills in its own 
layer. This dataset doesn't contain an attribute for z-ordering unfortunately.

For the 1:5K and larger, there is the 
https://github.com/Amsterdam/mapserver/blob/develop/bgt.map MAP file that does 
have an attribute for z-ordering that we use to create views per z-level, e.g. 
"bgt.wegdeel_vlak0" for z-level 0.

Results can at https://data.amsterdam.nl/. Hope these MAP files give you some 
ideas how to go about rendering transportation networks.

Best,

Edward

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Tuesday, September 18, 2018 11:03:55 PM
To: Basques, Bob (CI-StPaul); 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Ideas about how to render over/under 
roadways/bridges in maps?


Most of the battle is identifying the over/under in the data. Have you got that 
figured out?  I'd think it would be a matter of sorting: under, neither under 
or over and then over. Probably with no line caps.



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Tuesday, September 18, 2018 11:14 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Ideas about how to render over/under 
roadways/bridges in maps?



All,



I'm looking for general techniques in how to best manage rendering of 
over/under roadway and rail road bridges, etc.



My first thought was to use some sort of special overlay layer to handle this.  
But maybe a database appraoch might be better.  I also start to fall into the 
problem of having a lot of transporation related layers,   Streets and 
Railroads obviously, but the not the so obvious are Alleys, Sidewalks, Park 
Trails/Paths, Bike Routes, tunnels, etc.



How to make these all stack nicely.  I generally maintain these things all in 
thier own grouping right now as separate datasets.  They originate from 
separate authors and are maintained that way too.  Which is why I was thinking 
that a DB approach might be the best to make the Z-indexing work.



Thoughts?



Thanks



bobb







"Reality is merely an illusion, albeit a very persistent one."

- Albert Einstein






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

Re: [mapserver-users] Ideas about how to render over/under roadways/bridges in maps?

2018-09-18 Thread Lime, Steve D (MNIT)
Most of the battle is identifying the over/under in the data. Have you got that 
figured out?  I’d think it would be a matter of sorting: under, neither under 
or over and then over. Probably with no line caps.

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Tuesday, September 18, 2018 11:14 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Ideas about how to render over/under 
roadways/bridges in maps?

All,

I’m looking for general techniques in how to best manage rendering of 
over/under roadway and rail road bridges, etc.

My first thought was to use some sort of special overlay layer to handle this.  
But maybe a database appraoch might be better.  I also start to fall into the 
problem of having a lot of transporation related layers,   Streets and 
Railroads obviously, but the not the so obvious are Alleys, Sidewalks, Park 
Trails/Paths, Bike Routes, tunnels, etc.

How to make these all stack nicely.  I generally maintain these things all in 
thier own grouping right now as separate datasets.  They originate from 
separate authors and are maintained that way too.  Which is why I was thinking 
that a DB approach might be the best to make the Z-indexing work.

Thoughts?

Thanks

bobb



"Reality is merely an illusion, albeit a very persistent one."
- Albert Einstein



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

Re: [mapserver-users] Curves in MapServer

2018-09-07 Thread Lime, Steve D (MNIT)
I'm pretty certain it's a no... I would think it should be possible to marshall 
curves into MapServer shapes though. --Steve


From: mapserver-users  on behalf of 
Seth G 
Sent: Thursday, September 6, 2018 6:08:29 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Curves in MapServer

Hi list,

Does anyone know if MapServer supports WKT curves for feature geometries?
I've tried a layer with the definition below but end up with the following 
error:

msGEOSShapeFromWKT(): GEOS library error. Error reading WKT geometry 
"CIRCULARSTRING(1 5, 6 2, 7 3)". 
msGEOSError(): GEOS library error. ÉíKZ 


LAYER
NAME "Curve"
STATUS ON
TYPE LINE
FEATURE
WKT "CIRCULARSTRING(1 5, 6 2, 7 3)"
END
CLASS
STYLE
COLOR 204 204 255
WIDTH 3
END
END
END

Curve geometries seem to be supported in GDAL (see 
https://trac.osgeo.org/gdal/wiki/rfc49_curve_geometries) but not in GEOS (I'm 
using geos-3.4).

Any information welcome,
Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-30 Thread Lime, Steve D (MNIT)
I should add that if there’s a clearer way to do that I’m all ears.

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Lime, Steve D (MNIT)
Sent: Thursday, August 30, 2018 10:07 AM
To: Rahkonen Jukka (MML) ; Mapserver-Users 
(mapserver-users@lists.osgeo.org) 
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

If the layer isn’t a point layer we need numlines>1 and a non-degenerate 
bounding box.
If the layer is a point layer we only need numlines>1 (the actual point is 
stored in the line array).

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Thursday, August 30, 2018 7:31 AM
To: Mapserver-Users 
(mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>) 
mailto:mapserver-users@lists.osgeo.org>>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I can’t really read the code but I still try to look at the changeset with 
layman eyes

   /* success if at least one line and not a degenerate bounding box */
-  if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || 
shape->bounds.miny != shape->bounds.maxy))
+  if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || 
(shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != 
shape->bounds.maxy)))
 return MS_SUCCESS;
   else
 return MS_FAILURE;

I wonder two things:
What happens now if the layer type is not MS_LAYER_POINT?
What if layer is of type MS_LAYER_POINT and numlines=1, which means that the 
bounding box of the result set is just a point and minx=maxx and miny=maxy?

-Jukka Rahkonen-



Lähettäjä: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Lähetetty: 29. elokuuta 2018 22:52
Vastaanottaja: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>; Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: RE: Getting an empty MVT output for a point layer

Fix is in place in the 7.2 branch. If folks would let me know how it goes I’d 
appreciate it. --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Lime, Steve D (MNIT)
Sent: Wednesday, August 29, 2018 11:54 AM
To: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Found the issue – clipping logic error. Will commit a fix today…

From: Lime, Steve D (MNIT)
Sent: Wednesday, August 22, 2018 9:11 AM
To: 'Rahkonen Jukka (MML)' 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: RE: Getting an empty MVT output for a point layer

A ticket would be terrific. I’m on this one… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, August 21, 2018 8:28 AM
To: Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I haven’t heard any feedback yet. Test data seems to be still available and I 
believe that the issue is real. It seems that nobody has bothered to create a 
ticket yet https://github.com/mapserver/mapserver/issues.

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 21. elokuuta 2018 16:20
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi, is there any update regarding this MVT output problem for point layers?

Thanks,

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

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-30 Thread Lime, Steve D (MNIT)
If the layer isn’t a point layer we need numlines>1 and a non-degenerate 
bounding box.
If the layer is a point layer we only need numlines>1 (the actual point is 
stored in the line array).

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Thursday, August 30, 2018 7:31 AM
To: Mapserver-Users (mapserver-users@lists.osgeo.org) 

Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I can’t really read the code but I still try to look at the changeset with 
layman eyes

   /* success if at least one line and not a degenerate bounding box */
-  if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || 
shape->bounds.miny != shape->bounds.maxy))
+  if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || 
(shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != 
shape->bounds.maxy)))
 return MS_SUCCESS;
   else
 return MS_FAILURE;

I wonder two things:
What happens now if the layer type is not MS_LAYER_POINT?
What if layer is of type MS_LAYER_POINT and numlines=1, which means that the 
bounding box of the result set is just a point and minx=maxx and miny=maxy?

-Jukka Rahkonen-



Lähettäjä: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Lähetetty: 29. elokuuta 2018 22:52
Vastaanottaja: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>; Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: RE: Getting an empty MVT output for a point layer

Fix is in place in the 7.2 branch. If folks would let me know how it goes I’d 
appreciate it. --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Lime, Steve D (MNIT)
Sent: Wednesday, August 29, 2018 11:54 AM
To: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Found the issue – clipping logic error. Will commit a fix today…

From: Lime, Steve D (MNIT)
Sent: Wednesday, August 22, 2018 9:11 AM
To: 'Rahkonen Jukka (MML)' 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: RE: Getting an empty MVT output for a point layer

A ticket would be terrific. I’m on this one… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, August 21, 2018 8:28 AM
To: Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I haven’t heard any feedback yet. Test data seems to be still available and I 
believe that the issue is real. It seems that nobody has bothered to create a 
ticket yet https://github.com/mapserver/mapserver/issues.

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 21. elokuuta 2018 16:20
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi, is there any update regarding this MVT output problem for point layers?

Thanks,

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

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-29 Thread Lime, Steve D (MNIT)
Fix is in place in the 7.2 branch. If folks would let me know how it goes I’d 
appreciate it. --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Lime, Steve D (MNIT)
Sent: Wednesday, August 29, 2018 11:54 AM
To: Rahkonen Jukka (MML) ; Caleb Lee 
; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Found the issue – clipping logic error. Will commit a fix today…

From: Lime, Steve D (MNIT)
Sent: Wednesday, August 22, 2018 9:11 AM
To: 'Rahkonen Jukka (MML)' 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: RE: Getting an empty MVT output for a point layer

A ticket would be terrific. I’m on this one… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, August 21, 2018 8:28 AM
To: Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I haven’t heard any feedback yet. Test data seems to be still available and I 
believe that the issue is real. It seems that nobody has bothered to create a 
ticket yet https://github.com/mapserver/mapserver/issues.

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 21. elokuuta 2018 16:20
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi, is there any update regarding this MVT output problem for point layers?

Thanks,

Caleb

From: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
Sent: Thursday, August 9, 2018 10:18 AM
To: Lime, Steve D (MNIT); Caleb Lee; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: Getting an empty MVT output for a point layer




Hi,



My colleague has suffered from the same issue. Here is a link to a directory 
with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural 
earth populated places as shapefile) http://193.167.189.71/temppi/



-Jukka Rahkonen-



Lähettäjä: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Lähetetty: 8. elokuuta 2018 21:14
Vastaanottaja: Caleb Lee mailto:caleb...@hotmail.com>>; 
Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: RE: Getting an empty MVT output for a point layer



I’ll have a look at this too. My demo instance had a point player so it 
certainly should be working. Can you share your data (contact me off list if 
you’d like)? --Steve



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Caleb Lee
Sent: Wednesday, August 08, 2018 12:40 PM
To: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer



I will be away for a while so I cannot do that right now. However, I can do 
that probably early next week.



If it helps, I just tried WMS request to generate both png and mvt and I got 
the similar result:



1. WMS request with FORMAT set to image/png

- I got a png image with 50k points drawn)



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=image/png



2. WMS request with application/x-protobuf

- got the same result like the following:


   nodesIdName(€ x



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf<http://xxx.com/cgi-bin/mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf>



Thanks,



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

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-29 Thread Lime, Steve D (MNIT)
Found the issue – clipping logic error. Will commit a fix today…

From: Lime, Steve D (MNIT)
Sent: Wednesday, August 22, 2018 9:11 AM
To: 'Rahkonen Jukka (MML)' ; Caleb Lee 
; mapserver-users@lists.osgeo.org
Subject: RE: Getting an empty MVT output for a point layer

A ticket would be terrific. I’m on this one… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, August 21, 2018 8:28 AM
To: Caleb Lee mailto:caleb...@hotmail.com>>; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I haven’t heard any feedback yet. Test data seems to be still available and I 
believe that the issue is real. It seems that nobody has bothered to create a 
ticket yet https://github.com/mapserver/mapserver/issues.

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 21. elokuuta 2018 16:20
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi, is there any update regarding this MVT output problem for point layers?

Thanks,

Caleb

From: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
Sent: Thursday, August 9, 2018 10:18 AM
To: Lime, Steve D (MNIT); Caleb Lee; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: Getting an empty MVT output for a point layer




Hi,



My colleague has suffered from the same issue. Here is a link to a directory 
with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural 
earth populated places as shapefile) http://193.167.189.71/temppi/



-Jukka Rahkonen-



Lähettäjä: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Lähetetty: 8. elokuuta 2018 21:14
Vastaanottaja: Caleb Lee mailto:caleb...@hotmail.com>>; 
Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: RE: Getting an empty MVT output for a point layer



I’ll have a look at this too. My demo instance had a point player so it 
certainly should be working. Can you share your data (contact me off list if 
you’d like)? --Steve



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Caleb Lee
Sent: Wednesday, August 08, 2018 12:40 PM
To: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer



I will be away for a while so I cannot do that right now. However, I can do 
that probably early next week.



If it helps, I just tried WMS request to generate both png and mvt and I got 
the similar result:



1. WMS request with FORMAT set to image/png

- I got a png image with 50k points drawn)



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=image/png



2. WMS request with application/x-protobuf

- got the same result like the following:


   nodesIdName(€ x



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf<http://xxx.com/cgi-bin/mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf>



Thanks,



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

Re: [mapserver-users] GetMap vs GetFeatureinfo sort

2018-08-28 Thread Lime, Steve D (MNIT)
Another idea might be to add a couple of columns to the data called GetMap and 
GetFeatureInfo and store the appropriate values to get you the order you want 
in them.

Then you can use runtime substitution in the DATA attribute to set the sort 
column based on the request type. E.g.

  DATA “... ORDER BY %request% ...”

You set validation on the the request accordingly. Might be some other SQL 
options to capitalize on.

—Steve

From: mapserver-users  on behalf of 
Rahkonen Jukka (MML) 
Sent: Tuesday, August 28, 2018 4:33:54 AM
To: Jörg Thomsen (WhereGroup); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GetMap vs GetFeatureinfo sort

Hi,

>From https://mapserver.org/mapfile/layer.html
"Inside a layer, only a single class will be used for the rendering of a 
feature. Each feature is tested against each class in the order in which they 
are defined in the mapfile. The first class that matches the its min/max scale 
constraints and its EXPRESSION check for the current feature will be used for 
rendering."

So in your example first geometry is rendered first with color 53 68 150 and 
the second one above it with color 188 34 115.

You wrote "I expect that the topmost feature returned in getfeatureinfo response
correspond to the topmost feature drawn on map". If you think of the rendering 
process, of yourself painting with brushes, the topmost feature on the map is 
the one that is painted last. If I understand it ight you would like to get a 
reversed order for GetFeatureInfo.

A workaround could be to make a copy of the layer you show on the map but with 
reversed sorting order. This layer would be used only for GetFeatureInfo 
requests. According to WMS specification QUERY_LAYERS must be a subset of 
LAYERS but if I remember right Mapserver is not strict with that and you could 
capture the GFT request on server side and change the name of the QUERY_LAYER 
on-the-fly. If Mapserver is strict, or you use some other server that follows 
the standard, you must also manipulate the request a bit more and add this 
extra layer into =.  Of course if you can control the client side you 
can make it to alter the GetFeatureInfo instead.

Another option could be to read the feature info with WFS GetFeature instead of 
WMS GetFeatureInfo. I also guess that heavy users of Mapserver will recommend 
you to use some MapScript dialect.

Be aware that Mapserver does not offer a real WYSIWYG experience with 
GetFeatureInfo. You can get also something what you do not see because 
Mapserver does not filter the GFI result by rendering rules like 
min/maxscaledenominators. I also believe that even if you have classes only for 
expression values 1 and 4 in your mapfile the GetFeatureInfo finds everything 
that appears in the data. I am not sure about this, though.

-Jukka Rahkonen-




-Alkuperäinen viesti-
Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Jörg Thomsen (WhereGroup)
Lähetetty: 28. elokuuta 2018 10:13
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] GetMap vs GetFeatureinfo sort

Hi,

hm, I would have expected the classes to be drawn in the same order as in the 
mapfile.

You could try to use the label-section with geomtransform 'labelpoint'
[1], perhaps mapserver there takes care of the mapfile order...

Another option would be to use grouped layers, I guess you found this
already:
https://gis.stackexchange.com/questions/71152/mapserver-layer-classes-display-order
-> 2nd answer

Jörg


[1] https://mapserver.org/mapfile/label.html
[2] https://mapserver.org/mapfile/geomtransform.html

Am 27.08.2018 um 20:37 schrieb pe_lord:
> Thanks.
>
> Here more informations.
>
> I have 2 overlapping geometries.
>
> My class are based on a field ==> CLASSITEM "code_type" and appear in
> my mapfile in this order.
>
> CLASS
> NAME "Blue CLASS"
> EXPRESSION '1'
> STYLE
> SYMBOL "square"
> SIZE 8
>COLOR 53 68 150
> END
> END
> ...
> CLASS
> NAME "Red Class"
> EXPRESSION '4'
> STYLE
> SYMBOL "square"
> SIZE 8
>COLOR 188 34 115
> END
> END
>
> My data is stored in this order into PG, with this structure (id,
> code_type,geom):
> id1,4,geom
> id2,1,geom
>
> If I understand properly, my last geometrie (id2) is plotted on top of
> other classes. This is making sense.
>
> Otherwise, in the getfeatureinfo, the same order is kept, this a
> non-sense according to my classes's order.
>
> I would like to to present this data in a flipped order like,
> according to my classes's logic:
> id2,1
> id1,4
>
>
> I expect that the topmost feature returned in getfeatureinfo response
> correspond to the topmost feature drawn on map. I would like to have a
> constant response, independently from my template format (gml, html,
> json...)
>
> You will find an
> 
>
>
> Here what I tried without succes:
> - flip my 

Re: [mapserver-users] Need example of using a tabular select to retieve metadata for a label

2018-08-23 Thread Lime, Steve D (MNIT)
I think you’d have to associate geometries with the text regardless since 
MapServer will always apply a spatial filter (based on extent) in addition to 
whatever non-spatial filter you populate. I could see tying the extent of your 
project – either a rect or some fancy geometry to each bit of disclaimer text 
so the spatial filter would always evaluate to true. Might also be possible to 
use non-map coordinates. You see that typically with inline layers. I might 
have other ideas if you provided a bit more detail…

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, August 23, 2018 10:58 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Need example of using a tabular select to retieve 
metadata for a label

I’m trying to use a tabular (no spatial field) SQL metadata call to populate a 
disclaimer notice in a image output.

Anyone tried this and have an example handy?

Thanks

bobb




I took a speed reading course and read ‘War and Peace’ in twenty minutes. It 
involves Russia.
—Woody Allen

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

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-22 Thread Lime, Steve D (MNIT)
A ticket would be terrific. I’m on this one… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, August 21, 2018 8:28 AM
To: Caleb Lee ; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi,

I haven’t heard any feedback yet. Test data seems to be still available and I 
believe that the issue is real. It seems that nobody has bothered to create a 
ticket yet https://github.com/mapserver/mapserver/issues.

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 21. elokuuta 2018 16:20
Vastaanottaja: 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: Re: [mapserver-users] Getting an empty MVT output for a point layer

Hi, is there any update regarding this MVT output problem for point layers?

Thanks,

Caleb

From: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
Sent: Thursday, August 9, 2018 10:18 AM
To: Lime, Steve D (MNIT); Caleb Lee; 
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: Getting an empty MVT output for a point layer




Hi,



My colleague has suffered from the same issue. Here is a link to a directory 
with a mapfile and corresponding datasets (OSM data as GeoPackage and Natural 
earth populated places as shapefile) http://193.167.189.71/temppi/



-Jukka Rahkonen-



Lähettäjä: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us]
Lähetetty: 8. elokuuta 2018 21:14
Vastaanottaja: Caleb Lee mailto:caleb...@hotmail.com>>; 
Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Aihe: RE: Getting an empty MVT output for a point layer



I’ll have a look at this too. My demo instance had a point player so it 
certainly should be working. Can you share your data (contact me off list if 
you’d like)? --Steve



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Caleb Lee
Sent: Wednesday, August 08, 2018 12:40 PM
To: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer



I will be away for a while so I cannot do that right now. However, I can do 
that probably early next week.



If it helps, I just tried WMS request to generate both png and mvt and I got 
the similar result:



1. WMS request with FORMAT set to image/png

- I got a png image with 50k points drawn)



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=image/png



2. WMS request with application/x-protobuf

- got the same result like the following:


   nodesIdName(€ x



mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf<http://xxx.com/cgi-bin/mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf>



Thanks,



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

Re: [mapserver-users] Getting an empty MVT output for a point layer

2018-08-08 Thread Lime, Steve D (MNIT)
I’ll have a look at this too. My demo instance had a point player so it 
certainly should be working. Can you share your data (contact me off list if 
you’d like)? --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Caleb Lee
Sent: Wednesday, August 08, 2018 12:40 PM
To: Rahkonen Jukka (MML) ; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

I will be away for a while so I cannot do that right now. However, I can do 
that probably early next week.

If it helps, I just tried WMS request to generate both png and mvt and I got 
the similar result:

1. WMS request with FORMAT set to image/png
- I got a png image with 50k points drawn)

mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=image/png

2. WMS request with application/x-protobuf
- got the same result like the following:

   nodesIdName(€ x

mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=WMS=1.1.1=GetMap=nodes=800=600=epsg:3857==-8979930,4769116,-8362889,5173075=application/x-protobuf

Thanks,

Caleb

From: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
Sent: Wednesday, August 8, 2018 12:00 PM
To: Caleb Lee; 
mapserver-users@lists.osgeo.org
Subject: Re: Getting an empty MVT output for a point layer


Hi,



We do not have your data for testing but please modify your mapfile a bit and 
make it to work with some public dataset, like Natural Earth populated places 
https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip?



-Jukka Rahkonen.



Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Caleb Lee
Lähetetty: 8. elokuuta 2018 17:47
Vastaanottaja: 
mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Getting an empty MVT output for a point layer



I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and 
one point layer). I am able to generate mvt output for a line layer but is 
having problem with a point layer. The mvt output is kind of empty (just 
contains layer name and column names). I am getting correct geojson outputs for 
both layers using WFS.



Here is the URL that I use to get MVT output:

mapserv?map=D:\home\site\wwwroot\100k_3857_node.map=tile=gmap=18+24+6=nodes=mvt



Here is the map file:



MAP

  EXTENT -9036156 4707746 -8243569 5174793

  CONFIG "PROJ_LIB" "D:\proj\SHARE"

  NAME "TestMap"



  WEB

METADATA

  "ows_enable_request" "*"

END

  END



  PROJECTION

   "init=epsg:3857"

  END



  OUTPUTFORMAT

NAME "mvt"

DRIVER MVT

FORMATOPTION "EDGE_BUFFER=20"

  END



  LAYER

NAME "nodes"

TYPE POINT

STATUS DEFAULT

CONNECTIONTYPE PLUGIN

PLUGIN "msplugin_mssql2008.dll"

CONNECTION "Connection to SQL Server Spatial"

DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857"

CLASS

  STYLE

COLOR 0 0 0

  END

END

PROJECTION

  "+init=epsg:3857"

END



METADATA

  "wfs_title"  "WFS service for Nodes"

  "wfs_srs""EPSG:3857 EPSG:4326"

  "wfs_abstract"   "WFS service for Nodes"

  "wfs_enable_request" "*"

  "gml_include_items"  "all"

END

  END



END



With almost an identical map file and an url (layer name and table name 
differ), I am getting a good mvt output for my line layer.



Any suggestions would be greatly appreciated.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapServer 7.2.0 Release

2018-07-30 Thread Lime, Steve D (MNIT)
Hi everyone! The MapServer team is pleased to (finally) announce the release of 
MapServer 7.2.


You can find a list of features at 
https://mapserver.org/development/announce/7-2.html and download links at 
https://mapserver.org/download.html.


As usual, please read the migration guide in
https://mapserver.org/MIGRATION_GUIDE.html if you are updating an
existing installation. Note that there are no breaking changes in this release.


Best regards,
The MapServer PSC and Developers

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

Re: [mapserver-users] Status of MVT vector tiles?

2018-06-28 Thread Lime, Steve D (MNIT)
It generates vector tiles based on WMS requests. MapCache computes the proper 
extent based on the requested tile and then kicks off a WMS call for vector 
tile. The pull request creates support for a new generic “raw” format. MapCache 
doesn’t know much about files in this format, just a mime-type, so things like 
metatiling, image processing or tile assembly aren’t supported. You do get the 
cache management though. The raw format is not specific to vector tiles so you 
could use it for other formats like GeoJSON or UTFGrid.

Anyway, in my mapcache.xml file I have the following setup:



   mvt
   application/vnd.mapbox-vector-tile




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

  sna,wma,lakes,major_roads,places
  application/vnd.mapbox-vector-tile
  /Users/sdlime/work/mvt-demo/demo.map 

  




  wms_mvt
  g
  disk
  MVT


Then, if you look at the simple.json file in my demo repo you just change the 
source for the vector tiles layer to reference MapCache (I was running as 
FastCGI) instead of MapServer (mode=tile), so from:

"tiles": 
["http://mapserver.localhost/cgi-bin/mapserv?map=/Users/sdlime/work/mvt-demo/demo.map=tile=gmap={x}+{y}+{z}=all=mvt;],

to:

"tiles": 
["http://mapserver.localhost/cgi-bin/mapcache.fcgi/gmaps/mvt@g/{z}/{x}/{y}.mvt;]

One thing to note is that you can control the resolution that each tile is 
created at. Each tile has a grid associated with it and that is used to convert 
the features to a grid-based coordinate system. The higher the resolution of 
that grid the more detail is represented in the tile. The default is 4096x4096. 
You can change that value via the MVT output format, for example:

OUTPUTFORMAT
  NAME “mvt”
  DRIVER MVT
  FORMATOPTION “EXTENT=512”
END

A smaller resolution or extent will generally result in smaller tiles.

--Steve

From: Miha Požauko [mailto:mihapoza...@gmail.com]
Sent: Tuesday, June 26, 2018 3:09 AM
To: Lime, Steve D (MNIT) 
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Status of MVT vector tiles?

I found that pull request before thanks, will play around with it some more. 
When you say it relies on WMS requests does that mean it generates raster tiles 
or vector tiles in PBD file format? I don't have mine mapcache example working 
yet so i don't know what to expect.

About canceled requests i found related "issue" discussed on leaflet forum:
https://github.com/Leaflet/Leaflet.VectorGrid/issues/136
But i don't see a problem with that because all entities are loaded on my map.

I will have to find that secret souce yes, will try to optimize my map file for 
different scales. Pregenerated vector tiles would also help.

Thanks for your answers. Will track your github for further updates.

Miha


V V pon., 25. jun. 2018 ob 23:57 je oseba Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> napisala:
Will do. I have a working MapCache example on my dev box that I can share 
pieces from. First step is to get MapCache working with the pull-request I 
submitted some time ago. It relies on WMS requests to MapServer for the MVT 
tiles. Pull request is at:

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

Regarding the canceled requests:

 I'm not sure what up with those.  However, I don't believe those are a server 
issue, rather a client-based. You can see the same behavior on other sites 
using vector tiles from other services 
(https://openmaptiles.com/downloads/dataset/osm/#0.23/0/-26) in Chrome 
DevTools. Could be related to pre-fetching resources.

Regarding a unresponsive browser:

There's likely a secret sauce in terms of the matching min/max scales you 
should offer a layer at, whether you should manage multiple resolutions of your 
data on the server and other filtering. The demo is very naïve in that regard 
so you can end up with big tiles. At this point it's not something I can offer 
a ton of help with - I don’t have a production MVT application yet.

Steve

-Original Message-
From: mapserver-users 
[mailto:mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>]
 On Behalf Of mp-surv
Sent: Saturday, June 23, 2018 6:28 PM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Status of MVT vector tiles?

Hey Steve.
I have a working demo using your data and when zooming out not all vector
tiles load and browser becomes unresponsive (image below). To avoid
overloading my computer when zooming out and causing my browser to crash I
would like to use mapcache, but I'm struggling to set it upt. Can you please
give a working example using mapache?

<http://osgeo-org.1560.x6.nabble.com/file/t368111/Capture.png>

I can see there are also a lot of canceled requests but they are not causing
my browser to crash. Do you know what produces them?

Thanks.







--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html

Re: [mapserver-users] Status of MVT vector tiles?

2018-06-25 Thread Lime, Steve D (MNIT)
Will do. I have a working MapCache example on my dev box that I can share 
pieces from. First step is to get MapCache working with the pull-request I 
submitted some time ago. It relies on WMS requests to MapServer for the MVT 
tiles. Pull request is at:

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

Regarding the canceled requests:

 I'm not sure what up with those.  However, I don't believe those are a server 
issue, rather a client-based. You can see the same behavior on other sites 
using vector tiles from other services 
(https://openmaptiles.com/downloads/dataset/osm/#0.23/0/-26) in Chrome 
DevTools. Could be related to pre-fetching resources.

Regarding a unresponsive browser:

There's likely a secret sauce in terms of the matching min/max scales you 
should offer a layer at, whether you should manage multiple resolutions of your 
data on the server and other filtering. The demo is very naïve in that regard 
so you can end up with big tiles. At this point it's not something I can offer 
a ton of help with - I don’t have a production MVT application yet. 

Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of mp-surv
Sent: Saturday, June 23, 2018 6:28 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Status of MVT vector tiles?

Hey Steve.
I have a working demo using your data and when zooming out not all vector
tiles load and browser becomes unresponsive (image below). To avoid
overloading my computer when zooming out and causing my browser to crash I
would like to use mapcache, but I'm struggling to set it upt. Can you please
give a working example using mapache?

 

I can see there are also a lot of canceled requests but they are not causing
my browser to crash. Do you know what produces them?

Thanks.







--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapServer 7.2.0 Beta 2 is Released

2018-06-13 Thread Lime, Steve D (MNIT)
Hi all: The MapServer PSC is happy to announce the release of the second beta 
for MapServer 7.2.0. It can be downloaded at 
http://mapserver.org/download.html#dev-release. There are no major feature 
additions. Please see the detailed change log 
(http://mapserver.org/development/changelog/changelog-7-2.html#changelog-7-2) 
for bug fixes.

Issues can be reported via GitHub at 
https://github.com/mapserver/mapserver/issues. If all goes well look for the 
official 7.2.0 release in about a week.

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

Re: [mapserver-users] Default GetCapabilities Version Not Working

2018-05-17 Thread Lime, Steve D (MNIT)
I tried it locally with 7.0.4 and it works as expected. I can switch between a 
default of 1.1.1 or 1.3.0 easily with that metadata element. I can’t create the 
exception you’re seeing with the metadata regardless of what I set it to – it 
defaults back to 1.3.0. I can create the exception via URL. Are you sure 
clients aren’t passing bad versions as opposed to no version?

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Lime, Steve D (MNIT)
Sent: Thursday, May 17, 2018 1:32 PM
To: Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] 
<matthew.f.cech...@nasa.gov>; mapserver-users <mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Default GetCapabilities Version Not Working

Hi Matthew: Looking at the code MapServer 7.0 defaults to 1.3.0 already for 
GetCapabilties requests – you shouldn’t need that line. That said, it should 
work… --Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
Sent: Wednesday, May 16, 2018 4:22 PM
To: mapserver-users 
<mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] Default GetCapabilities Version Not Working

All,
   We are running MapServer version 7.0.1 and attempting to use the MAP > WEB > 
METADATA > wms_getcapabilities_version configuration value to support 
GetCapabilities requests that do not supply the VERSION parameter.  
Unfortunately, even if we do add this value to our mapserver configuration 
file, we continue to see the following service exception.  Any suggestions?

msOWSParseVersionString(): OWS error. Invalid version (). Version must be in 
the format 'x.y' or 'x.y.z'

   Here is our METADATA block:


  WEB

METADATA

  "wms_enable_request" "GetMap GetCapabilities"

  "wms_title"  "Some Text"

  "wms_abstract"   "Some Text"

  "wms_onlineresource" "https://our_url?;

  "wms_srs""epsg:4326"

  "wms_getcapabilities_version"  "1.3.0"

  "wms_connectiontimeout"  "180"

 END

  END

Thanks,
Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

  1   2   3   4   5   >