Re: [MapServer-users] WMS GetFeatureInfo default FEATURE COUNT

2024-05-07 Thread Andrew Harfoot via MapServer-users
Thanks Seth and Jukka for the responses. For the WMS in question to 
function as intended, the FEATURECOUNT needs to set to greater than 1, 
so I'll try a rewrite as Seth suggests.


Andy

On 03/05/2024 14:56, Seth G wrote:

[You don't often get email from se...@geographika.co.uk. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

CAUTION: This e-mail originated outside the University of Southampton.

Hi Andrew,

It looks like this is hard-coded to be set to 1 if missing (there is a comment 
that it is up to the server what to do if FEATURECOUNT is not provided).
You could handle this at the web server level with a URL rewrite to add 
FEATURECOUNT to any GetFeatureInfo request where it is missing.

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Fri, May 3, 2024, at 3:43 PM, Andrew Harfoot via MapServer-users wrote:

Hi list,

In a WMS GetFeatureInfo request, if the client does not include the
FEATURECOUNT parameter then MapServer appears to default to
FEATURECOUNT=1. Is there any way to override this default in the server
configuration?

Thanks,

Andy


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



--
Andy Harfoot

Skype: gdi_ajph
Teams: a...@soton.ac.uk
Phone: +44 2380 590566

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

www.geodata.soton.ac.uk

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


Re: [MapServer-users] WMS GetFeatureInfo default FEATURE COUNT

2024-05-03 Thread Rahkonen Jukka via MapServer-users
Hi,

In the WMS standard the FeatureCount parameter is defined to be optional, and 
the default is one.

"Number of features about which to return information (default=1)"

What you ask would be against the standard.

-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: MapServer-users  Puolesta 
Andrew Harfoot via MapServer-users
Lähetetty: perjantai 3. toukokuuta 2024 16.43
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [MapServer-users] WMS GetFeatureInfo default FEATURE COUNT

Hi list,

In a WMS GetFeatureInfo request, if the client does not include the 
FEATURECOUNT parameter then MapServer appears to default to FEATURECOUNT=1. Is 
there any way to override this default in the server configuration?

Thanks,

Andy


___
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 GetFeatureInfo default FEATURE COUNT

2024-05-03 Thread Seth G via MapServer-users
Hi Andrew,

It looks like this is hard-coded to be set to 1 if missing (there is a comment 
that it is up to the server what to do if FEATURECOUNT is not provided). 
You could handle this at the web server level with a URL rewrite to add 
FEATURECOUNT to any GetFeatureInfo request where it is missing.

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Fri, May 3, 2024, at 3:43 PM, Andrew Harfoot via MapServer-users wrote:
> Hi list,
>
> In a WMS GetFeatureInfo request, if the client does not include the 
> FEATURECOUNT parameter then MapServer appears to default to 
> FEATURECOUNT=1. Is there any way to override this default in the server 
> configuration?
>
> Thanks,
>
> Andy
>
>
> ___
> 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] WMS GetFeatureInfo default FEATURE COUNT

2024-05-03 Thread Andrew Harfoot via MapServer-users

Hi list,

In a WMS GetFeatureInfo request, if the client does not include the 
FEATURECOUNT parameter then MapServer appears to default to 
FEATURECOUNT=1. Is there any way to override this default in the server 
configuration?


Thanks,

Andy


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


Re: [MapServer-users] WMS with Raster Images and time Dimension

2023-11-09 Thread Rahkonen Jukka via MapServer-users
Hi,

I would read first this https://www.mapserver.org/ogc/wms_time.html.
But if you have only two alternatives midday/tomorrow then simply having two 
layers could be an option. Or use runtime substitution 
https://mapserver.org/cgi/runsub.html.
Define LAYER – DATA like
DATA "%img_time%.tif "

write the validation block and then make the WMS client to add a new parameter
…=GetMap_time=midday

-Jukka Rahkonen-

Lähettäjä: MapServer-users  Puolesta 
G. Völkl via MapServer-users
Lähetetty: torstai 9. marraskuuta 2023 10.35
Vastaanottaja: MapServer-users@lists.osgeo.org
Aihe: [MapServer-users] WMS with Raster Images and time Dimension

Hi,

I want to create a WMs Service that consists of two raster files. The 
tomorrow.tif file shows the city in the morning. The file midday.tif the city 
at midday. The corresponding image should be able to be queried using the time 
parameter. Any examples with Raster images and time demension?


Best regards Gerhard





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


[MapServer-users] WMS with Raster Images and time Dimension

2023-11-09 Thread G . Völkl via MapServer-users
Hi, 

I want to create a WMs Service that consists of two raster files. The 
tomorrow.tif file shows the city in the morning. The file midday.tif the city 
at midday. The corresponding image should be able to be queried using the time 
parameter. Any examples with Raster images and time demension?

Best regards Gerhard



Von meinem iPhone gesendet___
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-12 Thread Clausen Marcel via MapServer-users
Hello Steve


Sure with the logging enabled i get the following:


mapfile metadata: "wms_timeextent" "2005/2022"

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

log:

wms-bgdi_1  |  [warn] [pid 9229] mod_fcgid: stderr: msWMSApplyTime: WMS server 
error. Time value(s) 2022-01-01/2022-12-31 given is invalid or outside the time 
extent defined (2005/2022).
wms-bgdi_1  |  [warn] [pid 9229] mod_fcgid: stderr: freeLayer(): freeing layer 
at 0x557566f87510.
wms-bgdi_1  |  [warn] [pid 9229] mod_fcgid: stderr: msPostGISLayerIsOpen called.
wms-bgdi_1  | 172.26.0.1 - - [13/Feb/2023:07:23:28 +] "GET 
/local/?SERVICE=WMS=1.3.0=GetMap=image/png=true=ch.swisstopo.lubis-bildstreifen=EPSG:2056==860=600=242,105,285,135=2022-01-01/2022-12-31
 HTTP/1.1" 200 674


With this time extent definition nothing is being sent to the database. The 
time value is considered as invalid (outside the time extent) by the validation 
code -> InvalidDimensionValue.
https://github.com/MapServer/MapServer/blob/f3f05d4cf30af615d5f443a1c47c20b6117e52cb/mapwms.cpp#L268

If we increase the upper bound of the time extent by one year we get the 
following logs:

mapfile metadata: "wms_timeextent" "2005/2023"

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

logs:

msPostGISLayerWhichShapes query: select 
"resolution"::text,"flugdatum"::text,ST_AsBinary(("the_geom"),'NDR') as 
geom,"bildstreifen_nr"::text from (
SELECT
   the_geom
, filmart
, firma
, flugdatum
, objectid
, resolution
, bildstreifen_nr
, bildstreifen_nr as id
, bgdi_flugjahr
, area
, gsd
, toposhop_length
, toposhop_start_x
, toposhop_start_y
, toposhop_end_x
, toposhop_end_y
, toposhop_date
, goal
, georef_source as source_georef
from ads40.view_bildstreifen
WHERE
firma like 'swisstopo'
order by resolution desc
) AS bla where ST_Intersects("the_geom", ST_GeomFromText('POLYGON((2420250 
1050250,2420250 1349750,2849750 1349750,2849750 1050250,2420250 
1050250))',2056)) and (("flugdatum" >= date_trunc('day',date '2022-01-01') and 
"flugdatum" <= (date_trunc('day',date '2022-12-31') + interval '1 day' - 
interval '1 second')))
msPostGISLayerWhichShapes query status: PGRES_TUPLES_OK (2)
msPostGISLayerWhichShapes got 482 records in result.
msPostGISLayerNextShape called.
msPostGISReadShape called.

The full layer config is here: https://pastebin.com/NkJXnRJt

Thank you and best regards
Marcel



Von: Lime, Steve D (MNIT) 
Gesendet: Donnerstag, 9. Februar 2023 23:04:03
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

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

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<mailto: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
_

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

2023-02-07 Thread Clausen Marcel via MapServer-users
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


http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd;>


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<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] wms time validation of time parameter against timeextent gives unexpected results

2023-02-06 Thread Steve Lime
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 <
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://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] wms time validation of time parameter against timeextent gives unexpected results

2023-02-02 Thread Clausen Marcel via MapServer-users


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://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] WMS Server

2022-12-14 Thread Arnold Nicholas Tua Sibuea
Hi ,

Does anywant can give recommendation of the Hardware spec for WMS Server?

Thanks in advance
Arnold


-Original Message-
From: MapServer-users  On Behalf
Of mapserver-users-requ...@lists.osgeo.org
Sent: 14 December 2022 20:48
To: mapserver-users@lists.osgeo.org
Subject: MapServer-users Digest, Vol 179, Issue 22

Send MapServer-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of MapServer-users digest..."


Today's Topics:

   1. Re: Tileindex in format different than SHP? (Marcin Niemyjski)


--

Message: 1
Date: Wed, 14 Dec 2022 13:48:03 +
From: Marcin Niemyjski 
To: Rahkonen Jukka ,
"mapserver-users@lists.osgeo.org"

Subject: Re: [MapServer-users] Tileindex in format different than SHP?
Message-ID:



Content-Type: text/plain; charset="utf-8"

Jukka,

thanks, I will do more tests.

Marcin

From: Rahkonen Jukka 
Sent: Wednesday, December 14, 2022 2:36 PM
To: Marcin Niemyjski ; Jeff McKenna
; mapserver-users@lists.osgeo.org

Subject: VS: [MapServer-users] Tileindex in format different than SHP?


Hi,



You are wrong, a GeoPackage layer as a tileindex is about as fast as a
shapefile in common bbox filtering that WMS is, and faster than shapefile
index if you want to filter or sort the data by other attributes. That is
based on my measurements from some years ago with an orthophoto layer
having about 8 rows in the index. Your data can be different but make
a proper test and then jugde by the facts. There is no need to render the
tileindex layer once you have made it to work. However, it does offer a
handy way for letting your users to query metadata from the individual
images with GetFeatureInfo if you happen to have that kind of needs.



-Jukka Rahkonen-



L?hett?j?: MapServer-users 
Puolesta Marcin Niemyjski via MapServer-users
L?hetetty: keskiviikko 14. joulukuuta 2022 15.08
Vastaanottaja: Jeff McKenna ;
mapserver-users@lists.osgeo.org
Aihe: Re: [MapServer-users] Tileindex in format different than SHP?



Jeff,

I checked TILEINDEX documentation before writing to you. I found no
information's about other formats except that shapefile is usually used.



Jukka,

I created an extra layer as you suggested, thanks - it works, but I will
stay with Shapefiles on this one. When working with tileindex as extra
layer it takes 2x more time for mapserver to render the layer.



Thank you all,

Marcin



From: MapServer-users
mailto:mapserver-users-bounces@li
sts.osgeo.org>> on behalf of Jeff McKenna
mailto:jmcke...@gatewaygeomatics.com>>
Sent: Wednesday, December 14, 2022 1:51 PM
To:
mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org>>
Subject: Re: [MapServer-users] Tileindex in format different than SHP?



I had recently spent a few weeks of effort on updating the documentation
for TILEINDEX, with many examples, see :
https://mapserver.org/optimization/tileindex.html

-jeff


--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-12-14 7:23 a.m., Marcin Niemyjski via MapServer-users wrote:
> Hello,
>
> Can I use format different than SHP while using tileindex of rasters?
>
> When using Mapfile with configuration as below:
>
> LAYER
> ?NAME "2021-01-02_high"
>  STATUS ON
>  TILEINDEX
"/DyskPlanetiler/Sentinel1COG/2021/01/02/2021-01-02.gpkg"
>  TILEITEM "location"
>  TYPE RASTER
>  MAXSCALEDENOM 400
>  GROUP "2021-01-02"
>  PROJECTION
>  "init=epsg:4326"
>  END
> END
>
> error 

Re: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Jody Klymak
Hi Bjørn 


> On Nov 27, 2022, at 2:21 PM, Bjørn Ove Grøtan  wrote:
> 
> It's "request=GetMap" not "request=Map”.

Ooops, that indeed works!  

However, it is still somewhat strange that GetAttributes x and y are swapped in 
the BoundingBox

Thanks,   Jody


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


Re: [MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Bjørn Ove Grøtan
Jody Klymak:
> Hi,
> 
> I am a new user, using mapserver 8.0.0:
> 
> I have been going through the tutorials and have trouble making rasters work 
> on my WMS server.  The same map file works fine in QGIS, so I think there is 
> a bug in mapserver, but wanted to write here in case I am doing anything 
> silly.
> 
> If I query the server I get layers that have minx miny in the BoundingBox 
> that are transposed with respect to lat and lon:
> 
> ```
> 
> modis
> modis
> EPSG:4326
> 
> -97.238976
> -82.122902
> 41.619778
> 49.385620
> 
> 
>  maxx="49.385620" maxy="-82.122902"/>
> 
> 
> text/xml
> http://www.w3.org/1999/xlink; 
> xlink:type="simple" 
> xlink:href="https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=GetMetadata=modis"/>
> 
> 
> ```
> 
> If I query the wms server with 
> 
> `https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=WMS=1.3=Map=modis=EPSG:4326=-97.238976,41.619778,-82.122902,49.385620=png=360=270`

It's "request=GetMap" not "request=Map".

> 
> I get a blank image
> 
> If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, 
> then it works, but is of course distorted. 
> 
> Maybe I’m really mis-understanding the BBOX parameter, but it seems that 
> there is a bug where someone has said x is equivalent to latitude, where they 
> meant longitude. 
> 
> Again, this map works fine in QGIS, I assume because it doesn’t look at the 
> BoundingBox and just uses the  etc. 
> 
> The map file is 
> 
> ```
> MAP
>   NAME "MAPSERVER_RASTER"
>   IMAGETYPE  PNG24
>   EXTENT-97.238976 41.619778 -82.122902 49.385620
>   SIZE   360 270
>   SHAPEPATH  "./data/"
>   IMAGECOLOR 200 200 200
> 
>   PROJECTION
> "init=epsg:4326"
>   END
> 
>   WEB
> METADATA
>   ows_title "MapServer Raster"
>   ows_enable_request "*"
>   ows_srs "EPSG:4326"
>   ows_onlineresource  
> "https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map;
> END
>   END
>   LAYER # MODIS raster layer begins here
> NAME "modis"
> DATA "ugl_ref2.png"
> STATUS   DEFAULT
> TYPE RASTER
> EXTENT-97.238976 41.619778 -82.122902 49.385620
> OFFSITE  71 74 65
> PROJECTION
>   "init=epsg:4326"
> END
>   END # MODIS raster layer ends here
> END
> ```
> 
> Thanks,   Jody
> 
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Kind regards
 
Bjørn Ove Grøtan
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] WMS GetCapabilities map minx, miny etc transposed

2022-11-27 Thread Jody Klymak
Hi,

I am a new user, using mapserver 8.0.0:

I have been going through the tutorials and have trouble making rasters work on 
my WMS server.  The same map file works fine in QGIS, so I think there is a bug 
in mapserver, but wanted to write here in case I am doing anything silly.

If I query the server I get layers that have minx miny in the BoundingBox that 
are transposed with respect to lat and lon:

```

modis
modis
EPSG:4326

-97.238976
-82.122902
41.619778
49.385620





text/xml
http://www.w3.org/1999/xlink; xlink:type="simple" 
xlink:href="https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=GetMetadata=modis"/>


```

If I query the wms server with 

`https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map=WMS=1.3=Map=modis=EPSG:4326=-97.238976,41.619778,-82.122902,49.385620=png=360=270`

I get a blank image

If I swap lat for lon in the BBOX=41.619778,-97.238976,49.385620,-82.122902, 
then it works, but is of course distorted. 

Maybe I’m really mis-understanding the BBOX parameter, but it seems that there 
is a bug where someone has said x is equivalent to latitude, where they meant 
longitude. 

Again, this map works fine in QGIS, I assume because it doesn’t look at the 
BoundingBox and just uses the  etc. 

The map file is 

```
MAP
  NAME "MAPSERVER_RASTER"
  IMAGETYPE  PNG24
  EXTENT-97.238976 41.619778 -82.122902 49.385620
  SIZE   360 270
  SHAPEPATH  "./data/"
  IMAGECOLOR 200 200 200

  PROJECTION
"init=epsg:4326"
  END

  WEB
METADATA
  ows_title "MapServer Raster"
  ows_enable_request "*"
  ows_srs "EPSG:4326"
  ows_onlineresource  
"https://cproof.uvic.ca/cgi-bin/mapserv?map=/usr/local/opt/mapserver/cproof/mapserver_raster.map;
END
  END
  LAYER # MODIS raster layer begins here
NAME "modis"
DATA "ugl_ref2.png"
STATUS   DEFAULT
TYPE RASTER
EXTENT-97.238976 41.619778 -82.122902 49.385620
OFFSITE  71 74 65
PROJECTION
  "init=epsg:4326"
END
  END # MODIS raster layer ends here
END
```

Thanks,   Jody

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


Re: [MapServer-users] WMS in 16bit depth?

2022-10-12 Thread Seth G
Hi Marcin,

Are you trying to display raster images with more colours?

You can play around with the OUTPUTFORMAT options - see details at 
https://mapserver.org/mapfile/outputformat.html
IMAGEMODE might be what you are looking for?

I've normally used these to reduce image sizes where possible. 

Seth


--
web:https://geographika.net
twitter: @geographika

On Wed, Oct 12, 2022, at 9:49 AM, Marcin Niemyjski via MapServer-users wrote:
> Hello,
> 
> Is it possible to exhibit WMS in 16bit depth? The goal is to provide more 
> depth in the scale. Could I ask for a hint?
> 
> Best regards,
> Marcin
> ___
> 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] WMS in 16bit depth?

2022-10-12 Thread Marcin Niemyjski via MapServer-users
Hello,

Is it possible to exhibit WMS in 16bit depth? The goal is to provide more depth 
in the scale. Could I ask for a hint?

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


Re: [MapServer-users] WMS: Not all features show, depending on how I zoom and pan

2022-10-02 Thread Scott
It would be interesting if you could change your 
'irrigation-network.gml' into a different format, say .shp, something like:


ogr2ogr irrigation-network.shp irrigation-network.gml

Then try that as a data source in your layer and see if your results 
differ. This would might help us distinguish between a driver issue and 
a mapserver issue.




On 10/2/22 04:51, Antonis Christofides wrote:

Hello Seth,

Thanks for replying. I experimented and found out there's no difference 
if I use something minimal such as what you suggested. What does make a 
difference is the CRS: if I tell QGIS to use EPSG:2100 (Greek grid—the 
CRS the data files use), then everything works fine. If I use 4326 or 
3857, then the problem appears. Therefore it appears that the problem is 
with reprojecting (as the stackexchange user "nmtoken" had suspected). 
Leaflet seems to be requesting 3857.


What would be the right course of action here? Should I tell Leaflet to 
do the reprojection instead? Should I investigate further why mapserver 
has trouble reprojecting (and how would I do that)? Should I reproject 
my data files (GML) offline and store them in 3857 instead of 2100? Is 
there any common/best practice regarding this?


Thanks!

Antonis



On 28/09/2022 17.47, Seth G wrote:

Hi,

Is there any change if you update the layer to have a single class 
with a simple line (no EXPRESSION, LABEL, MAXSCALEDENOM)?


E.g.

    CLASS
    STYLE
    COLOR 0 0 255
    WIDTH 6
    END

Seth

--
web:https://geographika.net
twitter: @geographika

On Wed, Sep 28, 2022, at 1:03 PM, Antonis Christofides wrote:


Hello,

I have a problem that has already been discussed in stackexchange 
(https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan ), but without solution so far.


I'm repeating the full text here, but if there's any problem with the 
images it might be better to go to stackexchange to read it.


Here is how QGIS shows an irrigation network, received by MapServer 
via WMS and superimposed on OpenStreetMap:


enter image description here

Here is the same thing, but slightly panned to the right:

enter image description here

Several items are obviously missing. In fact there are items missing 
in the top picture as well. Different items become visible as I zoom 
and pan differently.


Since this pretty much tells the whole story, I'm not going into more 
details. MapServer version is 7.6.2 (prepackaged for Debian). The 
base URL is 
https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map . Finally, below I paste the interesting parts of the mapfile.


Thanks!

Antonis




|MAP NAME "aira-poros" STATUS ON SIZE 9040 7731 EXTENT 103986.57 
3850796.18 1007945.14 4623933.00 UNITS meters PROJECTION 
"init=epsg:2100" END CONFIG MS_ERRORFILE 
"/var/log/mapserver/extralayers.log" # [Omitting some OUTPUTFORMAT 
sections] WEB IMAGEPATH "/var/cache/mapserver/" IMAGEURL 
"/mapserver_tmp/" METADATA "wms_title" "Aira Poros" 
"wms_onlineresource" 
"https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;  "wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857" "wms_enable_request" "*" "wms_feature_info_mime_type" "text/html" "wfs_title" "Aira Poros" "wfs_onlineresource" "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;  "wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857" "wfs_enable_request" "*" END END LAYER NAME "irrigation-network" TYPE LINE CONNECTIONTYPE OGR CONNECTION "irrigation-network.gml" METADATA "wms_title" "Irrigation network" "wfs_title" "Irrigation network" "gml_include_items" "all" "gml_featureid" "id" END STATUS ON PROJECTION "init=epsg:2100" END CLASSITEM 'category' CLASS EXPRESSION '1' STYLE COLOR 0 0 255 OPACITY 50 WIDTH 6 END LABEL COLOR 0 0 255 ANGLE FOLLOW OFFSET 5 99 MAXSCALEDENOM 1 TEXT "[irri_code]" END LABEL COLOR 0 0 255 ANGLE FOLLOW OFFSET -8 99 MAXSCALEDENOM 1 EXPRESSION (NOT('[Diameter]' = '')) TEXT "D=[Diameter] mm" END END # [Omitting three more classes] END # [Omitting four more layers] END|

___
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: Not all features show, depending on how I zoom and pan

2022-10-02 Thread Antonis Christofides

  
  
Hello Seth,
Thanks for replying. I experimented and found out there's no
  difference if I use something minimal such as what you suggested.
  What does make a difference is the CRS: if I tell QGIS to use
  EPSG:2100 (Greek grid—the CRS the data files use), then everything
  works fine. If I use 4326 or 3857, then the problem appears.
  Therefore it appears that the problem is with reprojecting (as the
  stackexchange user "nmtoken" had suspected). Leaflet seems to be
  requesting 3857.
What would be the right course of action here? Should I tell
  Leaflet to do the reprojection instead? Should I investigate
  further why mapserver has trouble reprojecting (and how would I do
  that)? Should I reproject my data files (GML) offline and store
  them in 3857 instead of 2100? Is there any common/best practice
  regarding this?
Thanks!
Antonis




On 28/09/2022 17.47, Seth G wrote:

  
  
  
  Hi,
  
  
  
  Is there any change if you update the layer to have a single
class with a simple line (no _expression_, LABEL, MAXSCALEDENOM)?
  
  
  
  E.g.
  
  
  
      CLASS
  
      STYLE
  
      COLOR 0 0 255
  
      WIDTH 6
  
      END
  
  
  
  Seth
  
  
  
  
--

web:https://geographika.net

twitter: @geographika

  
  
  
  On Wed, Sep 28, 2022, at 1:03 PM, Antonis Christofides wrote:
  
  
Hello,

I have a problem that has already been discussed in
  stackexchange
  (https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan),
  but without solution so far.

I'm repeating the full text here, but if there's any problem
  with the images it might be better to go to stackexchange to
  read it.

Here is how QGIS shows an irrigation network, received by
  MapServer via WMS and superimposed on OpenStreetMap:



Here is the same thing, but slightly panned to the right:



Several items are obviously missing. In fact there are items
  missing in the top picture as well. Different items become
  visible as I zoom and pan differently.

Since this pretty much tells the whole story, I'm not going
  into more details. MapServer version is 7.6.2 (prepackaged for
  Debian). The base URL is https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map.
  Finally, below I paste the interesting parts of the mapfile.

Thanks!

Antonis







MAP
NAME "aira-poros"
STATUS ON
SIZE 9040 7731
EXTENT 103986.57 3850796.18 1007945.14 4623933.00
UNITS meters
PROJECTION
"init=epsg:2100"
END
CONFIG MS_ERRORFILE "/var/log/mapserver/extralayers.log"

# [Omitting some OUTPUTFORMAT sections]

WEB
IMAGEPATH "/var/cache/mapserver/"
IMAGEURL "/mapserver_tmp/"
METADATA
"wms_title" "Aira Poros"
"wms_onlineresource" "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"
"wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857"
"wms_enable_request" "*"
"wms_feature_info_mime_type" "text/html"

"wfs_title" "Aira Poros"
"wfs_onlineresource" "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&"
"wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857"
"wfs_enable_request" "*"
END
END

LAYER
NAME "irrigation-network" 
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "irrigation-network.gml"
METADATA
"wms_title" "Irrigation network"
"wfs_title" "Irrigation network"
"gml_include_items" "all"
"gml_featureid" "id"
END
STATUS ON
PROJECTION
"init=epsg:2100"
END
CLASSITEM 'category'
CLASS
_expression_ '1'
STYLE
COLOR 0 0 255
OPACITY 50
WIDTH 6
END
LABEL
COLOR 0 0 255
ANGLE FOLLOW
OFFSET 5 99
MAXSCALEDENOM 1
TEXT "[irri_code]"
END
LABEL
COLOR 0 0 255
ANGLE FOLLOW
OFFSET -8 99
MAXSCALEDENOM 1
_expression_ (NOT('[Diameter]' = ''))
  

Re: [MapServer-users] WMS: Not all features show, depending on how I zoom and pan

2022-09-28 Thread TC Haddad
Hi Antonis,

How are you adding the service from MapServer to OpenLayers?

Can you confirm that you are indeed using WMS and not the WFS configuration
that is also in your map file?

Tanya

On Wed, Sep 28, 2022 at 4:47 AM Antonis Christofides <
anto...@antonischristofides.com> wrote:

> Hello,
>
> I have a problem that has already been discussed in stackexchange (
> https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan),
> but without solution so far.
>
> I'm repeating the full text here, but if there's any problem with the
> images it might be better to go to stackexchange to read it.
>
> Here is how QGIS shows an irrigation network, received by MapServer via
> WMS and superimposed on OpenStreetMap:
>
> [image: enter image description here]
>
> Here is the same thing, but slightly panned to the right:
>
> [image: enter image description here]
>
> Several items are obviously missing. In fact there are items missing in
> the top picture as well. Different items become visible as I zoom and pan
> differently.
>
> Since this pretty much tells the whole story, I'm not going into more
> details. MapServer version is 7.6.2 (prepackaged for Debian). The base URL
> is
> https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map.
> Finally, below I paste the interesting parts of the mapfile.
>
> Thanks!
>
> Antonis
>
>
>
>
> MAP
> NAME "aira-poros"
> STATUS ON
> SIZE 9040 7731
> EXTENT 103986.57 3850796.18 1007945.14 4623933.00
> UNITS meters
> PROJECTION
> "init=epsg:2100"
> END
> CONFIG MS_ERRORFILE "/var/log/mapserver/extralayers.log"
>
> # [Omitting some OUTPUTFORMAT sections]
>
> WEB
> IMAGEPATH "/var/cache/mapserver/"
> IMAGEURL "/mapserver_tmp/"
> METADATA
> "wms_title" "Aira Poros"
> "wms_onlineresource" 
> "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;
>  
> 
> "wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857"
> "wms_enable_request" "*"
> "wms_feature_info_mime_type" "text/html"
>
> "wfs_title" "Aira Poros"
> "wfs_onlineresource" 
> "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;
>  
> 
> "wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857"
> "wfs_enable_request" "*"
> END
> END
>
> LAYER
> NAME "irrigation-network"
> TYPE LINE
> CONNECTIONTYPE OGR
> CONNECTION "irrigation-network.gml"
> METADATA
> "wms_title" "Irrigation network"
> "wfs_title" "Irrigation network"
> "gml_include_items" "all"
> "gml_featureid" "id"
> END
> STATUS ON
> PROJECTION
> "init=epsg:2100"
> END
> CLASSITEM 'category'
> CLASS
> EXPRESSION '1'
> STYLE
> COLOR 0 0 255
> OPACITY 50
> WIDTH 6
> END
> LABEL
> COLOR 0 0 255
> ANGLE FOLLOW
> OFFSET 5 99
> MAXSCALEDENOM 1
> TEXT "[irri_code]"
> END
> LABEL
> COLOR 0 0 255
> ANGLE FOLLOW
> OFFSET -8 99
> MAXSCALEDENOM 1
> EXPRESSION (NOT('[Diameter]' = ''))
> TEXT "D=[Diameter] mm"
> END
> END
>
> # [Omitting three more classes]
> END
>
> # [Omitting four more layers]
> END
>
> ___
> 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: Not all features show, depending on how I zoom and pan

2022-09-28 Thread Seth G
Hi,

Is there any change if you update the layer to have a single class with a 
simple line (no EXPRESSION, LABEL, MAXSCALEDENOM)?

E.g.

CLASS
STYLE
COLOR 0 0 255
WIDTH 6
END

Seth

--
web:https://geographika.net
twitter: @geographika

On Wed, Sep 28, 2022, at 1:03 PM, Antonis Christofides wrote:
> Hello,
> 
> I have a problem that has already been discussed in stackexchange 
> (https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan),
>  but without solution so far.
> 
> I'm repeating the full text here, but if there's any problem with the images 
> it might be better to go to stackexchange to read it.
> 
> Here is how QGIS shows an irrigation network, received by MapServer via WMS 
> and superimposed on OpenStreetMap:
> 
> enter image description here
> 
> Here is the same thing, but slightly panned to the right:
> 
> enter image description here
> 
> Several items are obviously missing. In fact there are items missing in the 
> top picture as well. Different items become visible as I zoom and pan 
> differently.
> 
> Since this pretty much tells the whole story, I'm not going into more 
> details. MapServer version is 7.6.2 (prepackaged for Debian). The base URL is 
> https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map.
>  Finally, below I paste the interesting parts of the mapfile.
> 
> Thanks!
> 
> Antonis
> 
> 
> 
> 
> 
> 
> `MAP
> NAME "aira-poros"
> STATUS ON
> SIZE 9040 7731
> EXTENT 103986.57 3850796.18 1007945.14 4623933.00
> UNITS meters
> PROJECTION
> "init=epsg:2100"
> END
> CONFIG MS_ERRORFILE "/var/log/mapserver/extralayers.log"
> 
> # [Omitting some OUTPUTFORMAT sections]
> 
> WEB
> IMAGEPATH "/var/cache/mapserver/"
> IMAGEURL "/mapserver_tmp/"
> METADATA
> "wms_title" "Aira Poros"
> "wms_onlineresource" 
> "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;
> "wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857"
> "wms_enable_request" "*"
> "wms_feature_info_mime_type" "text/html"
> 
> "wfs_title" "Aira Poros"
> "wfs_onlineresource" 
> "https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&;
> "wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857"
> "wfs_enable_request" "*"
> END
> END
> 
> LAYER
> NAME "irrigation-network" 
> TYPE LINE
> CONNECTIONTYPE OGR
> CONNECTION "irrigation-network.gml"
> METADATA
> "wms_title" "Irrigation network"
> "wfs_title" "Irrigation network"
> "gml_include_items" "all"
> "gml_featureid" "id"
> END
> STATUS ON
> PROJECTION
> "init=epsg:2100"
> END
> CLASSITEM 'category'
> CLASS
> EXPRESSION '1'
> STYLE
> COLOR 0 0 255
> OPACITY 50
> WIDTH 6
> END
> LABEL
> COLOR 0 0 255
> ANGLE FOLLOW
> OFFSET 5 99
> MAXSCALEDENOM 1
> TEXT "[irri_code]"
> END
> LABEL
> COLOR 0 0 255
> ANGLE FOLLOW
> OFFSET -8 99
> MAXSCALEDENOM 1
> EXPRESSION (NOT('[Diameter]' = ''))
> TEXT "D=[Diameter] mm"
> END
> END
> 
> # [Omitting three more classes]
> END
> 
> # [Omitting four more layers]
> END`
> ___
> 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] WMS: Not all features show, depending on how I zoom and pan

2022-09-28 Thread Antonis Christofides

Hello,

I have a problem that has already been discussed in stackexchange 
(https://gis.stackexchange.com/questions/440902/mapserver-wms-not-all-features-show-depending-on-how-i-zoom-and-pan), 
but without solution so far.


I'm repeating the full text here, but if there's any problem with the images it 
might be better to go to stackexchange to read it.


Here is how QGIS shows an irrigation network, received by MapServer via WMS and 
superimposed on OpenStreetMap:


enter image description here

Here is the same thing, but slightly panned to the right:

enter image description here

Several items are obviously missing. In fact there are items missing in the top 
picture as well. Different items become visible as I zoom and pan differently.


Since this pretty much tells the whole story, I'm not going into more details. 
MapServer version is 7.6.2 (prepackaged for Debian). The base URL is 
https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map. 
Finally, below I paste the interesting parts of the mapfile.


Thanks!

Antonis




|MAP NAME "aira-poros" STATUS ON SIZE 9040 7731 EXTENT 103986.57 3850796.18 
1007945.14 4623933.00 UNITS meters PROJECTION "init=epsg:2100" END CONFIG 
MS_ERRORFILE "/var/log/mapserver/extralayers.log" # [Omitting some OUTPUTFORMAT 
sections] WEB IMAGEPATH "/var/cache/mapserver/" IMAGEURL "/mapserver_tmp/" 
METADATA "wms_title" "Aira Poros" "wms_onlineresource" 
"https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&; 
"wms_srs" "EPSG:4326 EPSG:2100 EPSG:3857" "wms_enable_request" "*" 
"wms_feature_info_mime_type" "text/html" "wfs_title" "Aira Poros" 
"wfs_onlineresource" 
"https://poros.irmasys.com/cgi-bin/mapserv?map=/opt/aira-poros/aira-poros/mapserver/extralayers.map&; 
"wfs_srs" "EPSG:2100 EPSG:4326 EPSG:3857" "wfs_enable_request" "*" END END LAYER 
NAME "irrigation-network" TYPE LINE CONNECTIONTYPE OGR CONNECTION 
"irrigation-network.gml" METADATA "wms_title" "Irrigation network" "wfs_title" 
"Irrigation network" "gml_include_items" "all" "gml_featureid" "id" END STATUS 
ON PROJECTION "init=epsg:2100" END CLASSITEM 'category' CLASS EXPRESSION '1' 
STYLE COLOR 0 0 255 OPACITY 50 WIDTH 6 END LABEL COLOR 0 0 255 ANGLE FOLLOW 
OFFSET 5 99 MAXSCALEDENOM 1 TEXT "[irri_code]" END LABEL COLOR 0 0 255 ANGLE 
FOLLOW OFFSET -8 99 MAXSCALEDENOM 1 EXPRESSION (NOT('[Diameter]' = '')) TEXT 
"D=[Diameter] mm" END END # [Omitting three more classes] END # [Omitting four 
more layers] END|
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS field type errors on FES filter

2022-06-02 Thread PE Lord via MapServer-users
Hi there!

It's the same issue from my previous thread 
(https://lists.osgeo.org/pipermail/mapserver-users/2022-May/082641.html)
The difference is that the issue is now with WMS with FILTER query parameters.

I've set the layer metadata with gml_types "auto" and I encounter the same 
issue.

This seem to be an issue with wms/filter field type definition.

Here my log:

msPostGISLayerWhichShapes(): Error (ERROR: operator does not exist: character = 
integer
LINE 4: ...7842 321768.066989752))',3798) and (("dirct_gen_code" = 43))

Ex: In my DB (postgresql), I have tableA withdirct_gen_code.dirct_gen_code is 
declared as a character(2) but the content of rows are numbers... i.e. 43
...?
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
FORMAT=image/png&
TRANSPARENT=true&
LAYERS=tableA&
DPI=96&
MAP_RESOLUTION=96&
FORMAT_OPTIONS=dpi:96&
FILTER=
http://www.opengis.net/ogc;>

dirct_gen_code
43

&
CRS=EPSG:3857&
STYLES=&
WIDTH=1297&
HEIGHT=970&
BBOX=-7907987.59608382%2C5928571.109639037%2C-7901791.419478454%2C5933205.104478827

I don't have any exposed service for test purposes...

Thanks

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


[mapserver-users] WMS Time layer from geojson

2021-02-11 Thread Jesper Kempe
Hi

I am trying to get WMS time to work for a vector layer from GeoJSON-data.
The data has a property start that is a DateTime that I want to filter the
items in the geojson based on TIME in the WMS query.

Ogrinfo shows:
OGRFeature(debug_wmstime):0
  level (String) = high
  start (DateTime) = 2021/02/09 14:00:00+00
  POLYGON ((10.87646484375 61.7627288304727,10.9423828125
60.0758034247597,17.73193359375 60.1633760564878,17.7978515625
61.7835133871372,10.87646484375 61.7627288304727))

But no matter how I configure the mapfile I can´t get it to work.
As soon as I add
 "wms_timeitem" "start"
to Layer METADATA the image goes blank.
And the debug logfile gives no errors.

I can get ogrinfo to filter the data in the geojson with:
ogrinfo -where "start='2021-02-09T14:00:00Z'" debug_wmstime.geojson
debug_wmstime

But not get Mapserver to work with TIME=2021-02-09T14:00:00Z in a
WMS-request.


Attached is the geojson file and a simple mapfile I have used for testing.

A wms query like this is what I am testing:
/debug_wmstime.map?SERVICE=WMS=1.1.1=GetMap=image/png=true=time_debug=EPSG%3A4326=200=464=10,47,18,62=2021-02-09T14:00:00Z

The expected result is to to only see a yellow square at the top of the
image. The other features in the geojson should not be visible with this
TIME.


Does anyone have a clue what I might be doing wrong?
Cause it should be possible to do this right?

Any help is appreciated!
Jesper


debug_wmstime.geojson
Description: Binary data


debug_wmstime.map
Description: Binary data
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS server error. Invalid layer(s) given in the LAYERS parameter. A layer might be disabled for this request

2020-06-05 Thread Karl Suiter
Hi All,

 I have a Mapserver 7.6.0 wms server set up and it's generating images
correctly in most circumstances.

  However, I have a wms mapfile consisting of 252 layer classes defining
all of the country polygons in a Natural Earth world shapefile.

   In some instances, I need to send up to 90 FIPS codes to my mapfile in
order to highlight the requested polygons on a map.  However, given the
large number of lFIPS code and layer classes being parsed by the mapfile,
these mapfile requests are timing out or taking a long time to return an
image.

  In order to increase response time, I sub-divided the main mapfile into
five sub-set mapfiles containing approximately 50 layer classes,
corresponding to a matching number of FIPS codes each.  However, when I
send all 90 FIPS codes for processing to any of the subset mapfiles, I get
the following error

"msWMSLoadGetMapParams():WMS server error. Invalid layer(s) given in the
LAYERS parameter. A layer might be disabled for this request. Check
wms/ows_enable_request settings."

  I believe that this is due to my requesting layer classes not found in
the sub-set mapfile.

  I've reviewed the Map Server 7.6.0 documentation and can't find a
parameter or switch to toggle this type of checking off.  Is there any way
to turn off layer class checking in order to resolve this issue?

  Lastly, when I test the same MapServer URL string using my sub-set
mapfile (sending all 90 FIPS codes using the LAYER parameter) using a web
browser command line, it returns an image consisting of all f the expected
polygons (and no WMS error).

  Thank you for any assistance you can provide to reconcile this issue.

Cheers,

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

Re: [mapserver-users] WMS-T with daterange attribute

2020-04-08 Thread pe_lord
I've forgot a important thing in my question:


Do you know if there is a way for Mapserver to manage a daterange field (or
a
start_date AND end_date) in a wms-t request?

The request only provide a single date, not a range. 
Does Mapserver could generate a SQL like  :
select ... from table where dateRangeField contains userProvidedDate





--
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] WMS-T with daterange attribute

2020-04-08 Thread pe_lord
I have a time enabled dataset containing various attributes, 3 of them are
related to time. The temporal steps between the records are not constant...

The dataset presents roads history. There is many overlap inside this
dataset.

1st attribute = start_date
2nd attribute = end_date
3rd attribute = period_valid [start_date,end_date]

Here what i've tried:

1- Generate a step constant temporal dataset (e.g. create a geometry for
each date I want to publish by wms-t, and join the geometry (and attribute)
where the step intersect the period for each records). Then my dataset pass
from 250K to 11M records..
2- Keep my original dataset and let mapserver manage the temporal
intersection between the user's provided date AND the period (period_valid).

In this ladder situation, mapserver send me this error:


PGRES_FATAL_ERROR (7)
...
Error (ERROR:  operator does not exist: daterange >= timestamp with time
zone

LINE 1: ...92 321002.819068926))',3798) and ("period_valid" between da...

 ^

HINT:  No operator matches the given name and argument type(s). You might
need to add explicit type casts.


Do you know if there is a way for Maserver to manage a daterange field (or a
start_date AND end_date) in a wms-t request?









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

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

2019-10-16 Thread Basques, Bob (CI-StPaul)
Travis,

We went with a slightly more involved route of caching things locally in a 
Postgres database.  You can automate things to a certain extent with a REST 
service for example with some clevering automation scripting for example.  We 
had to figure out things like how to handle when attributes changed, etc, but 
it was doable from a REST service.

bobb



On Oct 16, 2019, at 11:57 AM, Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> wrote:

Think Before You Click: This email originated outside our organization.

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 
mailto:mapserver-users@lists.osgeo.org>>
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<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FGeneric-template-for-WMS-GetFeatureInfo-td4227865.html=02%7C01%7Csteve.lime%40state.mn.us%7Caa1eb890540341ecbbab08d75178d454%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C637067451709877574=Dl5OEEEfUDw9q020aW453wCbHjNt9pOSMYDzQrW5QXo%3D=0>

___
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] 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<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2FGeneric-template-for-WMS-GetFeatureInfo-td4227865.html=02%7C01%7Csteve.lime%40state.mn.us%7Caa1eb890540341ecbbab08d75178d454%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C637067451709877574=Dl5OEEEfUDw9q020aW453wCbHjNt9pOSMYDzQrW5QXo%3D=0>

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

[mapserver-users] wms servers html template output

2019-10-15 Thread Travis Kirstine
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

[mapserver-users] WMS Tiles are not showing correctly

2019-03-30 Thread Slava Zaitsev
Hi,

I am using a WMS layer from Geoserver with Mapserver,
Client: OpenLayers 4.

Some tiles are not continuous, as seen in the images below:

https://imgur.com/z988GVd
https://imgur.com/oAZOuxH

What could be the issue?

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

Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?

2018-07-04 Thread Edward Mac Gillavry
Setting the SIZE parameter at the MAP level solved the error. Since we're 
merely using the OGC interfaces we'd left out the SIZE parameter until now.


The error message "msWMSLoadGetMapParams(): WMS server error. Image size out of 
range, WIDTH and HEIGHT must be between 1 and ..." sent me in the wrong 
direction. Somehow, among the WMS requests GetCapabilities request doesn't 
trigger the error message, although there are no WIDTH or HEIGHT parameters in 
the request either.


Best,


Edward


From: mapserver-users  on behalf of 
Edward Mac Gillavry 
Sent: Monday, July 2, 2018 11:46 PM
To: mapserver-users@lists.osgeo.org; jonathan-li...@lightpear.com
Subject: Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and 
HEIGHT params?


Hi Jonathan,


Thanks for pointing me to the Demo MapServer. That instance works as expected 
without the WIDTH and HEIGHT params. We're seeing the erroneous behaviour on 
both a MapServer 7.0.4 and a MapServer 7.0.7 instance. Don't see anything in 
the release notes / changelogs that would indicate changes to that part of the 
code either...


Tried 
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS=1.3.0=DescribeLayer=country_bounds_version=1.1.0
 as well just to see whether vector or raster makes a difference, but the Demo 
MapServer behaves alright.

>From https://github.com/mapserver/mapserver/issues/1157 I learned that I 
>should be adding the "ows_onlineresource" keyword to the metadata section. 
>Will report back if that resolves the issue...

Cheers,

Edward





From: mapserver-users  on behalf of 
Jonathan Moules 
Sent: Monday, July 2, 2018 10:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and 
HEIGHT params?


Hi Edward,


They don't seem to be required on the Demo MapServer (which is MapServer 
version 7.0.6):

http://demo.mapserver.org/cgi-bin/wms_landsat?request=DescribeLayer=WMS=1.3.0_version=1.1.0=WMS_raster


For SLD 1.1.0, looking at the spec, Table 1 and 2 both list the "Parameters in 
DescribeLayer operation request". The required ones (beyond the standard 
service/request/version) are:
layers, sld_version

There are no others, either mandatory or optional.


The SLD 1.0 spec is less clear about what's going on, but when I changed the 
sld_version=1.0.0, Mapserver excepted telling me only 1.1.0 is supported.


Hope that helps in some way,

Cheers,

Jonathan

On 2018-07-02 16:35, Edward Mac Gillavry wrote:

Dear list,


We're currently investigating an error message we get from the WMS service when 
we execute a DescribeLayer request. It appears MapServer requires WIDTH and 
HEIGHT parameters to be present:


https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705
<https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705>

However, according to the SLD specs, these are NOT required:


http://portal.opengeospatial.org/files/?artifact_id=22364


Am I interpreting the code or SLD spec incorrectly? Or should I go ahead and 
remove these checks and provide a PR?


Many thanks,


Edward




___
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] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?

2018-07-02 Thread Edward Mac Gillavry
Hi Jonathan,


Thanks for pointing me to the Demo MapServer. That instance works as expected 
without the WIDTH and HEIGHT params. We're seeing the erroneous behaviour on 
both a MapServer 7.0.4 and a MapServer 7.0.7 instance. Don't see anything in 
the release notes / changelogs that would indicate changes to that part of the 
code either...


Tried 
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS=1.3.0=DescribeLayer=country_bounds_version=1.1.0
 as well just to see whether vector or raster makes a difference, but the Demo 
MapServer behaves alright.

>From https://github.com/mapserver/mapserver/issues/1157 I learned that I 
>should be adding the "ows_onlineresource" keyword to the metadata section. 
>Will report back if that resolves the issue...

Cheers,

Edward





From: mapserver-users  on behalf of 
Jonathan Moules 
Sent: Monday, July 2, 2018 10:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and 
HEIGHT params?


Hi Edward,


They don't seem to be required on the Demo MapServer (which is MapServer 
version 7.0.6):

http://demo.mapserver.org/cgi-bin/wms_landsat?request=DescribeLayer=WMS=1.3.0_version=1.1.0=WMS_raster


For SLD 1.1.0, looking at the spec, Table 1 and 2 both list the "Parameters in 
DescribeLayer operation request". The required ones (beyond the standard 
service/request/version) are:
layers, sld_version

There are no others, either mandatory or optional.


The SLD 1.0 spec is less clear about what's going on, but when I changed the 
sld_version=1.0.0, Mapserver excepted telling me only 1.1.0 is supported.


Hope that helps in some way,

Cheers,

Jonathan

On 2018-07-02 16:35, Edward Mac Gillavry wrote:

Dear list,


We're currently investigating an error message we get from the WMS service when 
we execute a DescribeLayer request. It appears MapServer requires WIDTH and 
HEIGHT parameters to be present:


https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705
<https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705>

However, according to the SLD specs, these are NOT required:


http://portal.opengeospatial.org/files/?artifact_id=22364


Am I interpreting the code or SLD spec incorrectly? Or should I go ahead and 
remove these checks and provide a PR?


Many thanks,


Edward




___
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] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?

2018-07-02 Thread Jonathan Moules

Hi Edward,


They don't seem to be required on the Demo MapServer (which is MapServer 
version 7.0.6):


http://demo.mapserver.org/cgi-bin/wms_landsat?request=DescribeLayer=WMS=1.3.0_version=1.1.0=WMS_raster


For SLD 1.1.0, looking at the spec, Table 1 and 2 both list the 
"Parameters in DescribeLayer operation request". The required ones 
(beyond the standard service/request/version) are:

layers, sld_version

There are no others, either mandatory or optional.


The SLD 1.0 spec is less clear about what's going on, but when I changed 
the sld_version=1.0.0, Mapserver excepted telling me only 1.1.0 is 
supported.



Hope that helps in some way,

Cheers,

Jonathan


On 2018-07-02 16:35, Edward Mac Gillavry wrote:


Dear list,


We're currently investigating an error message we get from the WMS 
service when we execute a DescribeLayer request. It appears MapServer 
requires WIDTH and HEIGHT parameters to be present:



https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705


However, according to the SLD specs, these are NOT required:


http://portal.opengeospatial.org/files/?artifact_id=22364


Am I interpreting the code or SLD spec incorrectly? Or should I go 
ahead and remove these checks and provide a PR?



Many thanks,


Edward




___
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] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?

2018-07-02 Thread Edward Mac Gillavry
Dear list,


We're currently investigating an error message we get from the WMS service when 
we execute a DescribeLayer request. It appears MapServer requires WIDTH and 
HEIGHT parameters to be present:


https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705


However, according to the SLD specs, these are NOT required:


http://portal.opengeospatial.org/files/?artifact_id=22364


Am I interpreting the code or SLD spec incorrectly? Or should I go ahead and 
remove these checks and provide a PR?


Many thanks,


Edward

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

[mapserver-users] Wms and netcdf

2018-05-17 Thread Jean-Christophe Malapert
Hello,

Il would like to how to create a WMS and WMS-time services from a netcdf
file throw mapserver. I have no Idea how to do / limitations.
Currently, I convert everything in Geotiff but if I could skip this step,
it will be great.

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

[mapserver-users] wms enable_request priority

2017-11-23 Thread Andrea Peri
Hi,

I Know the "wms_request" could be define at WEB level or at LAYER level,

but is not clear if the LAYER level wms_request override the wms_request at
WEB or not.

I do some test using qgis 2.18 and seem that the wms_request at WEB level
will override a wms_request at LAYER level for the GetFeatureInfo
parameter, but seem not do this for the GetMap and GetCapabilities
parameters.

But also it could of course) be a bug of qgis.
So I need before to know what shold be right role between the
wms_request at WEB level and al LAYER level.

Many thx for every info.

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

Re: [mapserver-users] WMS-T in WMS Client

2017-09-21 Thread pe_lord
It is working properly.

Except that I modified the validation part to set a default value for my
parameter.

  VALIDATION
'default_TIME' "1980-01-01/2020-06-01" 
'TIME' '^(TIME=)?.*$'
  END


Now my connection string look like:
CONNECTION "https://ws.mapserver.transports.gouv.qc.ca/swtq?TIME=%TIME%&;

And I set wms_timeextent, wms_timeitem et wms_timeformat into the layer's
metadate section to broadcast wms-t capabilities into my local
getcapabilities.

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

Re: [mapserver-users] WMS-T in WMS Client

2017-09-14 Thread Trond Michelsen
Yes, Mapserver does not pass the dimension parameters to a cascading
wms server. I've handled this by using a mod_perl handler to modify
the request before it reaches mapserver. My function looks something
like this:

sub setup_dimensions {
my $q = shift;
my @dims = grep /^(TIME|LEVEL|ELEVATION)$|^DIM_/i, $q->param;
my $dimensions = join "&" => map { join "=", uc $_, $q->param($_) } @dims;
$q->param(MS_DIMENSIONS => $dimensions);
}

($q is the query object, so this adds a parameter named MS_DIMENSIONS to the 
query string)

Then in the mapfile, I add this parameter to the connection string

  CONNECTION "https://ws.mapserver.transports.gouv.qc.ca/swtq?%MS_DIMENSIONS%&;

And a validation for the layer:

  VALIDATION
'MS_DIMENSIONS'  '^.*$'
  END

A bit dirty, maybe, but it works. Obviously the validation regex would
be better if it actually validated the parameter, so if you only ever
get a time parameter, and it's always in -MM-DD format, you could
change the regex to this:

  VALIDATION
'MS_DIMENSIONS'  
'^TIME=(19[89][0-9]|[2-9][0-9][0-9][0-9])-(0[1-9]|1[0-2])-([0[1-9]|[12][0-9]|3[01])$'
  END


Oh, you could of course do this without the mod_perl module too, and
just pass TIME to the connection string, like this:

However, this will only work if the time parameter is in upper case in
the incoming request, but as the parameter names in WMS are case
insensitive, you have no guarantee that they will be that. If you make
the only client that's supposed to communicate with your wms server,
this might be good enough, though.

-- 
Trond Michelsen


On Wed, Sep 13, 2017 at 09:46:21AM -0700, pe_lord wrote:
> I try to cascade some public wms service in my local (dev). The public wms
> has wms-t capabilities. 
> 
> When I call this public  WMS
> 
>  
> , on layer histo_stations_meteoroutieres. 
> 
> Here an example of  getfeatureinfo
> 
>   
> with a time filter.
> 
> When I use this layer as a wms client layer within mapserv, I'm unable to
> get a filtered result. Here my cascaded wms call.
> 
> call
> 
>   
> 
> Here how I config Mapserver 7.0.4 
> 
> 
> LAYER
>   NAME "cascade_histo_stations_meteoroutieres"
>   TYPE RASTER
>   STATUS ON
>   CONNECTION "https://ws.mapserver.transports.gouv.qc.ca/swtq?;
>   CONNECTIONTYPE WMS
>   PROJECTION
>   "init=epsg:3857"
>   END
>   TEMPLATE 'VOID'
>   
>   METADATA
> "wms_title"  "Cascade sm"
> "wms_name""histo_stations_meteoroutieres"
> "wms_server_version"  "1.1.1"
> "wms_format"  "image/png"
> "wms_timeitem""-MM-DD"
> "wms_timeextent"  "1980-01-01/2020-06-01"
> "wms_timeitem""date_mesu"
> "wms_timeformat"  "-MM-DD"
>   END
> END
> 
> 
> Am I missing something on my mapfile configuration?  Here my log with a
> debug 5 level. There is no param name TIME=...
> 
> [Wed Sep 13 16:41:13 2017].331455 HTTP: Starting to prepare HTTP requests.
> [Wed Sep 13 16:41:13 2017].331871 HTTP request: id=2,
> https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres=GetFeatureInfo=WMS=image/png==912_LAYERS=histo_stations_meteoroutieres=1.1.1=EPSG:3857=732=-9145938.5879864,4467354.72401133,-6541314.70148728,7713336.06546235=TRUE_COUNT=100_FORMAT=text%2Fhtml=372=application/vnd.ogc.se_xml=490
> [Wed Sep 13 16:41:13 2017].331920 HTTP request: id=2,
> https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres=GetLegendGraphic=WMS=image/png=_LAYERS=histo_stations_meteoroutieres=1.1.1=EPSG:3857=TRUE=1.34668e+07=histo_stations_meteoroutieres
> [Wed Sep 13 16:41:13 2017].331941 HTTP: Before download loop
> [Wed Sep 13 16:41:13 2017].668641 msHTTPWriteFct(id=2, 678 bytes)
> [Wed Sep 13 16:41:13 2017].711841 msHTTPWriteFct(id=2, 8094 bytes)
> [Wed Sep 13 16:41:13 2017].715295 msHTTPWriteFct(id=2, 7685 bytes)
> [Wed Sep 13 16:41:13 2017].715377 HTTP: After download loop
> [Wed Sep 13 16:41:13 2017].715398 msHTTPExecuteRequests() timing summary per
> layer (connect_time + time_to_first_packet + download_time = total_time in
> seconds)
> [Wed Sep 13 16:41:13 2017].715414 Layer 2: 0.108 + 0.272 + 0.111 = 0.491s
> [Wed Sep 13 16:41:13 2017].715442 Layer 2: 0.198 + 

[mapserver-users] WMS-T in WMS Client

2017-09-13 Thread pe_lord
I try to cascade some public wms service in my local (dev). The public wms
has wms-t capabilities. 

When I call this public  WMS

 
, on layer histo_stations_meteoroutieres. 

Here an example of  getfeatureinfo

  
with a time filter.

When I use this layer as a wms client layer within mapserv, I'm unable to
get a filtered result. Here my cascaded wms call.

call

  

Here how I config Mapserver 7.0.4 


LAYER
  NAME "cascade_histo_stations_meteoroutieres"
  TYPE RASTER
  STATUS ON
  CONNECTION "https://ws.mapserver.transports.gouv.qc.ca/swtq?;
  CONNECTIONTYPE WMS
PROJECTION
"init=epsg:3857"
END
  TEMPLATE 'VOID'
  
  METADATA
"wms_title"  "Cascade sm"
"wms_name""histo_stations_meteoroutieres"
"wms_server_version"  "1.1.1"
"wms_format"  "image/png"
"wms_timeitem""-MM-DD"
"wms_timeextent"  "1980-01-01/2020-06-01"
"wms_timeitem""date_mesu"
"wms_timeformat"  "-MM-DD"
  END
END


Am I missing something on my mapfile configuration?  Here my log with a
debug 5 level. There is no param name TIME=...

[Wed Sep 13 16:41:13 2017].331455 HTTP: Starting to prepare HTTP requests.
[Wed Sep 13 16:41:13 2017].331871 HTTP request: id=2,
https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres=GetFeatureInfo=WMS=image/png==912_LAYERS=histo_stations_meteoroutieres=1.1.1=EPSG:3857=732=-9145938.5879864,4467354.72401133,-6541314.70148728,7713336.06546235=TRUE_COUNT=100_FORMAT=text%2Fhtml=372=application/vnd.ogc.se_xml=490
[Wed Sep 13 16:41:13 2017].331920 HTTP request: id=2,
https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres=GetLegendGraphic=WMS=image/png=_LAYERS=histo_stations_meteoroutieres=1.1.1=EPSG:3857=TRUE=1.34668e+07=histo_stations_meteoroutieres
[Wed Sep 13 16:41:13 2017].331941 HTTP: Before download loop
[Wed Sep 13 16:41:13 2017].668641 msHTTPWriteFct(id=2, 678 bytes)
[Wed Sep 13 16:41:13 2017].711841 msHTTPWriteFct(id=2, 8094 bytes)
[Wed Sep 13 16:41:13 2017].715295 msHTTPWriteFct(id=2, 7685 bytes)
[Wed Sep 13 16:41:13 2017].715377 HTTP: After download loop
[Wed Sep 13 16:41:13 2017].715398 msHTTPExecuteRequests() timing summary per
layer (connect_time + time_to_first_packet + download_time = total_time in
seconds)
[Wed Sep 13 16:41:13 2017].715414 Layer 2: 0.108 + 0.272 + 0.111 = 0.491s
[Wed Sep 13 16:41:13 2017].715442 Layer 2: 0.198 + 0.139 + 0.198 = 0.534s
[Wed Sep 13 16:41:13 2017].756428 freeLayer(): freeing layer at
0xf4cd4f42b0.











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

Re: [mapserver-users] WMS - Change color map of a DEM dynamically

2017-05-30 Thread Stephen Woodbridge

Here is a good explanation:

https://lists.osgeo.org/pipermail/gdal-dev/2014-May/039091.html

On 5/30/2017 8:09 PM, Stephen Woodbridge wrote:
I don't use QGIS so maybe someone else has some idea how to do what you 
want with that. I think I might try something along these lines:


Create a GDAL VRT file for each theme and add appropriate color tables 
for them. You might need to write a script to generate the color ramps 
as color table entries, but once you have them you should be good.


The VRT files can all reference the same DEM.tif file so you are only 
create VRT file for the color tables.


Then create appropriate layers in the mapfile each referencing one of 
the VRT files. Then the user can select the appropriate WMS layer from 
the mapfile dor the styling they want.


-Steve W

On 5/30/2017 7:56 PM, Eduardo Kanegae wrote:

Hi,

I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 
6Gb DEM tiff(float32) with overviews. Currently I set up a color ramp 
in QGIS based on values/colors of some GRASS color tables such as 
ETOPO2, SRTM and Terrain.
Then in mapfile I used a color ramp (colorrange, datarange, rangeitem) 
coying colors and limit values from QGIS themes.


I'd like to let users to dynamically change the WMS raster output 
using QGIS. Then, it could avoid to duplicating LAYERS declarations 
such as "dem_srtmtheme", "dem_etopo2theme" and so on.

Or this (such as SLD) will be possible only for 8bit rasters and vectors?

thanks in advance.

Here's the dump(gdalinfo) of my raster file:

Driver: GTiff/GeoTIFF
Files: /myfile.tif
/myfile.tif.ovr
Size is 45369, 38050
Coordinate System is:
PROJCS["SIRGAS 2000 / UTM zone 23S",
 GEOGCS["SIRGAS 2000",
 
DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000",

 SPHEROID["GRS 1980",6378137,298.257222101,
 AUTHORITY["EPSG","7019"]],
 TOWGS84[0,0,0,0,0,0,0],
 AUTHORITY["EPSG","6674"]],
 PRIMEM["Greenwich",0,
 AUTHORITY["EPSG","8901"]],
 UNIT["degree",0.0174532925199433,
 AUTHORITY["EPSG","9122"]],
 AUTHORITY["EPSG","4674"]],
 PROJECTION["Transverse_Mercator"],
 PARAMETER["latitude_of_origin",0],
 PARAMETER["central_meridian",-45],
 PARAMETER["scale_factor",0.9996],
 PARAMETER["false_easting",50],
 PARAMETER["false_northing",1000],
 UNIT["metre",1,
 AUTHORITY["EPSG","9001"]],
 AXIS["Easting",EAST],
 AXIS["Northing",NORTH],
 AUTHORITY["EPSG","31983"]]
Origin = (268724.500,7485552.500)
Pixel Size = (1.000,-1.000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S)
Lower Left  (  268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S)
Upper Right (  314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S)
Lower Right (  314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S)
Center  (  291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S)
Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray
   NoData Value=-32768
   Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379


Eduardo Patto Kanegae
http://www.webmapit.com.br | @webmapit


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




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
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 - Change color map of a DEM dynamically

2017-05-30 Thread Stephen Woodbridge
I don't use QGIS so maybe someone else has some idea how to do what you 
want with that. I think I might try something along these lines:


Create a GDAL VRT file for each theme and add appropriate color tables 
for them. You might need to write a script to generate the color ramps 
as color table entries, but once you have them you should be good.


The VRT files can all reference the same DEM.tif file so you are only 
create VRT file for the color tables.


Then create appropriate layers in the mapfile each referencing one of 
the VRT files. Then the user can select the appropriate WMS layer from 
the mapfile dor the styling they want.


-Steve W

On 5/30/2017 7:56 PM, Eduardo Kanegae wrote:

Hi,

I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 6Gb 
DEM tiff(float32) with overviews. Currently I set up a color ramp in 
QGIS based on values/colors of some GRASS color tables such as ETOPO2, 
SRTM and Terrain.
Then in mapfile I used a color ramp (colorrange, datarange, rangeitem) 
coying colors and limit values from QGIS themes.


I'd like to let users to dynamically change the WMS raster output using 
QGIS. Then, it could avoid to duplicating LAYERS declarations such as 
"dem_srtmtheme", "dem_etopo2theme" and so on.

Or this (such as SLD) will be possible only for 8bit rasters and vectors?

thanks in advance.

Here's the dump(gdalinfo) of my raster file:

Driver: GTiff/GeoTIFF
Files: /myfile.tif
/myfile.tif.ovr
Size is 45369, 38050
Coordinate System is:
PROJCS["SIRGAS 2000 / UTM zone 23S",
 GEOGCS["SIRGAS 2000",
 DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000",
 SPHEROID["GRS 1980",6378137,298.257222101,
 AUTHORITY["EPSG","7019"]],
 TOWGS84[0,0,0,0,0,0,0],
 AUTHORITY["EPSG","6674"]],
 PRIMEM["Greenwich",0,
 AUTHORITY["EPSG","8901"]],
 UNIT["degree",0.0174532925199433,
 AUTHORITY["EPSG","9122"]],
 AUTHORITY["EPSG","4674"]],
 PROJECTION["Transverse_Mercator"],
 PARAMETER["latitude_of_origin",0],
 PARAMETER["central_meridian",-45],
 PARAMETER["scale_factor",0.9996],
 PARAMETER["false_easting",50],
 PARAMETER["false_northing",1000],
 UNIT["metre",1,
 AUTHORITY["EPSG","9001"]],
 AXIS["Easting",EAST],
 AXIS["Northing",NORTH],
 AUTHORITY["EPSG","31983"]]
Origin = (268724.500,7485552.500)
Pixel Size = (1.000,-1.000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S)
Lower Left  (  268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S)
Upper Right (  314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S)
Lower Right (  314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S)
Center  (  291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S)
Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray
   NoData Value=-32768
   Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379


Eduardo Patto Kanegae
http://www.webmapit.com.br | @webmapit


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




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

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

[mapserver-users] WMS - Change color map of a DEM dynamically

2017-05-30 Thread Eduardo Kanegae
Hi,

I'm running MapServer 7.0.5 with GDAL 2.2.0 (CentOS x64) and have a 6Gb DEM
tiff(float32) with overviews. Currently I set up a color ramp in QGIS based
on values/colors of some GRASS color tables such as ETOPO2, SRTM and
Terrain.
Then in mapfile I used a color ramp (colorrange, datarange, rangeitem)
coying colors and limit values from QGIS themes.

I'd like to let users to dynamically change the WMS raster output using
QGIS. Then, it could avoid to duplicating LAYERS declarations such as
"dem_srtmtheme", "dem_etopo2theme" and so on.
Or this (such as SLD) will be possible only for 8bit rasters and vectors?

thanks in advance.

Here's the dump(gdalinfo) of my raster file:

Driver: GTiff/GeoTIFF
Files: /myfile.tif
   /myfile.tif.ovr
Size is 45369, 38050
Coordinate System is:
PROJCS["SIRGAS 2000 / UTM zone 23S",
GEOGCS["SIRGAS 2000",
DATUM["Sistema_de_Referencia_Geocentrico_para_las_AmericaS_2000",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6674"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4674"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-45],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",1000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","31983"]]
Origin = (268724.500,7485552.500)
Pixel Size = (1.000,-1.000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  268724.500, 7485552.500) ( 47d15' 6.30"W, 22d43'17.44"S)
Lower Left  (  268724.500, 7447502.500) ( 47d15'26.74"W, 23d 3'53.89"S)
Upper Right (  314093.500, 7485552.500) ( 46d48'36.78"W, 22d43'37.63"S)
Lower Right (  314093.500, 7447502.500) ( 46d48'53.22"W, 23d 4'14.43"S)
Center  (  291409.000, 7466527.500) ( 47d 2' 0.78"W, 22d53'46.41"S)
Band 1 Block=45369x1 Type=Float32, ColorInterp=Gray
  NoData Value=-32768
  Overviews: 22685x19025, 11343x9513, 5672x4757, 2836x2379


Eduardo Patto Kanegae
http://www.webmapit.com.br | @webmapit
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms projection wrong

2017-03-08 Thread Eugenio Trumpy
Hi,


here the link to the screenshot I did:

https://ibb.co/eHqzQa

[https://image.ibb.co/dsxPrF/Screenshot_from_2017_03_08_11_54_59.png]<https://ibb.co/eHqzQa>

Screenshot from 2017 03 08 11 54 59<https://ibb.co/eHqzQa>
ibb.co
Image Screenshot from 2017 03 08 11 54 59 hosted in imgbb.com

Here below the layer definition:


LAYER
  NAME "OSM_basemap"
  TYPE RASTER
  STATUS DEFAULT
  CONNECTION "http://ows.terrestris.de/osm-gray/service;  
#"http://irs.gis-lab.info/?layers=osm&;
  CONNECTIONTYPE WMS
  METADATA
"wms_srs" "EPSG:4326"
"wms_name""OSM-WMS"
"wms_server_version"  "1.0.0"
"wms_format"  "image/png"
  END
END

this give a wrong reprojection for me;


and this is the one loaded as shp file:


LAYER
NAME 'countries'
TYPE POLYGON
DATA 'countries.shp'
METADATA
  'wms_title' 'countries'
  "DESCRIPTION" "Confini nazionali"
   "RESULT_FIELDS" "NAME, AREA_KM2"
   "RESULT_HEADERS" "Nazione, Area in kmq"
END
STATUS DEFAULT
#TRANSPARENCY 100
 OPACITY 100
MINSCALEDENOM 150
TEMPLATE void
#PROJECTION
#'proj=longlat'
#'ellps=WGS84'
#'datum=WGS84'
#'no_defs'
#END
PROJECTION
"init=epsg:4326"
END
CLASS
  NAME 'Limite nazionale'
  STYLE
SYMBOL 0
 OUTLINECOLOR 255 255 130
# COLOR 148 116 176
   END #style
  END #class
END #layer

I think this work fine since the other layer in the mapfile, although in 
different epsg, are well overlapped.


I'm testing the mapfile by using pmapper version4.


Eugenio





Da: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>
Inviato: mercoledì 8 marzo 2017 12.16
A: Eugenio Trumpy; mapserver-users@lists.osgeo.org
Oggetto: Re: wms projection wrong


Hi,



I do not see any screenshot in your message. This mailing list has rather 
strict limits for the size of the message so perhaps it has been dropped. It 
might be better to put your image into some image service and add a link to the 
mail.



You must also add more information. Write at least LAYER definitions and tell 
how did you test the layer and how do you know that the OSM layer is right.



-Jukka Rahkonen-



Eugenio Trumpy wrote:
[mapserver-users] wms projection wrong



Dear all,



I installed mapserver7.0.4 on ubuntu 16.04 for a test.

I used ppa to install php_mapscript module.

Everything seems to be working, however I got an issue

on the map. As you can see on the screenshot attached

the 2 layers boundaries mismatch.

The base map is from OSM is in EPSG:4326 (WMS layer),

european countries is a shp file in the same epsg.

I guess is something related to the WMS layer projection, doesn't it?



This is very strange,

it didn't happen in mapserver 6.4.1 in ubuntu 14.04.

Of course I'm testing the same mapfile.



Any hints on that?



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

Re: [mapserver-users] wms projection wrong

2017-03-08 Thread Rahkonen Jukka (MML)
Hi,

I do not see any screenshot in your message. This mailing list has rather 
strict limits for the size of the message so perhaps it has been dropped. It 
might be better to put your image into some image service and add a link to the 
mail.

You must also add more information. Write at least LAYER definitions and tell 
how did you test the layer and how do you know that the OSM layer is right.

-Jukka Rahkonen-

Eugenio Trumpy wrote:
[mapserver-users] wms projection wrong


Dear all,



I installed mapserver7.0.4 on ubuntu 16.04 for a test.

I used ppa to install php_mapscript module.

Everything seems to be working, however I got an issue

on the map. As you can see on the screenshot attached

the 2 layers boundaries mismatch.

The base map is from OSM is in EPSG:4326 (WMS layer),

european countries is a shp file in the same epsg.

I guess is something related to the WMS layer projection, doesn't it?



This is very strange,

it didn't happen in mapserver 6.4.1 in ubuntu 14.04.

Of course I'm testing the same mapfile.



Any hints on that?



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

[mapserver-users] wms projection wrong

2017-03-08 Thread Eugenio Trumpy
Dear all,


I installed mapserver7.0.4 on ubuntu 16.04 for a test.

I used ppa to install php_mapscript module.

Everything seems to be working, however I got an issue

on the map. As you can see on the screenshot attached

the 2 layers boundaries mismatch.

The base map is from OSM is in EPSG:4326 (WMS layer),

european countries is a shp file in the same epsg.

I guess is something related to the WMS layer projection, doesn't it?


This is very strange,

it didn't happen in mapserver 6.4.1 in ubuntu 14.04.

Of course I'm testing the same mapfile.


Any hints on that?


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

Re: [mapserver-users] WMS service can't see the map in QGIS

2017-02-23 Thread gorank
Solved.

I have put few wms metadata and output formats . It works in QGis 2.16 and
2.18, Gaia3, UDig, 

Thanks to all for help with their suggestions.

Best regards
Goran



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-service-can-t-see-the-map-in-QGIS-tp5308980p5309232.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS service doesn't work

2017-02-22 Thread Rahkonen Jukka (MML)

Hi,


Works for me with OpenJUMP 1.10 and QGIS 2.18.3. I tested only with EPSG:4326 
though, and at 21:40 GMT+2 if you have made some changes since your first 
message.


-Jukka Rahkonen-


Goran Kirandziski wrote:
Re: [mapserver-users] WMS service doesn't work

Thanks Jukka.,

I can't open the map in Arcgis or QGIS as wms service. That is my problem.

best regards



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

Re: [mapserver-users] WMS service can't see the map in QGIS

2017-02-22 Thread Jeff McKenna

Hello,

For debugging MapServer WMS services in QGIS, please see some steps to 
try at: 
https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS


Also, a word of advice for you: when writing messages to mailing lists,
always be sure to not attach anything, like images or files, as mailing 
lists often reject these.  If you need to include an image, always use 
an external service such as http://pasteboard.co/ and include that link 
in your message; if you need to include long text such as source code, 
always use an external service such as http://pastebin.com/ and include 
that link in your message.  (because your initial message included a 
long mapfile, now anyone who tries to respond will go over the mailing 
list size limit, and their messages will be rejected)


Thanks,

-jeff

--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2017-02-22 8:03 AM, gorank wrote:

Dear Stefanos,

this the message that is written in the Debug error file for getcapabilities
in my browser

[Wed Feb 22 12:57:32 2017].461000 CGI Request 1 on process 5572
[Wed Feb 22 12:57:32 2017].477000 mapserv request processing time (msLoadMap
not incl.): 0.016s
[Wed Feb 22 12:57:32 2017].477000 msFreeMap(): freeing map at 02710048.

Record from Apache/logs/access fajl:
[22/Feb/2017:12:57:32 +0100] "GET
/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map=WMS=1.3.0=Getcapabilities
HTTP/1.1" 200 11130

Best regards,
Goran




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

Re: [mapserver-users] WMS service can't see the map in QGIS

2017-02-22 Thread gorank
Dear Stefanos,

this the message that is written in the Debug error file for getcapabilities
in my browser

[Wed Feb 22 12:57:32 2017].461000 CGI Request 1 on process 5572
[Wed Feb 22 12:57:32 2017].477000 mapserv request processing time (msLoadMap
not incl.): 0.016s
[Wed Feb 22 12:57:32 2017].477000 msFreeMap(): freeing map at 02710048.

Record from Apache/logs/access fajl:
[22/Feb/2017:12:57:32 +0100] "GET
/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map=WMS=1.3.0=Getcapabilities
HTTP/1.1" 200 11130

Best regards,
Goran



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-service-can-t-see-the-map-in-QGIS-tp5308980p5309023.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS service doesn't work

2017-02-22 Thread gorank
I have a problem with connection to wms service and don't now what is the
problem. 

The URL is : 

http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map=WMS=1.1.1=Getcapabilities



Maybe the problem is the .map file below

MAP
  CONFIG "MS_ERRORFILE" "C:\ms4w\Apache\cgi-bin\GDZS\Error.txt"
  DEBUG 5
  EXTENT 7446477 4453517 7682148 4763251
  FONTSET"ttf-fonts/fonts.txt"
  IMAGETYPE "png"
  NAME "MapStatDZS"
  SHAPEPATH "data/"
  SIZE 800 600
  UNITS METERS

  OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE RGB
TRANSPARENT FALSE
FORMATOPTION "QUALITY=95"
  END # OUTPUTFORMAT

  PROJECTION
"init=epsg:6316"
  END # PROJECTION
  LEGEND
KEYSIZE 30 17
KEYSPACING 10 10
LABEL
  FONT "arial"
  SIZE 10
  COLOR 0 0 89
  ENCODING "iso-8859-5"
  OFFSET 0 -3
  SHADOWSIZE 5 1
  TYPE TRUETYPE
END # LABEL
STATUS ON
TRANSPARENT FALSE
  END # LEGEND

  QUERYMAP
SIZE -1 -1
STATUS ON
STYLE HILITE
  END # QUERYMAP

  SCALEBAR
INTERVALS 4
LABEL
  SIZE MEDIUM
  OFFSET 0 0
  SHADOWSIZE 1 1
  TYPE BITMAP
END # LABEL
SIZE 200 3
STATUS OFF
UNITS MILES
  END # SCALEBAR

  WEB
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
  "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909"
  "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&;
  "wms_encoding""utf-8"
  "wms_title"   "StatMap"
END # METADATA
#TEMPLATE "C:/ms4w/Apache/cgi-bin/goki/tretTemplejt.html"
  END # WEB

  LAYER
DATA "NASA.shp" 
EXTENT 7446477 4453517 7682148 4763251
LABELITEM "NAZIVOP_MK"
LABELMAXSCALEDENOM 443652
METADATA
  "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909"
  "wms_onlineresource"
"http://makstat.stat.gov.mk:8080/cgi-bin/GDZS/wms?map=/ms4w/apps/GDZS/NASA.map&;
  "wms_enable_request"  "*"
  "wfs_enable_request"  "*"
  "coordsys_name"   "Macedonia State Coordinate System zone 7"
  "wms_title"   "Opstini"
  #"default_godina" "2010"
END # METADATA
NAME "Opstini"
PROJECTION
  "proj=tmerc"
  "lat_0=0"
  "lon_0=21"
  "k=0."
  "x_0=750"
  "y_0=0"
  "ellps=bessel"
  "towgs84=551.7,162.9,467.9,6.04,1.96,-11.38,-4.82"
  "units=m"
  "no_defs"
END # PROJECTION
STATUS ON
TEMPLATE "query"
TILEITEM "location"
TYPE POLYGON
UNITS METERS
  
 
#VALIDATION
#  "godina" "^[12][09][0-9][0-9]$"
  
#END #VALIDATION
CLASS
  NAME "klasa_1"
  EXPRESSION ([2011] > 0 and [2011] < 5)
  LABEL
FONT "maccswiss"
SIZE 8
#ENCODING "iso-8859-5"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
  END # LABEL
  STYLE
COLOR 255 255 128
OUTLINECOLOR 130 130 130
WIDTH 0.5
  END # STYLE
  TITLE "4.9 или помалку"
END # CLASS
CLASS
  NAME "klasa_2"
  EXPRESSION ([2011] >= 5 and [2011] < 10)
  LABEL
FONT "maccswiss"
SIZE 8
#ENCODING "iso-8859-5"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
  END # LABEL
  STYLE
COLOR 250 209 85
OUTLINECOLOR 130 130 130
WIDTH 0.5
  END # STYLE
  TITLE "5.0 - 9.9"
END # CLASS
CLASS
  NAME "klasa_3"
  EXPRESSION ([2011] >=10 and [2011] < 15)
  LABEL
FONT "maccswiss"
SIZE 8
#ENCODING "iso-8859-5"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
  END # LABEL
  STYLE
COLOR 242 167 46
OUTLINECOLOR 130 130 130
WIDTH 0.5
  END # STYLE
  TITLE "10.0 - 14.9"
END # CLASS
CLASS
  NAME "klasa_4"
  EXPRESSION ([2011] >= 15 and [2011] < 20)
  LABEL
FONT "maccswiss"
SIZE 8
#ENCODING "iso-8859-5"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
  END # LABEL
  STYLE
COLOR 173 83 19
OUTLINECOLOR 130 130 130
WIDTH 0.5
  END # STYLE
  TITLE "15.0 - 19.9"
END # CLASS
CLASS
  NAME "klasa_5"
  EXPRESSION ([2011] >= 20 and [2011] < 1)
  LABEL
FONT "maccswiss"
SIZE 8
#ENCODING "iso-8859-5"
OFFSET 0 0
POSITION CC
SHADOWSIZE 1 1
TYPE TRUETYPE
  END # LABEL
  STYLE
COLOR 107 0 0
OUTLINECOLOR 130 130 130
WIDTH 0.5
  END # STYLE
  TITLE "20 и повеќе"
END # CLASS

  END # LAYER

  LAYER
DATA "REGIONI2007_NASA.shp"
EXTENT 7446477 4453517 7682148 4763251
METADATA
  "wms_srs" "EPSG:6316 EPSG:4326 EPSG:3909"
  "wms_onlineresource"

Re: [mapserver-users] WMS T time series data support

2017-01-11 Thread Rahkonen Jukka (MML)
Hi,

Forward step by step. Remove everything that is time-related, read 
http://www.mapserver.org/optimization/tileindex.html and make your tileindex 
layer to work and show all your images. Once that works for you, continue to 
time series stuff.

BTW I have never seen this before “CLASS  #class to show the image in red”. 
What makes you think that it works? Is it documented somewhere?

-Jukka Rahkonen-

Sushrut Shivaswamy wrote:
Re: [mapserver-users] WMS T time series data support

Hey,

I created a WMS-T layer from a time series image mosaic as follows.


  *   Ran gdaltindex on the tiff files to generate the index shapefle called 
index.shp.
  *   I edited the index.shp file in QGIS and added another column called 
"timeWater" and added the time value in -MM-DD format next to each location 
entry.
  *   I added this layer to the mapfie as follows.
LAYER
NAME "Inundation"
  TYPE RASTER
  STATUS ON
  DEBUG ON
  PROJECTION
"init=epsg:4326"
  END
  METADATA
"wms_title" "INUN_WMS_T"
"wms_srs"   "EPSG:4326"
"wms_extent" "67.6 7.34 97.7 38.74"
"wms_timeextent" "2015-12-01/2015-12-03"
"wms_timeitem" "timeWater" #timeWater is a column in the index shapefile 
specifying time value for each tiff image
"wms_timedefault" "2015-12-03"
"wms_timeformat" "-MM-DD"
  END
  #TILEITEM "location" #filepath is a column in postgis table with varchar of 
the filepath to each image
  TILEINDEX "index"  #index is the name of the shape file generated with 
gdaltindex
  FILTER (`[timeWater]` = `2015-12-03`)
CLASS  #class to show the image in red
  STYLE
COLOR 236 0 0
  END # STYLE
END # CLASS
END

The TILEINDEX property is set to "index" which is the name of the index 
shapefile haveing the path and time in its columns.
The paths to the TIFF files are in the "location" column.
The time field is in the column "timeWater".

The GetCapabilities request now shows my layer with a  
field in it so I assume it has been published properly as a layer.
Despite this when I make a GetMap request to this layer I get a blank image in 
png format and a black image in jpeg format.

Is the TILEINDEX property in the map file the name of the shape file or the 
name of a PostGIS table?

Any idea on what could be wrong?

Note: The paths mentioned in the index shapefile are correct and relative to 
the map file.
  The index shapefile has also been placed in the same directory as the 
.map file.

Regards,
Sushrut Shivaswamy

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

Re: [mapserver-users] WMS T time series data support

2017-01-11 Thread Sushrut Shivaswamy
Hey,

Thanks for all the responses. They were a great help.
A it turns out my dataset was in EPSG:32644 projection.

I ran gdaltindex again as:

gdaltindex -t_srs "EPSG:4326" *-src_srs_name* "tile_srs" index.shp
*.tiff

to create an index with the projection of each tiff in the tile_srs column.
I then added the time stamp in each row and added the layer to the map file
with the TILESRS option set to the attribute name "tile_srs".

The GetMap request for the following procedure gave the error "All points
failed to reproject".


To avoid this I reprojected all my layers to "EPSG:4326" and added to the
map file without the TILESRS option.
To test whether the layer is time enabled I sent a GetMap request with the
time parameter outside the "wms_timeextent"
and I got an error saying that the requested time is out of bounds.

The images produced by the GetMap request are all still blank.

Can anyone point out where I could have gone wrong in this process.

Regards,
Sushrut Shivaswamy

On Wed, Jan 11, 2017 at 9:15 PM, Schepers, Benjamin 
wrote:

> Hey,
>
>
>
> h, debugging can be an awful thing…..
>
>
>
> Always have a look at the logs (error, etc.).
>
>
>
> I’d suppose, that mapserver can’t find the tiles.
>
> A valid DIMENSION-Element in GetCapabilities could look like this:
>
>  nearestValue="0">2009/2016/P1Yß in this case the dataset
> supports time from 2009-2016 in one-year-steps]
>
>
>
>
>
> Are you really sure about the right relations on paths? See:
>
> http://mapserver.org/optimization/tileindex.html#tileindex
>
>
>
> I can’t see any “SHAPEPATH” (directory of index), which is referenced in
> MAP-section, see:
>
> http://mapserver.org/mapfile/map.html [from mapserver-docs: … Normally
> the location should contain the path to the tile file relative to the
> shapepath, not relative to the tileindex itself. … ]
>
>
>
>
>
> What also works for me is using absolute paths:
>
> Please try the the absolute path to tileindex, e.g.:
>
> TILEINDEX "/data/subfolder/index"
>
>
>
> My index-file also contains absolute paths to tiff-files
>
>
>
>
>
>  the name of a PostGIS table?*
>
> Both (and still more) ways are possible, for example SpatiaLite-Layer
> (OGR-Connection), other layers from same mapfile…
>
>
>
> Hope, it helps
>
>
>
> Ben
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS T time series data support

2017-01-11 Thread Schepers, Benjamin
Hey,

h, debugging can be an awful thing…..

Always have a look at the logs (error, etc.).

I’d suppose, that mapserver can’t find the tiles.
A valid DIMENSION-Element in GetCapabilities could look like this:
2009/2016/P1Y<-- in this case the dataset 
supports time from 2009-2016 in one-year-steps]


Are you really sure about the right relations on paths? See:
http://mapserver.org/optimization/tileindex.html#tileindex

I can’t see any “SHAPEPATH” (directory of index), which is referenced in 
MAP-section, see:
http://mapserver.org/mapfile/map.html [from mapserver-docs: … Normally the 
location should contain the path to the tile file relative to the shapepath, 
not relative to the tileindex itself. … ]


What also works for me is using absolute paths:
Please try the the absolute path to tileindex, e.g.:
TILEINDEX "/data/subfolder/index"

My index-file also contains absolute paths to tiff-files


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

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-11 Thread Leehan
problem solved.
Indeed, at least wms_onlineressource was not correct : the file mentionned
was not existing any more or  the path was wrong.
Thanks a lot



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807p5302954.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS T time series data support

2017-01-11 Thread Sushrut Shivaswamy
Hey,

I created a WMS-T layer from a time series image mosaic as follows.


   - Ran gdaltindex on the tiff files to generate the index shapefle called
   index.shp.
   - I edited the index.shp file in QGIS and added another column called
   "timeWater" and added the time value in -MM-DD format next to each
   location entry.
   - I added this layer to the mapfie as follows.


























*LAYERNAME "Inundation"  TYPE RASTER  STATUS ON  DEBUG ON  PROJECTION
"init=epsg:4326"  END  METADATA"wms_title" "INUN_WMS_T""wms_srs"
"EPSG:4326""wms_extent" "67.6 7.34 97.7 38.74""wms_timeextent"
"2015-12-01/2015-12-03""wms_timeitem" "timeWater" #timeWater is a
column in the index shapefile specifying time value for each tiff image
"wms_timedefault" "2015-12-03""wms_timeformat" "-MM-DD"  END
#TILEITEM "location" #filepath is a column in postgis table with varchar of
the filepath to each image  TILEINDEX "index"  #index is the name of the
shape file generated with gdaltindex  FILTER (`[timeWater]` =
`2015-12-03`)CLASS  #class to show the image in red  STYLECOLOR
236 0 0  END # STYLEEND # CLASSEND*

The TILEINDEX property is set to "index" which is the name of the index
shapefile haveing the path and time in its columns.
The paths to the TIFF files are in the "location" column.
The time field is in the column "timeWater".

The *GetCapabilities* request now shows my layer with a
** field in it so I assume it has been published
properly as a layer.
Despite this when I make a GetMap request to this layer I get a blank image
in png format and a black image in jpeg format.

I*s the TILEINDEX property in the map file the name of the shape file or
the name of a PostGIS table?*

Any idea on what could be wrong?

Note: The paths mentioned in the index shapefile are correct and relative
to the map file.
  The index shapefile has also been placed in the same directory as
the .map file.

Regards,
Sushrut Shivaswamy

On Tue, Jan 10, 2017 at 7:15 PM, Schepers, Benjamin <schep...@rvr-online.de>
wrote:

> Hi Sushrut,
>
>
>
> yes this should be possible.
>
>
>
> Here are general information:
>
> http://mapserver.org/ogc/wms_time.html
>
>
>
> Build index with time-information for your needs (also works for wms):
>
> http://mapserver.org/ogc/wcs_server.html#building-spatio-
> temporal-tile-indexes
>
>
>
> è This is a index-shapefile including a BBOX of every tif-file, the
> tif-path within the filesystem and another column with the date of the
> specific file. The date-field needs to be created/filled manually…
>
>
>
> I just thought of writing a python script (extending “gdaltindex”
> commandline-utility), which reads the date from tif-metadata
> ('TIFFTAG_DATETIME' ) and writes it to the index-shape.
>
>
>
>
>
> Regards
>
> Ben
>
>
>
> Mit freundlichen Grüßen
> Im Auftrag
>
>
>
> *Benjamin Schepers *
> Luftbild und Geoinformationssysteme
> Kronprinzenstraße 6
> 45128 Essen
> Fon: +49 201 2069-232
> Fax: +49 201 2069-369
> schep...@rvr-online.de
>
>
>
>
> *Die Regionaldirektorin *Kronprinzenstraße 35
> 45128 Essen
> Zentrale: +49 (0) 201 2069-0
> Fax: +49 (0) 201 2069-500
> www.metropoleruhr.de
>
> Postfach 10 32 64
> 45032 Essen
>
> Steuernummer: RVR 112/5797/0116
> USt.-ldNr.: DE 173867500
>
> Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte
> Informationen enthalten.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich
> erhalten haben, informieren Sie bitte sofort den Absender und vernichten
> Sie diese Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind
> nicht gestattet.
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail.
> Any unauthorised copying, disclosure or distribution of the material in
> this e-mail is strictly forbidden.
>
> *Von:* mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] *Im
> Auftrag von *Sushrut Shivaswamy
> *Gesendet:* Dienstag, 10. Januar 2017 14:34
> *An:* mapserver-users@lists.osgeo.org
> *Betreff:* [mapserver-users] WMS T time series data support
>
>
>
> Hey,
>
>
>
> I'm trying to visualise my time series data set using map server.
>
> I have a series of files with file names in the format
> * {coveragename}_{timestamp}.tif*.
>
>
> I need to query a single layer composed of the data from all these files
> and
> see the data by varying the TIME parameter in my GetMap request.
>
> GeoServer provides a tutorial on how to setup an Image Mosaic as time
> series layer.
>
> Is there way to get the same effect in MapServer.
>
> Regards,
> Sushrut Shivaswamy
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-11 Thread Rahkonen Jukka (MML)
Hi,

Your screen capture of the error message is rather useless because I can't read 
the texts. Instead of image, copy or rewrite the texts. The easier you make it 
the better possibilities that somebody tries to help you.

-Jukka Rahkonen-


-Alkuperäinen viesti-
Leehan wrote:
Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

The mapfile is on a computer with windows server and ms4w.
There is no problem to display the layer with Qgis on the server.
Problem happens from distant computer, there I get 
<http://osgeo-org.1560.x6.nabble.com/file/n5302916/Capture.png>
weird...

I will try jeff and Junka solutions as well.
Thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807p5302916.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-11 Thread Leehan
The mapfile is on a computer with windows server and ms4w.
There is no problem to display the layer with Qgis on the server.
Problem happens from distant computer, there I get 
 
weird...

I will try jeff and Junka solutions as well.
Thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807p5302916.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Leehan
jratike80 wrote
> Hi,
> 
> Have a look at the access.log and check what request QGIS has sent. And
> even 10.210.1.32 does not seem to be open to internet it is not a good
> habit to reveal your passwords in mailing lists. I suggest to change that
> password everywhere you are using it.
> 
> Another thing to check is if the "wms_onlineresource" is correct for just
> this mapfile. QGIS is using the advertised URL for GetMaps if you do not
> select "Ignore GetMap/GetTile URI reported in capabilities". Is this your
> current mapfile or the one that you copied?
> 
> http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map
> 
> -Jukka Rahkonen-

When it failed with my complete mapfile, I just created and tested the
mapfile I have pasted here. So this one is not my current mapfile. And in
both cases, the error is the same :P
In my complete mapfile, all works fine (layers from postgis and request
enabled) but this layer doesn't.

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





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807p5302824.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Jeff McKenna

On 2017-01-10 11:25 AM, Leehan wrote:


I have a correct image in Firefox. But in QGIS I can't get anything, it says


For issues with QGIS and WMS layers, the first thing I do is get the 
exact request used by QGIS, and then examine that request (you can see a 
similar response by me on this in the archives, with specific steps to 
debug with QGIS: 
https://lists.osgeo.org/pipermail/mapserver-users/2016-September/079316.html).


-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







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

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Rahkonen Jukka (MML)
Hi,

Have a look at the access.log and check what request QGIS has sent. And even 
10.210.1.32 does not seem to be open to internet it is not a good habit to 
reveal your passwords in mailing lists. I suggest to change that password 
everywhere you are using it.

Another thing to check is if the "wms_onlineresource" is correct for just this 
mapfile. QGIS is using the advertised URL for GetMaps if you do not select 
"Ignore GetMap/GetTile URI reported in capabilities". Is this your current 
mapfile or the one that you copied?

http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map

-Jukka Rahkonen-


Leehan wrote:
[mapserver-users] wms/ows_enabe request and invalid layer and Qgis

Hi,

Here's my map file :

MAP
NAME "Mapserver"
FONTSET "./fonts/fonts.txt"
OUTPUTFORMAT
NAME "png"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
END #fin format

EXTENT 679286.0 6153539.5 679580.0 6153724.6 #xmin ymin xmax ymax
UNITS METERS
DEBUG 5
CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "ON"
CONFIG MS_ERRORFILE "C:/ms4w/errorMapFile.txt"

PROJECTION # proj de sortie
"init=epsg:2154"
END

WEB 
METADATA
"wms_title" "WMS, aide au montage des opérations"
"wms_onlineresource"
"

http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map;
"wms_enable_request" "*" #active les getcapabilities, 
getmap, getfeatureinfo, getfeature
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"
END #fin metadata
END #end web

LAYER
NAME "prescriptions"
#STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:2154"
END #fin projection
CONNECTIONTYPE POSTGIS
CONNECTION "host=10.210.1.32 dbname=activite user=PostGIS
password=CAVIAR2016 port=5432"
DATA "geom from (select gid, geom, numope, numprescr, annee, nomope, 
ro, typope from activite.prescription) as foo using unique gid SRID=2154"
PROCESSING "CLOSE_CONNECTION=DEFER"
MAXSCALEDENOM 8
LABELITEM "numprescr"
CLASS
NAME "prescriptions"
STYLE
COLOR 200 125 0
OPACITY 50
OUTLINECOLOR 200 125 0
WIDTH 1
LINECAP round
END #end Style
LABEL
FONT "verdana"
SIZE 4
COLOR 0 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION auto #uc
MAXSCALEDENOM 8
TYPE truetype
END #fin label
TEMPLATE "bidon.html"   
END #fin class
METADATA
"gml_include_items" "all"
"wms_title" "prescriptions"
#"wms_srs" "EPSG:2154"
END #fin metadata prescriptions
END #fin layer prescriptions

END

I have a correct image in Firefox. But in QGIS I can't get anything, it says
: 


msWMSLoadGetMapParams(): WMS server error. Invalid 
layer(s) given in the LAYERS parameter. A layer might be disabled for this 
request. Check wms/ows_enable_request settings.

Layer name is right. 
Besides this layer is just a copy of another one working perfectly, with the 
request available ! So I can't figure out the reason why I can't display this 
layer.
Any idea ?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Leehan
Hi,

Here's my map file :

MAP
NAME "Mapserver"
FONTSET "./fonts/fonts.txt"
OUTPUTFORMAT
NAME "png"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
END #fin format

EXTENT 679286.0 6153539.5 679580.0 6153724.6 #xmin ymin xmax ymax
UNITS METERS
DEBUG 5
CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "ON"
CONFIG MS_ERRORFILE "C:/ms4w/errorMapFile.txt"

PROJECTION # proj de sortie
"init=epsg:2154"
END

WEB 
METADATA
"wms_title" "WMS, aide au montage des opérations"
"wms_onlineresource"
"http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map;
"wms_enable_request" "*" #active les getcapabilities, 
getmap,
getfeatureinfo, getfeature
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"
END #fin metadata
END #end web

LAYER
NAME "prescriptions"
#STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:2154"
END #fin projection
CONNECTIONTYPE POSTGIS
CONNECTION "host=10.210.1.32 dbname=activite user=PostGIS
password=CAVIAR2016 port=5432"
DATA "geom from (select gid, geom, numope, numprescr, annee, nomope, ro,
typope from activite.prescription) as foo using unique gid SRID=2154"
PROCESSING "CLOSE_CONNECTION=DEFER"
MAXSCALEDENOM 8
LABELITEM "numprescr"
CLASS
NAME "prescriptions"
STYLE
COLOR 200 125 0
OPACITY 50
OUTLINECOLOR 200 125 0
WIDTH 1
LINECAP round
END #end Style
LABEL
FONT "verdana"
SIZE 4
COLOR 0 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION auto #uc
MAXSCALEDENOM 8
TYPE truetype
END #fin label
TEMPLATE "bidon.html"   
END #fin class
METADATA
"gml_include_items" "all"
"wms_title" "prescriptions"
#"wms_srs" "EPSG:2154"
END #fin metadata prescriptions
END #fin layer prescriptions

END

I have a correct image in Firefox. But in QGIS I can't get anything, it says
: 


msWMSLoadGetMapParams(): WMS server error. Invalid 
layer(s) given in the
LAYERS parameter. A layer might be disabled for this request. Check
wms/ows_enable_request settings.

Layer name is right. 
Besides this layer is just a copy of another one working perfectly, with the
request available ! So I can't figure out the reason why I can't display
this layer.
Any idea ?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS T time series data support

2017-01-10 Thread Schepers, Benjamin
Hi Sushrut,

yes this should be possible.

Here are general information:
http://mapserver.org/ogc/wms_time.html

Build index with time-information for your needs (also works for wms):
http://mapserver.org/ogc/wcs_server.html#building-spatio-temporal-tile-indexes


è This is a index-shapefile including a BBOX of every tif-file, the tif-path 
within the filesystem and another column with the date of the specific file. 
The date-field needs to be created/filled manually…

I just thought of writing a python script (extending “gdaltindex” 
commandline-utility), which reads the date from tif-metadata 
('TIFFTAG_DATETIME' ) and writes it to the index-shape.


Regards
Ben

Mit freundlichen Grüßen
Im Auftrag

Benjamin Schepers


Luftbild und Geoinformationssysteme
Kronprinzenstraße 6
45128 Essen
Fon: +49 201 2069-232
Fax: +49 201 2069-369
schep...@rvr-online.de

[cid:image001.jpg@01D26B4F.354A0EC0]

Die Regionaldirektorin
Kronprinzenstraße 35
45128 Essen
Zentrale: +49 (0) 201 2069-0
Fax: +49 (0) 201 2069-500
www.metropoleruhr.de

Postfach 10 32 64
45032 Essen

Steuernummer: RVR 112/5797/0116
USt.-ldNr.: DE 173867500

Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht 
gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von Sushrut Shivaswamy
Gesendet: Dienstag, 10. Januar 2017 14:34
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] WMS T time series data support

Hey,

I'm trying to visualise my time series data set using map server.
I have a series of files with file names in the format 
{coveragename}_{timestamp}.tif.

I need to query a single layer composed of the data from all these files and
see the data by varying the TIME parameter in my GetMap request.

GeoServer provides a tutorial on how to setup an Image Mosaic as time series 
layer.

Is there way to get the same effect in MapServer.

Regards,
Sushrut Shivaswamy
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS T time series data support

2017-01-10 Thread Sushrut Shivaswamy
Hey,

I'm trying to visualise my time series data set using map server.
I have a series of files with file names in the format
* {coveragename}_{timestamp}.tif*.

I need to query a single layer composed of the data from all these files and
see the data by varying the TIME parameter in my GetMap request.

GeoServer provides a tutorial on how to setup an Image Mosaic as time
series layer.

Is there way to get the same effect in MapServer.

Regards,
Sushrut Shivaswamy
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Jeff McKenna

On 2016-09-25 1:21 PM, aborruso wrote:



Jeff you are right, and once again I'm very sorry.

I have written 2 emails because in the first minutes I think was
thinking that it was a geomoose thing. Than I understand that that was
only related to the map file.


Thank you for this email, thank you to be strict, and thank you to take
care of these communities



No problem, and thanks for using both GeoMOOSE and MapServer in your work :)

-jeff





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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread aborruso
On 25 September 2016 at 18:15, jmckenna [via OSGeo.org] <
ml-node+s1560n5287649...@n6.nabble.com> wrote:

> Note that this discussion happened on 2 mailing lists at the same time,
> involving different people, duplicating people's efforts.  Please do not
> cross-post, it's a good rule to follow, especially when you/we are
> asking for free time from people.  Sorry for being so strict :)  Now
> back to cutting my lawn ha.  But thanks for sharing this, keep the
> discussions flowing!
>

Jeff you are right, and once again I'm very sorry.

I have written 2 emails because in the first minutes I think was thinking
that it was a geomoose thing. Than I understand that that was only related
to the map file.


Thank you for this email, thank you to be strict, and thank you to take
care of these communities

___

Andrea Borruso
website: http://blog.spaziogis.it
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287650.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Jeff McKenna

On 2016-09-25 11:08 AM, aborruso wrote:

SOLVED

It was only a stupid error of mine: I had inside a class object an empty
"TITLE" item that  broke the WMS legend rendering.

Thank you for all, I'm very sorry




Note that this discussion happened on 2 mailing lists at the same time, 
involving different people, duplicating people's efforts.  Please do not 
cross-post, it's a good rule to follow, especially when you/we are 
asking for free time from people.  Sorry for being so strict :)  Now 
back to cutting my lawn ha.  But thanks for sharing this, keep the 
discussions flowing!


-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread aborruso
SOLVED

It was only a stupid error of mine: I had inside a class object an empty
"TITLE" item that  broke the WMS legend rendering.

Thank you for all, I'm very sorry



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287642.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Andrea Peri
And this is the Legend Object definition:

  LEGEND
IMAGECOLOR 255 255 255
STATUS OFF
KEYSIZE 15 20
KEYSPACING 3 3
POSTLABELCACHE true
# label object
LABEL
  TYPE TRUETYPE
  FONT "LiberationSans-Regular"
  SIZE 7
  POSITION ul
  OFFSET 0 0
  MAXLENGTH 20
  WRAP ' '
  COLOR 0 0 0
END
  END

A.


2016-09-25 14:34 GMT+02:00 Andrea Peri :
> This is the fragment from mapfile to reproduce the legend of our anpil.
>
> ...
> CLASSGROUP "default"
> CLASSITEM "AREA"
> LABELCACHE on
> CLASS
>   NAME 'area superiore a 10ha'
>   GROUP 'default'
>   EXPRESSION ( ([AREA] < 20) AND ([AREA] > 1000) )
>   MAXSCALEDENOM 5000100
>   MINSCALEDENOM 1500100
>   STYLE
>  SYMBOL 'downwarddiagonalfill'
>  WIDTH 0.5
>  SIZE 4
>  COLOR "#1BE37FFF"
>  OUTLINECOLOR "#1BE37FFF"
>  ANTIALIAS false
>   END
>   STYLE
>  WIDTH 0.5
>  OUTLINECOLOR "#1BE37FFF"
>  ANTIALIAS false
>   END
> END
> CLASS
>   NAME 'area inferiore a 10ha'
>   GROUP 'default'
>   EXPRESSION ([AREA] < 1000)
>   MAXSCALEDENOM 5000100
>   MINSCALEDENOM 1500100
>   STYLE
>  GEOMTRANSFORM 'centroid'
>  SYMBOL 'circlefill'
>  SIZE 4
>  COLOR "#1BE37FFF"
>  OUTLINECOLOR "#1BE37FFF"
>  ANTIALIAS false
>   END
> END
> CLASS
>   NAME 'anpil'
>   GROUP 'default'
>   MAXSCALEDENOM 1500100
>   MINSCALEDENOM 1
>   STYLE
>  SYMBOL 'downwarddiagonalfill'
>  WIDTH 0.5
>  SIZE 4
>  COLOR "#1BE37FFF"
>  OUTLINECOLOR "#1BE37FFF"
>  ANTIALIAS false
>   END
>   STYLE
>  WIDTH 0.5
>  OUTLINECOLOR "#1BE37FFF"
>  ANTIALIAS false
>   END
>   
>   END
>
> Regards,
> A.
>
>
> 2016-09-25 14:30 GMT+02:00 Andrea Peri :
>> I forget the scale parameter:
>>
>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly=200
>>
>>
>> 2016-09-25 14:29 GMT+02:00 Andrea Peri :
>>> Hi Andrea,
>>>
>>> I try it on one of our wms services:
>>>
>>> It return correctly the class list with labels.
>>>
>>> This is the call.
>>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly
>>>
>>>
>>> Now I try to extract the mapfile fragment.
>>>
>>>
>>> 2016-09-25 13:32 GMT+02:00 aborruso :
 Ciao Andrea,


 Andrea Peri wrote
> I will try to add a group element to every class . With the same group
> value.

 I have added it to every class (I have added also CLASSGROUP to the layer)
 but it's the same: no labels.

 Thank you




 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287627.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>>
>>> --
>>> -
>>> Andrea Peri
>>> . . . . . . . . .
>>> qwerty àèìòù
>>> -
>>
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Andrea Peri
This is the fragment from mapfile to reproduce the legend of our anpil.

...
CLASSGROUP "default"
CLASSITEM "AREA"
LABELCACHE on
CLASS
  NAME 'area superiore a 10ha'
  GROUP 'default'
  EXPRESSION ( ([AREA] < 20) AND ([AREA] > 1000) )
  MAXSCALEDENOM 5000100
  MINSCALEDENOM 1500100
  STYLE
 SYMBOL 'downwarddiagonalfill'
 WIDTH 0.5
 SIZE 4
 COLOR "#1BE37FFF"
 OUTLINECOLOR "#1BE37FFF"
 ANTIALIAS false
  END
  STYLE
 WIDTH 0.5
 OUTLINECOLOR "#1BE37FFF"
 ANTIALIAS false
  END
END
CLASS
  NAME 'area inferiore a 10ha'
  GROUP 'default'
  EXPRESSION ([AREA] < 1000)
  MAXSCALEDENOM 5000100
  MINSCALEDENOM 1500100
  STYLE
 GEOMTRANSFORM 'centroid'
 SYMBOL 'circlefill'
 SIZE 4
 COLOR "#1BE37FFF"
 OUTLINECOLOR "#1BE37FFF"
 ANTIALIAS false
  END
END
CLASS
  NAME 'anpil'
  GROUP 'default'
  MAXSCALEDENOM 1500100
  MINSCALEDENOM 1
  STYLE
 SYMBOL 'downwarddiagonalfill'
 WIDTH 0.5
 SIZE 4
 COLOR "#1BE37FFF"
 OUTLINECOLOR "#1BE37FFF"
 ANTIALIAS false
  END
  STYLE
 WIDTH 0.5
 OUTLINECOLOR "#1BE37FFF"
 ANTIALIAS false
  END
  
  END

Regards,
A.


2016-09-25 14:30 GMT+02:00 Andrea Peri :
> I forget the scale parameter:
>
> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly=200
>
>
> 2016-09-25 14:29 GMT+02:00 Andrea Peri :
>> Hi Andrea,
>>
>> I try it on one of our wms services:
>>
>> It return correctly the class list with labels.
>>
>> This is the call.
>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly
>>
>>
>> Now I try to extract the mapfile fragment.
>>
>>
>> 2016-09-25 13:32 GMT+02:00 aborruso :
>>> Ciao Andrea,
>>>
>>>
>>> Andrea Peri wrote
 I will try to add a group element to every class . With the same group
 value.
>>>
>>> I have added it to every class (I have added also CLASSGROUP to the layer)
>>> but it's the same: no labels.
>>>
>>> Thank you
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287627.html
>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>> ___
>>> mapserver-users mailing list
>>> mapserver-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Andrea Peri
I forget the scale parameter:

http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly=200


2016-09-25 14:29 GMT+02:00 Andrea Peri :
> Hi Andrea,
>
> I try it on one of our wms services:
>
> It return correctly the class list with labels.
>
> This is the call.
> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly
>
>
> Now I try to extract the mapfile fragment.
>
>
> 2016-09-25 13:32 GMT+02:00 aborruso :
>> Ciao Andrea,
>>
>>
>> Andrea Peri wrote
>>> I will try to add a group element to every class . With the same group
>>> value.
>>
>> I have added it to every class (I have added also CLASSGROUP to the layer)
>> but it's the same: no labels.
>>
>> Thank you
>>
>>
>>
>>
>> --
>> View this message in context: 
>> http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287627.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Andrea Peri
Hi Andrea,

I try it on one of our wms services:

It return correctly the class list with labels.

This is the call.
http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=image/png=default=rt_arprot.idanpil.rt.poly


Now I try to extract the mapfile fragment.


2016-09-25 13:32 GMT+02:00 aborruso :
> Ciao Andrea,
>
>
> Andrea Peri wrote
>> I will try to add a group element to every class . With the same group
>> value.
>
> I have added it to every class (I have added also CLASSGROUP to the layer)
> but it's the same: no labels.
>
> Thank you
>
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287627.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread aborruso
Ciao Andrea,


Andrea Peri wrote
> I will try to add a group element to every class . With the same group
> value.

I have added it to every class (I have added also CLASSGROUP to the layer)
but it's the same: no labels.

Thank you




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624p5287627.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread Andrea Peri
I will try to add a group element to every class . With the same group
value.
A.

Il 25 set 2016 12:51 PM, "aborruso"  ha scritto:

Hi,
I have a small problem with WMS legend. I have this kind of layer definition
in a map file:
https://gist.github.com/aborruso/ed4671f1884d48b61275ef70f0f0d2ef

This is my legend definiton:

  LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
  FONT "vera_sans"
  SIZE 8
  OFFSET 0 0
  SHADOWSIZE 1 1
END # LABEL
STATUS ON
  END # LEGEND

I have 3 classes but If I open the legend I see only the 3 class symbols and
not the legend labels (look at the below image).



If I use a layer with only one class I see in the legen also the label.

This is the call to my legend object:

http://localhost/cgi-bin/mapserv.exe?MAP=/myfolderd/
myfile.map=image/png=TRUE=WMS&
VERSION=1.1.1=GetLegendGraphic&_OLSALT=0.47996582672561616=EPSG:
3857=45354.24=250=myLayer

What's wrong in my layer definition?

Thank you very much



--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS Legend with more than one layer class

2016-09-25 Thread aborruso
Hi,
I have a small problem with WMS legend. I have this kind of layer definition
in a map file:
https://gist.github.com/aborruso/ed4671f1884d48b61275ef70f0f0d2ef

This is my legend definiton:

  LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
  FONT "vera_sans"
  SIZE 8
  OFFSET 0 0
  SHADOWSIZE 1 1
END # LABEL
STATUS ON
  END # LEGEND

I have 3 classes but If I open the legend I see only the 3 class symbols and
not the legend labels (look at the below image).

 

If I use a layer with only one class I see in the legen also the label.

This is the call to my legend object:

http://localhost/cgi-bin/mapserv.exe?MAP=/myfolderd/myfile.map=image/png=TRUE=WMS=1.1.1=GetLegendGraphic&_OLSALT=0.47996582672561616=EPSG:3857=45354.24=250=myLayer

What's wrong in my layer definition?

Thank you very much



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-Legend-with-more-than-one-layer-class-tp5287624.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Wms filter expressions with 'or'

2016-09-22 Thread Ahmet Temiz
Hi,

Using cgi runtime substitution for filtering, how can I construct necessary
expressions that has in Jeo="a" or Jeo="b" or Jeo="c" form for wms and also
mapserver' is filter expression.

Can you make any suggestions?

Regards


-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu




Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS MapServer

2016-06-01 Thread Fawcett, David (MNIT)
The other common issue is when layer status is set to ON or OFF (not DEFAULT), 
and no layer is specified in the CGI/WMS request.

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Rahkonen Jukka (MML)
Sent: Tuesday, May 31, 2016 11:23 PM
To: Vogt, Robert (RCIS); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WMS MapServer


Hi,



Usually blank images without error mean that there are no data within the BBOX. 
Check the coverage of your data and that you have projections right.



It would be very interesting to know afterwards all the steps you have followed 
with your Mapserver setup. I believe that you have spent considerable much time 
with it and that means that the Mapserver documentation may not be good enough.



You wrote once that you had problems with path

E:\rcis\web\MapServerDlls\uildselease-1800-x64inprojSHARE\proj_def.dat. Does it 
mean that you have built Mapserver by yourself on Windows?

 -Jukka Rahkonen-


Vogt, Robert wrote:

Good afternoon all,

Still working on getting MapServer up and running...

I am getting blank tiles back with a status of 200 in chrome.
I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I 
request the page an error test document is created...
However it is blank...does this mean there were no error's?

If so what is a reasonable next step to take to debug blank tiles?

-BobV


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

Re: [mapserver-users] WMS MapServer

2016-05-31 Thread Rahkonen Jukka (MML)
Hi,


Usually blank images without error mean that there are no data within the BBOX. 
Check the coverage of your data and that you have projections right.


It would be very interesting to know afterwards all the steps you have followed 
with your Mapserver setup. I believe that you have spent considerable much time 
with it and that means that the Mapserver documentation may not be good enough.


You wrote once that you had problems with path

E:\rcis\web\MapServerDlls\uildselease-1800-x64inprojSHARE\proj_def.dat. Does 
it mean that you have built Mapserver by yourself on Windows?

 -Jukka Rahkonen-


Vogt, Robert wrote:

Good afternoon all,

Still working on getting MapServer up and running...

I am getting blank tiles back with a status of 200 in chrome.
I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I 
request the page an error test document is created...
However it is blank...does this mean there were no error's?

If so what is a reasonable next step to take to debug blank tiles?

-BobV


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

Re: [mapserver-users] WMS MapServer

2016-05-31 Thread Lime, Steve D (MNIT)
First thing I’d check is layer status. What are the STATUS values for your 
layers? One easy thing to do is set STATUS DEFAULT for the layers in question.

Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Vogt, Robert (RCIS)
Sent: Tuesday, May 31, 2016 4:11 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] WMS MapServer

Good afternoon all,

Still working on getting MapServer up and running…

I am getting blank tiles back with a status of 200 in chrome.
I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I 
request the page an error test document is created…
However it is blank…does this mean there were no error’s?

If so what is a reasonable next step to take to debug blank tiles?

-BobV


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

[mapserver-users] WMS MapServer

2016-05-31 Thread Vogt, Robert (RCIS)
Good afternoon all,

Still working on getting MapServer up and running…

I am getting blank tiles back with a status of 200 in chrome.
I enabled DEBUG 4 in my .map file and designated an "MS_ERRORFILE", when I 
request the page an error test document is created…
However it is blank…does this mean there were no error’s?

If so what is a reasonable next step to take to debug blank tiles?

-BobV


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

Re: [mapserver-users] WMS cascading and Mapcache

2016-05-31 Thread milad nidal
Thanks for answer..
 I did a cache with mapcache (on Linux). The first image is with mapserver
6.4 (on windows) and the second for the sames layers with mapserver 7 (on
linux).

One can see the outline of the white area in some places..

Thanks


On Tue, Dec 1, 2015 at 4:06 AM, thomas bonfort 
wrote:

> On 1 December 2015 at 02:49, milad nidal  wrote:
> > We get something like an outline of cascading WMS and this happened only
> > when we do a cache
>
> Can you explicit what you mean by this ?
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread Jeff McKenna

On 2016-02-04 3:10 PM, Basques, Bob (CI-StPaul) wrote:

done.

bobb



On Feb 4, 2016, at 11:19 AM, Jeff McKenna  wrote:

I was just reading a recent discussion on this, might be the same discussion 
(http://osgeo-org.1560.x6.nabble.com/Allowing-spaces-in-layer-names-WMS-WFS-td5213960.html).

Bob can you file a little test case for this (tiny mapfile, commands to use to 
test), as a new ticket on the MapServer tracker? 
https://github.com/mapserver/mapserver/issues  I can't find an existing ticket, 
so we might as well record one.

-jeff





Thanks Bob.  For everyone else, please help out in the ticket: 
https://github.com/mapserver/mapserver/issues/5232


-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



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

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread Basques, Bob (CI-StPaul)
done.

bobb


> On Feb 4, 2016, at 11:19 AM, Jeff McKenna  
> wrote:
> 
> I was just reading a recent discussion on this, might be the same discussion 
> (http://osgeo-org.1560.x6.nabble.com/Allowing-spaces-in-layer-names-WMS-WFS-td5213960.html).
> 
> Bob can you file a little test case for this (tiny mapfile, commands to use 
> to test), as a new ticket on the MapServer tracker? 
> https://github.com/mapserver/mapserver/issues  I can't find an existing 
> ticket, so we might as well record one.
> 
> -jeff
> 
> 
> 
> -- 
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> 

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

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread TC Haddad
This came up last year and I don't know if it was ever resolved:

https://lists.osgeo.org/pipermail/mapserver-users/2014-August/076870.html

https://lists.osgeo.org/pipermail/mapserver-users/2014-August/076886.html


On Thu, Feb 4, 2016 at 8:44 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> I was hoping there might be some tricky way of fooling MapServer by
> encoding, etc.
>
> bobb
>
>
> On Feb 4, 2016, at 10:39 AM, TC Haddad  wrote:
>
>
> When querying the TIGER server directly from a browser, the first and
> third styles of request both work, while the option with the "+" does not.
> So those are the 2 options the server will accept.
>
> I guess Mapserver prefers no space in a name, or a "+" to designate space,
> so you might be stuck.
>
> As a best practice, they really should have the version with a space in
> the Title rather than the Name, but you can't fix that from your end.
>
> On Thu, Feb 4, 2016 at 7:50 AM, Basques, Bob (CI-StPaul) <
> bob.basq...@ci.stpaul.mn.us> wrote:
>
>> All,
>>
>> I’m trying to use this WMS:
>>
>>
>> http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?
>>
>> Specifically, two layers, “Census Tracts” and “Census Tracts Labels”
>>
>> I can open the service in just about everything, except Mapserver as a
>> WMS client.  I’m assuming the problem is in how MapServer is sending it’s
>> request.
>>
>>
>> I must be missing something obvious.
>>
>>
>> Thanks.
>>
>> bobb
>>
>>
>> Call1:
>>
>>
>> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census
>> 
>> Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
>> 
>>
>> error:
>>
>> Parameter ‘layers’ contains unacceptable layer names
>>
>>
>>
>> Call2 (use “+” for space):
>>
>>
>> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census+Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
>> 
>>
>> error:
>>
>> Parameter ‘layers’ contains unacceptable layer names
>>
>>
>>
>> Call3 (URL encoding “%20” ):
>>
>>
>> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census%20Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
>> 
>>
>>
>> error:
>>
>> Parameter ‘layers’ contains unacceptable layer names
>>
>>
>>
>> ##Mapfile
>>
>> MAP
>>
>>   STATUS ON
>>
>>   LAYER
>> NAME "Census Tracts"
>> TYPE RASTER
>> STATUS DEFAULT
>>
>> CONNECTION "
>> http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?
>> "
>>
>> CONNECTIONTYPE WMS
>> METADATA
>> "wms_srs" "EPSG:4326"
>> "wms_name" "Census Tracts"
>> "wms_server_version" "1.1.1"
>> #"wms_server_version" "1.3.0"
>> "wms_format" "image/png24"
>>
>> "ows_title" "Census Tracts"
>> #"gml_include_items" "all"
>> END
>> PROJECTION
>> "init=epsg:4326"
>> END
>>
>> TEMPLATE "dummy"
>>   END #layer
>>
>> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
>> ##DEBUG 5
>>
>> END
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread Basques, Bob (CI-StPaul)
I was hoping there might be some tricky way of fooling MapServer by encoding, 
etc.

bobb


On Feb 4, 2016, at 10:39 AM, TC Haddad 
> wrote:


When querying the TIGER server directly from a browser, the first and third 
styles of request both work, while the option with the "+" does not. So those 
are the 2 options the server will accept.

I guess Mapserver prefers no space in a name, or a "+" to designate space, so 
you might be stuck.

As a best practice, they really should have the version with a space in the 
Title rather than the Name, but you can't fix that from your end.

On Thu, Feb 4, 2016 at 7:50 AM, Basques, Bob (CI-StPaul) 
> wrote:
All,

I’m trying to use this WMS:

http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?

Specifically, two layers, “Census Tracts” and “Census Tracts Labels”

I can open the service in just about everything, except Mapserver as a WMS 
client.  I’m assuming the problem is in how MapServer is sending it’s request.


I must be missing something obvious.


Thanks.

bobb


Call1:

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census
 
Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865

error:

Parameter ‘layers’ contains unacceptable layer names



Call2 (use “+” for space):

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census+Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865

error:

Parameter ‘layers’ contains unacceptable layer names



Call3 (URL encoding “%20” ):

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census%20Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865


error:

Parameter ‘layers’ contains unacceptable layer names



##Mapfile

MAP

  STATUS ON

  LAYER
NAME "Census Tracts"
TYPE RASTER
STATUS DEFAULT

CONNECTION 
"http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?;

CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "Census Tracts"
"wms_server_version" "1.1.1"
#"wms_server_version" "1.3.0"
"wms_format" "image/png24"

"ows_title" "Census Tracts"
#"gml_include_items" "all"
END
PROJECTION
"init=epsg:4326"
END

TEMPLATE "dummy"
  END #layer

##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
##DEBUG 5

END

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


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

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread Jeff McKenna
I was just reading a recent discussion on this, might be the same 
discussion 
(http://osgeo-org.1560.x6.nabble.com/Allowing-spaces-in-layer-names-WMS-WFS-td5213960.html).


Bob can you file a little test case for this (tiny mapfile, commands to 
use to test), as a new ticket on the MapServer tracker? 
https://github.com/mapserver/mapserver/issues  I can't find an existing 
ticket, so we might as well record one.


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-02-04 12:51 PM, TC Haddad wrote:

This came up last year and I don't know if it was ever resolved:

https://lists.osgeo.org/pipermail/mapserver-users/2014-August/076870.html

https://lists.osgeo.org/pipermail/mapserver-users/2014-August/076886.html


On Thu, Feb 4, 2016 at 8:44 AM, Basques, Bob (CI-StPaul)
> wrote:

I was hoping there might be some tricky way of fooling MapServer by
encoding, etc.

bobb



On Feb 4, 2016, at 10:39 AM, TC Haddad > wrote:


When querying the TIGER server directly from a browser, the first
and third styles of request both work, while the option with the
"+" does not. So those are the 2 options the server will accept.

I guess Mapserver prefers no space in a name, or a "+" to
designate space, so you might be stuck.

As a best practice, they really should have the version with a
space in the Title rather than the Name, but you can't fix that
from your end.

On Thu, Feb 4, 2016 at 7:50 AM, Basques, Bob (CI-StPaul)
>
wrote:

All,

I’m trying to use this WMS:


http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?

Specifically, two layers, “Census Tracts” and “Census Tracts
Labels”

I can open the service in just about everything, except
Mapserver as a WMS client.  I’m assuming the problem is in how
MapServer is sending it’s request.


I must be missing something obvious.


Thanks.

bobb


Call1:


http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census

Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865



error:

Parameter ‘layers’ contains unacceptable layer names



Call2 (use “+” for space):


http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census+Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865



error:

Parameter ‘layers’ contains unacceptable layer names



Call3 (URL encoding “%20” ):


http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census%20Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865




error:

Parameter ‘layers’ contains unacceptable layer names



##Mapfile

MAP

STATUS ON

LAYER
NAME "Census Tracts"
TYPE RASTER
STATUS DEFAULT

CONNECTION

"http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?;

CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "Census Tracts"
"wms_server_version" "1.1.1"
#"wms_server_version" "1.3.0"
"wms_format" "image/png24"

"ows_title" "Census Tracts"
#"gml_include_items" "all"
END
PROJECTION
"init=epsg:4326"
END

TEMPLATE "dummy"
END #layer

##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
##DEBUG 5

END



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

Re: [mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread TC Haddad
When querying the TIGER server directly from a browser, the first and third
styles of request both work, while the option with the "+" does not. So
those are the 2 options the server will accept.

I guess Mapserver prefers no space in a name, or a "+" to designate space,
so you might be stuck.

As a best practice, they really should have the version with a space in the
Title rather than the Name, but you can't fix that from your end.

On Thu, Feb 4, 2016 at 7:50 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> All,
>
> I’m trying to use this WMS:
>
>
> http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?
>
> Specifically, two layers, “Census Tracts” and “Census Tracts Labels”
>
> I can open the service in just about everything, except Mapserver as a WMS
> client.  I’m assuming the problem is in how MapServer is sending it’s
> request.
>
>
> I must be missing something obvious.
>
>
> Thanks.
>
> bobb
>
>
> Call1:
>
>
> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census
> 
> Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
> 
>
> error:
>
> Parameter ‘layers’ contains unacceptable layer names
>
>
>
> Call2 (use “+” for space):
>
>
> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census+Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
> 
>
> error:
>
> Parameter ‘layers’ contains unacceptable layer names
>
>
>
> Call3 (URL encoding “%20” ):
>
>
> http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census%20Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865
> 
>
>
> error:
>
> Parameter ‘layers’ contains unacceptable layer names
>
>
>
> ##Mapfile
>
> MAP
>
>   STATUS ON
>
>   LAYER
> NAME "Census Tracts"
> TYPE RASTER
> STATUS DEFAULT
>
> CONNECTION "
> http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?
> "
>
> CONNECTIONTYPE WMS
> METADATA
> "wms_srs" "EPSG:4326"
> "wms_name" "Census Tracts"
> "wms_server_version" "1.1.1"
> #"wms_server_version" "1.3.0"
> "wms_format" "image/png24"
>
> "ows_title" "Census Tracts"
> #"gml_include_items" "all"
> END
> PROJECTION
> "init=epsg:4326"
> END
>
> TEMPLATE "dummy"
>   END #layer
>
> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
> ##DEBUG 5
>
> END
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS call with layer names containing a space.

2016-02-04 Thread Basques, Bob (CI-StPaul)
All,

I’m trying to use this WMS:

http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?

Specifically, two layers, “Census Tracts” and “Census Tracts Labels”

I can open the service in just about everything, except Mapserver as a WMS 
client.  I’m assuming the problem is in how MapServer is sending it’s request.


I must be missing something obvious.


Thanks.

bobb


Call1:

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census
 
Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865

error:

Parameter ‘layers’ contains unacceptable layer names



Call2 (use “+” for space):

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census+Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865

error:

Parameter ‘layers’ contains unacceptable layer names



Call3 (URL encoding “%20” ):

http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng=TRUE=WMS=1.1.1=GetMap==Census%20Tracts&_OLSALT=0.8675355401581306=EPSG%3A4326=-93.239,44.892,-92.977,44.993=1557=865


error:

Parameter ‘layers’ contains unacceptable layer names



##Mapfile

MAP

  STATUS ON

  LAYER
NAME "Census Tracts"
TYPE RASTER
STATUS DEFAULT

CONNECTION 
"http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?;

CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "Census Tracts"
"wms_server_version" "1.1.1"
#"wms_server_version" "1.3.0"
"wms_format" "image/png24"

"ows_title" "Census Tracts"
#"gml_include_items" "all"
END
PROJECTION
"init=epsg:4326"
END

TEMPLATE "dummy"
  END #layer

##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
##DEBUG 5

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

[mapserver-users] WMS layer name with spaces

2016-02-04 Thread Carlos Ruiz
I just have read about the problem when calling a WMS layer from a map file 
which has spaces in the layer's name and I want to help. I already have a local 
WMS server with Mapserver, I have several layers with spaces in their name, and 
I have made a .MAP file to test as as a WMS client. It works just fine when the 
layer name has spaces. However, when I tried to test a layer which has an 
accent in a vowel it fails.

I suppose that ArcGIS server is not decoding the URL properly (%20 for " ").___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS GetFeatureInfo no processed template on cluster layer

2016-01-13 Thread Schepers, Benjamin
I can’t confirm your solution, but maybe we’ve got different problems…
See my post a week ago: https://github.com/mapserver/mapserver/issues/5219
Maybe someone gets an idea, whether this is an configuration error?

Regards
Ben


Mit freundlichen Grüßen
Im Auftrag

Benjamin Schepers


Luftbild und Geoinformationssysteme
Kronprinzenstraße 35
45128 Essen
Fon: +49 201 2069-232
Fax: +49 201 2069-400
schep...@rvr-online.de

[cid:image001.jpg@01D14EA4.FF3261B0]

Die Regionaldirektorin
Kronprinzenstraße 35
45128 Essen
Zentrale: +49 (0) 201 2069-0
Fax: +49 (0) 201 2069-500
www.metropoleruhr.de

Postfach 10 32 64
45032 Essen

Steuernummer: RVR 112/5797/0116
USt.-ldNr.: DE 173867500

Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht 
gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von Carlos Ruiz
Gesendet: Mittwoch, 13. Januar 2016 20:48
An: MapserverList OSGEO
Betreff: [mapserver-users] WMS GetFeatureInfo no processed template on cluster 
layer

Hi to all,

Maybe I'm missing something, but I cannot retreieve features' information when 
I have a CLUSTER tag within a WMS layer.

I could retrieve features' information before as text/html on an HTML template 
performing a GetFeatureInfo query, but after I have included CLUSTER for 
presentation purposes, the fields on the template are not substituted anymore. 
The field names are shown as they were written (i.e. [street_name]) on the 
template.

This can be a little bit obvious because CLUSTER can represent a lot of near 
features. However, I have tested to retrieve info over a cluster with just one 
feature and the result is the same.

Is there something that I'm missing or the query behavior on a cluster is just 
undefined ?

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

Re: [mapserver-users] WMS cascading and Mapcache

2015-12-01 Thread thomas bonfort
On 1 December 2015 at 02:49, milad nidal  wrote:
> We get something like an outline of cascading WMS and this happened only
> when we do a cache

Can you explicit what you mean by this ?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS cascading and Mapcache

2015-11-30 Thread milad nidal
Hi,

I have 100 layer for a large area.. I was creating cache (with Mapcache
linux) and Mapserver 6.4 (Windows). I’m creating some WMS from layer in
Postgis and some from other WMS (cascading from another Mapserver Linux)
and everything was correct. Later we started using Mapserver 7 (Linux) and
Mapcache Linux. The result is not nice.. We get something like an outline
of cascading WMS and this happened only when we do a cache (it is correct
when we visualize the cascading WMS for one layer in the browser). I’m
using the style "" and "wms_transparent" "true" and "wms_format"
"image/png".



Thanks for any help
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-27 Thread Yves Jacolin
On Thursday, November 26, 2015 7:48:08 John Abraham wrote:
> Don't forget to remove  the
> =WMS=1.1.1=GetCapabilities From the url before
> giving it to qgis

[OFF TOPIC] Not sure if this really triggers any errors in QGIS and wondering 
if QGIS keeps VERSION=x.x.x parameter to the next getmap request.

Y.
-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jaco...@camptocamp.com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-26 Thread rishi
wms layer is displaying, but it is not displaying properly on
openstreetmap. Also zoom and pan functionalities are not working.

please tell me why this is not working properly.

On Thu, Nov 26, 2015 at 8:18 PM, John Abraham  wrote:

> Don't forget to remove  the
> =WMS=1.1.1=GetCapabilities
> From the url before giving it to qgis
>
> --
> John Abraham
>
> Sent from my iPhone, please excuse any typos.
>
> > On Nov 25, 2015, at 11:30 PM, rishi  wrote:
> >
> > =WMS=1.1.1=GetCapabilities
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-26 Thread John Abraham
Don't forget to remove  the =WMS=1.1.1=GetCapabilities
From the url before giving it to qgis

--
John Abraham

Sent from my iPhone, please excuse any typos. 

> On Nov 25, 2015, at 11:30 PM, rishi  wrote:
> 
> =WMS=1.1.1=GetCapabilities
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-25 Thread rishi
hi

i have removed the space and "c://" from the url, still map is not
displaying in the qgis

please check my mapfile whether i am doing any mistake

MAP
  IMAGETYPE  svg
UNITSMETERS
  EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947
  SIZE   1400 1300
  SHAPEPATH  "/ms4w/apps/webgis/data"
  IMAGECOLOR 255 255 255
TRANSPARENT on
DEBUG ON
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"

web
metadata
  "wms_title" "MapServer layer"
"wms_onlineresource""
http://localhost:8085/cgi-bin/mapserv.exe?

map=/ms4w/apps/webgis/wmssample.map"
"wms_enable_request""*"
   "wms_srs" "EPSG:4326 EPSG:3857"
  "wms_feature_info_mime_type" "text/html"
end
end

  # Start of LAYER DEFINITIONS -
  LAYER # States polygon layer begins here
METADATA
"wms_title"   "districts"
   "wms_srs" "EPSG:4326 EPSG:3857"
END
NAMEdistrict_old
DATAdistrict_old
STATUS  Default
TYPE POLYGON
PROJECTION
  "init=EPSG:4326"
END

CLASS

   style
#color 55 230 51
outlinecolor 90 90 90
width 2
end
LABEL
#color 255 255 255
size 2
BACKGROUNDCOLOR 255 201 14
position auto
END
END
  END

END

imagetype also i tried with png and svg

url is
http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities

On Wed, Nov 25, 2015 at 4:13 AM, John Abraham  wrote:

> You are not normally supposed to include the other parameters
> (=WMS=1.1.1=GetCapabilities) when you are adding a
> WMS/WFS URL to QGIS.  You specify the service and version in the QGIS
> dialog box instead.  QGIS will append those parameters for you, and query
> the GetCapabilities for you, and provide you with a list of options.  After
> you select a layer to include, QGIS will query without the GetCapabilities
> to retrieve the actual map images, based on what it finds when it did the
> GetCapabilities query.
>
> So, try http://localhost:8085/cgi-bin/mapserv.exe
> ?map=c://ms4w/apps/webgis/wmssample.map
>
> (In fact when you are working with other GIS packages it is sometimes even
> a problem to include the ?map=  parameter explicitly in the URL.  There's
> some approach with Apache Rewrite rules or mapserver configuration files or
> something like that to tell mapserver the name of the mapfile without
> having it as a parameter in the URL.  I can't find the documentation on
> that right now, but I didn't look too hard.  It seems the normal use case
> is to have a public facing URL and then your different feature layers are
> all defined in the same mapfile that's hidden from the user.  Anyway, my
> use case has hundreds of dynamically generated mapfiles, and QGIS never
> seems to have a problem with having the ?map= in the URL.)
>
> As the other person mentioned, try to avoid putting the drive letter
> "c://" in the URL. It's just confusing to everyone to have a drive letter
> in the middle of a url.
>
> Also, in your email below I see a space before the word map.  Make sure
> that's not there in reality.  " map" might not be recognized as the same
> parameter name as "map"
>
> --
> John Abraham
> j...@hbaspecto.com
> 403-232-1060
>
> On Nov 24, 2015, at 12:24 AM, rishi  wrote:
>
> hi all
>
> my wms url is
>  http://localhost:8085/cgi-bin/mapserv.exe?
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
>
> when i hit the above url it is downloading the mapserv.exe then i am
> changing .exe to .txt then i can able to see xml file
>
> but when i am trying to add the above url in qgis, map is not displaying
> also i am getting error as document is in invalid format.
>
> if i hit the url  http://localhost:8085/cgi-bin/mapserv?
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
>
> without .exe the it is showing error as The requested URL
> /cgi-bin/mapserv was not found on this server.
>
> please tell me how to resolve the issue
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-24 Thread John Abraham
You are not normally supposed to include the other parameters 
(=WMS=1.1.1=GetCapabilities) when you are adding a 
WMS/WFS URL to QGIS.  You specify the service and version in the QGIS dialog 
box instead.  QGIS will append those parameters for you, and query the 
GetCapabilities for you, and provide you with a list of options.  After you 
select a layer to include, QGIS will query without the GetCapabilities to 
retrieve the actual map images, based on what it finds when it did the 
GetCapabilities query.

So, try 
http://localhost:8085/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wmssample.map

(In fact when you are working with other GIS packages it is sometimes even a 
problem to include the ?map=  parameter explicitly in the URL.  There's some 
approach with Apache Rewrite rules or mapserver configuration files or 
something like that to tell mapserver the name of the mapfile without having it 
as a parameter in the URL.  I can't find the documentation on that right now, 
but I didn't look too hard.  It seems the normal use case is to have a public 
facing URL and then your different feature layers are all defined in the same 
mapfile that's hidden from the user.  Anyway, my use case has hundreds of 
dynamically generated mapfiles, and QGIS never seems to have a problem with 
having the ?map= in the URL.)

As the other person mentioned, try to avoid putting the drive letter "c://" in 
the URL. It's just confusing to everyone to have a drive letter in the middle 
of a url.

Also, in your email below I see a space before the word map.  Make sure that's 
not there in reality.  " map" might not be recognized as the same parameter 
name as "map" 

--
John Abraham
j...@hbaspecto.com
403-232-1060

> On Nov 24, 2015, at 12:24 AM, rishi  wrote:
> 
> hi all
> 
> my wms url is
>  http://localhost:8085/cgi-bin/mapserv.exe 
> ? 
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
> 
> when i hit the above url it is downloading the mapserv.exe then i am changing 
> .exe to .txt then i can able to see xml file
> 
> but when i am trying to add the above url in qgis, map is not displaying also 
> i am getting error as document is in invalid format.
> 
> if i hit the url  http://localhost:8085/cgi-bin/mapserv 
> ? 
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
>  
> without .exe the it is showing error as The requested URL /cgi-bin/mapserv 
> was not found on this server.
> 
> please tell me how to resolve the issue
>  
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] wms

2015-11-24 Thread Robert Sanson
Hi Rishi

What does the .txt file say? Is the path map=c://ms4w/apps/webgis/wmssample.map 
correct? Perhaps you should try: map=/ms4w/apps/webgis/wmssample.map

regards,

Robert

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of rishi
Sent: Tuesday, 24 November 2015 8:24 p.m.
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] wms

hi all

my wms url is
 http://localhost:8085/cgi-bin/mapserv.exe? 
map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities

when i hit the above url it is downloading the mapserv.exe then i am changing 
.exe to .txt then i can able to see xml file

but when i am trying to add the above url in qgis, map is not displaying also i 
am getting error as document is in invalid format.

if i hit the url  http://localhost:8085/cgi-bin/mapserv? 
map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities

without .exe the it is showing error as The requested URL /cgi-bin/mapserv was 
not found on this server.

please tell me how to resolve the issue


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

[mapserver-users] wms

2015-11-23 Thread rishi
hi all

my wms url is
 http://localhost:8085/cgi-bin/mapserv.exe?
map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities

when i hit the above url it is downloading the mapserv.exe then i am
changing .exe to .txt then i can able to see xml file

but when i am trying to add the above url in qgis, map is not displaying
also i am getting error as document is in invalid format.

if i hit the url  http://localhost:8085/cgi-bin/mapserv?
map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities

without .exe the it is showing error as The requested URL /cgi-bin/mapserv
was not found on this server.

please tell me how to resolve the issue
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS Layer provided by MapSever rendering incorrectly in ol3.

2015-11-17 Thread Rahkonen Jukka (MML)
Hi,

Don’t use mode=map because you want to read Mapserver  as WMS. Make just a 
plain WMS layer like in view-source:http://dev.openlayers.org/examples/wms.html.

-Jukka Rahkonen-



Neelesh Nirmal wrote:

I have created a map using OpenLayers3 which contains two layers. First layer 
is Open Street Map Layer and the second one is WMS layer provided by the Map 
Server.
Problem-When i'm rendering first layer it is rendering properly no issue. but 
when i'm rendering the second layer(provide by map server) it renders 
incorrectly means it does not fit to its container and it is out of sync with 
the first layer in terms of location. See this 
snapshot of the maps for more 
clarification. In the snapshot top layer is wms layer provided by map server.

[Lähettäjä poisti kuvan.]



Also when i'm zooming or moving the map then both layers work correctly but 
after a delay of few seconds the second layer(wms layer from map server) again 
switches back to its initial position(Position that is shown in above attached 
snapshot).



This is the code that i'm using to consume wms service.



var layer = new ol.layer.Image({

source: new ol.source.ImageWMS({

  url: 'http://localhost:19090/rasters/world/wms',

  params: {

   'LAYERS': 'world',

   'mode': 'map',

  },

  serverType: 'mapserver'

 })

});



This is my map file.



 MAP

  NAME   "world"

  CONFIG "MS_ERRORFILE" 
"/home/neelesh/Projects/georbis/data/logs/mapservice_errors.log"

  CONFIG "PROJ_LIB" 
"/home/neelesh/Projects/georbis/deps/proj.4-master/share/proj"

  CONFIG "ON_MISSING_DATA" "LOG"

  DEBUG 5

  EXTENT -180.000 -90.000 180.000 90.000

  SHAPEPATH "/home/neelesh/Projects/georbis/data/service_data/data/wms"

  IMAGECOLOR 255 255 255

  SIZE 1350 675



  WEB

METADATA

  "wms_title" "Georbis WMS Server"

  "wms_author" "VizExperts"

  "wms_onlineresource" "http://192.168.1.36:19090/rasters/world/wms?;

  "wms_enable_request" "*"

  "wms_srs" "epsg:4326"

  "wms_feature_info_mime_type" "text/html"

  "wms_format" "image/jpg"

END

  END



  PROJECTION

"init=epsg:4326"

  END



  LAYER

NAME world

TYPE RASTER

DATA "world.tif"

METADATA

  "wms_title" "BlueWorld Map"

  "wms_srs" "epsg:4326"

  "wms_server_version" "1.1.1"

END

PROJECTION

  "init=epsg:4326"

END

  END

END

I tried ol.view.fit method to fit the layer to its container but the value of 
layer.getExtent() for the layer is undefined.

Also layers are rendering perfectly in QGIS and when i'm using the same layer 
from geoserver instead of mapserver again it is working fine.
This
 is link to my stackoverflow post.

Pleas help me to find out what is wrong. is there any problem with wms request 
format or the map file?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  1   2   3   4   5   6   7   >