Re: [mapserver-users] Projection help

2019-07-31 Thread Ian Walberg
Steve,

Actually that does work.

Thanks

Ian

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

Steve,

Good point, I did have the extent in meters but that did not work.

Should these work?
EXTENT -20026376 -20048966 20026376 20048966

Thanks

Ian

From: Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>>
Sent: Wednesday, July 31, 2019 6:38 PM
To: Ian Walberg mailto:ian.walb...@airborne.aero>>; 
mapserver-users@lists.osgeo.org
Subject: Re: Projection help

How are you setting an extent? The default extent you're defining is in lat/lon.

From: Ian Walberg mailto:ian.walb...@airborne.aero>>
Sent: Wednesday, July 31, 2019 5:34:05 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: 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) 
mailto:steve.l...@state.mn.us>>
Sent: Wednesday, July 31, 2019 3:22 PM
To: Ian Walberg mailto:ian.walb...@airborne.aero>>; 
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
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 Ian Walberg
Steve,

Good point, I did have the extent in meters but that did not work.

Should these work?
EXTENT -20026376 -20048966 20026376 20048966

Thanks

Ian

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

How are you setting an extent? The default extent you're defining is in lat/lon.

From: Ian Walberg mailto:ian.walb...@airborne.aero>>
Sent: Wednesday, July 31, 2019 5:34:05 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: 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) 
mailto:steve.l...@state.mn.us>>
Sent: Wednesday, July 31, 2019 3:22 PM
To: Ian Walberg mailto:ian.walb...@airborne.aero>>; 
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
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)
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
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

[mapserver-users] Projection help

2019-07-31 Thread Ian Walberg
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>>
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

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

[mapserver-users] labels for pie|bar charts

2019-07-31 Thread Nicol Hermann
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://mapserver.org/output/dynamic_charting.html).
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://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Combining WMS Filter and Style Parameters

2019-07-31 Thread Seth G
Thanks for the confirmation. I'll try and create a simple test case to 
reproduce this. 

--
web:http://geographika.co.uk
twitter: @geographika

On Wed, Jul 31, 2019, at 7:49 PM, pe_lord wrote:
> Yes I encounter the same issue as you mentioned.
> 
> 
> 
> 
> --
> 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] Combining WMS Filter and Style Parameters

2019-07-31 Thread pe_lord
Yes I encounter the same issue as you mentioned.




--
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