[mapserver-users] How set Ntv2 using Proj7

2021-01-05 Thread Andrea Peri
Hi,
I need to configure the use of a set of NTv2 for the SRS changes when
mapserver return maps in differences SRS.
But I dont't find any reference to the use of NTv2 in the Mapserver docs.

Is availabe in mapserver the choice to configure the use of NTv2 ?

I'm using the last Proj7

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


Re: [mapserver-users] Lost the transparency after a SO Update

2019-09-30 Thread Andrea Peri
Hi Seth.
I confirm the sintax

  STYLE
COLOR "#e1cc4f"
OPACITY 50
ANTIALIAS false
MAXSCALEDENOM 500
MINSCALEDENOM 1
  END


Is working.

The opacity is in percent (50 => 50%)


Il giorno lun 30 set 2019 alle ore 17:36 Andrea Peri 
ha scritto:

> The "#ff01" sintax was dismissed ?
>
> The 7.4.2 docs don't report this.
>
>
> -- from https://www.mapserver.org/mapfile/style.html
>
>-
>
>RGBA value (adding translucence): “#rrggbbaa”. To specify a
>semi-translucent magenta, the following is used:
>
>COLOR "#FF00FFCC"
>
>
> ---
>
> I try this sintax with OPACITY.
>
> Thx,
> A.
>
>
> Il giorno lun 30 set 2019 alle ore 17:26 Seth G 
> ha scritto:
>
>> Actually that does remind me of a recent issue I had when updating from
>> 7.2 to 7.4. I have the following diff:
>>
>> STYLE
>> # add an almost fully translucent colour
>> # setting the aa value to 00 in the rrggbbaa setting causes
>> any masked layers to no
>> # longer display
>> COLOR "#FF01"
>> END
>>
>> The above no longer worked and I updated to:
>>
>> STYLE
>> # add an almost fully translucent colour - if no colour then
>> no MASK
>> COLOR "#ff"
>> OPACITY 1
>> END
>>
>>
>> --
>> web:http://geographika.co.uk
>> twitter: @geographika
>>
>>
>> On Mon, Sep 30, 2019, at 4:56 PM, Andrea Peri wrote:
>>
>> Hi,
>>
>> this is the class I use
>>
>> The transparenc is used if RGBA hex.
>> COLOR "#e1cc4f7f"
>>
>> CLASS
>>   NAME ' '
>>   GROUP 'avorio'
>>   MAXSCALEDENOM 500
>>   MINSCALEDENOM 1
>>   STYLE
>> COLOR "#e1cc4f7f"
>> ANTIALIAS false
>> MAXSCALEDENOM 500
>> MINSCALEDENOM 1
>>   END
>>   STYLE
>> WIDTH 2.0
>> OUTLINECOLOR "#e1cc4f"
>> ANTIALIAS false
>> MAXSCALEDENOM 500
>> MINSCALEDENOM 1
>>   END
>> END
>>
>>
>> Il giorno lun 30 set 2019 alle ore 15:31 Seth G 
>> ha scritto:
>>
>>
>> Hi Andrea,
>>
>> Do you have a cut-down Mapfile to reproduce this?
>> Are you using the COMPOSITE block to set OPACITY?
>> https://mapserver.org/mapfile/composite.html#parameters
>> Setting OPACITY on the layer directly is deprecated since 7.0
>>
>> Seth
>>
>> --
>> web:http://geographika.co.uk
>> twitter: @geographika
>>
>>
>> On Mon, Sep 30, 2019, at 2:49 PM, Andrea Peri wrote:
>>
>> Hi,
>>
>> seem the issue is due to a more recent trunk of mapserver.
>> I try with an older trunk version and it work . The transparency is ok.
>>
>> So the issue is in the last trunk.
>>
>> A.
>>
>>
>> Il giorno lun 30 set 2019 alle ore 14:14 Andrea Peri 
>> ha scritto:
>>
>> Hi,
>>
>> After update the Linux Debian to last Burst version , and recompile gdal
>> and mapserver, I see the mapserver was no more capable to produce png
>> images with transparency.
>>
>> I guess there is some library wrong.
>> I try also to set gdal to recmpile using the internal version of png but
>> don't seem to have any result.
>>
>> Any help is welcome.
>>
>> Thx,
>>
>> -
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>>
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://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
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Lost the transparency after a SO Update

2019-09-30 Thread Andrea Peri
The "#ff01" sintax was dismissed ?

The 7.4.2 docs don't report this.


-- from https://www.mapserver.org/mapfile/style.html
-

RGBA value (adding translucence): “#rrggbbaa”. To specify a
semi-translucent magenta, the following is used:

COLOR "#FF00FFCC"

---

I try this sintax with OPACITY.

Thx,
A.


Il giorno lun 30 set 2019 alle ore 17:26 Seth G 
ha scritto:

> Actually that does remind me of a recent issue I had when updating from
> 7.2 to 7.4. I have the following diff:
>
> STYLE
> # add an almost fully translucent colour
> # setting the aa value to 00 in the rrggbbaa setting causes
> any masked layers to no
> # longer display
> COLOR "#FF01"
> END
>
> The above no longer worked and I updated to:
>
> STYLE
> # add an almost fully translucent colour - if no colour then
> no MASK
> COLOR "#ff"
> OPACITY 1
> END
>
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
> On Mon, Sep 30, 2019, at 4:56 PM, Andrea Peri wrote:
>
> Hi,
>
> this is the class I use
>
> The transparenc is used if RGBA hex.
> COLOR "#e1cc4f7f"
>
> CLASS
>   NAME ' '
>   GROUP 'avorio'
>   MAXSCALEDENOM 500
>   MINSCALEDENOM 1
>   STYLE
> COLOR "#e1cc4f7f"
> ANTIALIAS false
> MAXSCALEDENOM 500
> MINSCALEDENOM 1
>   END
>   STYLE
> WIDTH 2.0
> OUTLINECOLOR "#e1cc4f"
> ANTIALIAS false
> MAXSCALEDENOM 500
> MINSCALEDENOM 1
>   END
> END
>
>
> Il giorno lun 30 set 2019 alle ore 15:31 Seth G 
> ha scritto:
>
>
> Hi Andrea,
>
> Do you have a cut-down Mapfile to reproduce this?
> Are you using the COMPOSITE block to set OPACITY?
> https://mapserver.org/mapfile/composite.html#parameters
> Setting OPACITY on the layer directly is deprecated since 7.0
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
> On Mon, Sep 30, 2019, at 2:49 PM, Andrea Peri wrote:
>
> Hi,
>
> seem the issue is due to a more recent trunk of mapserver.
> I try with an older trunk version and it work . The transparency is ok.
>
> So the issue is in the last trunk.
>
> A.
>
>
> Il giorno lun 30 set 2019 alle ore 14:14 Andrea Peri 
> ha scritto:
>
> Hi,
>
> After update the Linux Debian to last Burst version , and recompile gdal
> and mapserver, I see the mapserver was no more capable to produce png
> images with transparency.
>
> I guess there is some library wrong.
> I try also to set gdal to recmpile using the internal version of png but
> don't seem to have any result.
>
> Any help is welcome.
>
> Thx,
>
> -
> -----
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>
>

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

Re: [mapserver-users] Lost the transparency after a SO Update

2019-09-30 Thread Andrea Peri
Hi,

this is the class I use

The transparenc is used if RGBA hex.
COLOR "#e1cc4f7f"

CLASS
  NAME ' '
  GROUP 'avorio'
  MAXSCALEDENOM 500
  MINSCALEDENOM 1
  STYLE
COLOR "#e1cc4f7f"
ANTIALIAS false
MAXSCALEDENOM 500
MINSCALEDENOM 1
  END
  STYLE
WIDTH 2.0
OUTLINECOLOR "#e1cc4f"
ANTIALIAS false
MAXSCALEDENOM 500
MINSCALEDENOM 1
  END
END


Il giorno lun 30 set 2019 alle ore 15:31 Seth G 
ha scritto:

> Hi Andrea,
>
> Do you have a cut-down Mapfile to reproduce this?
> Are you using the COMPOSITE block to set OPACITY?
> https://mapserver.org/mapfile/composite.html#parameters
> Setting OPACITY on the layer directly is deprecated since 7.0
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
> On Mon, Sep 30, 2019, at 2:49 PM, Andrea Peri wrote:
>
> Hi,
>
> seem the issue is due to a more recent trunk of mapserver.
> I try with an older trunk version and it work . The transparency is ok.
>
> So the issue is in the last trunk.
>
> A.
>
>
> Il giorno lun 30 set 2019 alle ore 14:14 Andrea Peri 
> ha scritto:
>
> Hi,
>
> After update the Linux Debian to last Burst version , and recompile gdal
> and mapserver, I see the mapserver was no more capable to produce png
> images with transparency.
>
> I guess there is some library wrong.
> I try also to set gdal to recmpile using the internal version of png but
> don't seem to have any result.
>
> Any help is welcome.
>
> Thx,
>
> -
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>

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

Re: [mapserver-users] Lost the transparency after a SO Update

2019-09-30 Thread Andrea Peri
Hi,

seem the issue is due to a more recent trunk of mapserver.
I try with an older trunk version and it work . The transparency is ok.

So the issue is in the last trunk.

A.


Il giorno lun 30 set 2019 alle ore 14:14 Andrea Peri 
ha scritto:

> Hi,
>
> After update the Linux Debian to last Burst version , and recompile gdal
> and mapserver, I see the mapserver was no more capable to produce png
> images with transparency.
>
> I guess there is some library wrong.
> I try also to set gdal to recmpile using the internal version of png but
> don't seem to have any result.
>
> Any help is welcome.
>
> Thx,
>
> -
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>


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

[mapserver-users] Lost the transparency after a SO Update

2019-09-30 Thread Andrea Peri
Hi,

After update the Linux Debian to last Burst version , and recompile gdal
and mapserver, I see the mapserver was no more capable to produce png
images with transparency.

I guess there is some library wrong.
I try also to set gdal to recmpile using the internal version of png but
don't seem to have any result.

Any help is welcome.

Thx,

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

Re: [mapserver-users] Error compiling mapserver

2019-08-21 Thread Andrea Peri
Ho,
I resolved.
They was two distict issues.

One was a too old version of harfbuzz .

The other error.was resolved removing the option with-jpeg from
installation of
Libgeotiff.

A.


Il mer 21 ago 2019, 10:01 Andrea Peri  ha scritto:

> Hi,
> I have update to last debian my pc and when try to recompile the mapserver
> from the last trunk code,
>
> I have this error:
>
> [ 79%] Building CXX object
> CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
> [ 79%] Linking CXX shared library libmapserver.so
> [ 79%] Built target mapserver
> Scanning dependencies of target shptreetst
> [ 80%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
> [ 81%] Linking C executable shptreetst
> /usr/bin/ld: warning: libjpeg.so.8, needed by /usr/local/lib/libgdal.so,
> may conflict with libjpeg.so.62
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_font_funcs_set_nominal_glyph_func'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_font_set_variations'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_variation_from_string'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_buffer_set_cluster_level'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_font_funcs_set_variation_glyph_func'
> collect2: error: ld returned 1 exit status
> CMakeFiles/shptreetst.dir/build.make:112: recipe for target 'shptreetst'
> failed
> make[2]: *** [shptreetst] Error 1
> CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/shptreetst.dir/all'
> failed
> make[1]: *** [CMakeFiles/shptreetst.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
>
> I don't understand if the issue is in the libjpeg.so.8 version
> or instead an issue due to a deprecation in the libpangoft2-1.0 of some
> references.
>
> Any help is welcome.
> Thx.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Error compiling mapserver

2019-08-21 Thread Andrea Peri
Hi,
I have update to last debian my pc and when try to recompile the mapserver
from the last trunk code,

I have this error:

[ 79%] Building CXX object
CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
[ 79%] Linking CXX shared library libmapserver.so
[ 79%] Built target mapserver
Scanning dependencies of target shptreetst
[ 80%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
[ 81%] Linking C executable shptreetst
/usr/bin/ld: warning: libjpeg.so.8, needed by /usr/local/lib/libgdal.so,
may conflict with libjpeg.so.62
//usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
`hb_font_funcs_set_nominal_glyph_func'
//usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
`hb_font_set_variations'
//usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
`hb_variation_from_string'
//usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
`hb_buffer_set_cluster_level'
//usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
`hb_font_funcs_set_variation_glyph_func'
collect2: error: ld returned 1 exit status
CMakeFiles/shptreetst.dir/build.make:112: recipe for target 'shptreetst'
failed
make[2]: *** [shptreetst] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/shptreetst.dir/all'
failed
make[1]: *** [CMakeFiles/shptreetst.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I don't understand if the issue is in the libjpeg.so.8 version
or instead an issue due to a deprecation in the libpangoft2-1.0 of some
references.

Any help is welcome.
Thx.

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

Re: [mapserver-users] The GetFeature WFS Request fail if the layer is empty

2019-08-13 Thread Andrea Peri
Hi Jukka,

I'm testing with GetFeature using a postgis table.
The table in my test is not empty, but I apply a filter to the query for
the data retrieving of the layer and the result with the filter is an empty
dataset.

A.


Il giorno mar 13 ago 2019 alle ore 09:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> ha scritto:

> Hi,
>
>
>
> What kind of source dataset do you have, and do you mean that for example
> a PostGIS table exists but there are no rows in the table?
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* mapserver-users  
> *Puolesta
> *Andrea Peri
> *Lähetetty:* maanantai 12. elokuuta 2019 14.30
> *Vastaanottaja:* mapserver-users@lists.osgeo.org
> *Aihe:* [mapserver-users] The GetFeature WFS Request fail if the layer is
> empty
>
>
>
> Hi,
>
> I' notice that the GetFeature WFS request of a mapserver (i'm work using
> master) return an error if the dataset (and so the layer) is empty.
>
>
>
> I test using version 1.0.0, 1.1.1 and 2.00.
>
>
>
> On 2.0.0 the result is:
>
> http status 400
>
> *The request sent by the client was syntactically incorrect.*
>
>
>
> On 1.1.0 and 1.0.0 the result is an xml exception with:
>
> msWFSGetFeature(): WFS server error. ms_error->code not found
>
>
>
> I Guess it should return not an exception or error, but instead an empty
> GML or an Empty Shapefile and so on...
>
>
>
> Before to build a test service of this issue, I like to know if this
> instead is a confirmed specific characteristic of a wfs service.
>
>
>
> Thx,
>
>
>
> --
>
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>


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

[mapserver-users] The GetFeature WFS Request fail if the layer is empty

2019-08-12 Thread Andrea Peri
Hi,
I' notice that the GetFeature WFS request of a mapserver (i'm work using
master) return an error if the dataset (and so the layer) is empty.

I test using version 1.0.0, 1.1.1 and 2.00.

On 2.0.0 the result is:
http status 400
*The request sent by the client was syntactically incorrect.*

On 1.1.0 and 1.0.0 the result is an xml exception with:
msWFSGetFeature(): WFS server error. ms_error->code not found

I Guess it should return not an exception or error, but instead an empty
GML or an Empty Shapefile and so on...

Before to build a test service of this issue, I like to know if this
instead is a confirmed specific characteristic of a wfs service.

Thx,

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

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-08-12 Thread Andrea Peri
Hi Steve,

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

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

A.

Thx,


Il giorno mer 31 lug 2019 alle ore 23:50 Lime, Steve D (MNIT) <
steve.l...@state.mn.us> ha scritto:

> Hi Andrea: I just tested with MapServer 6.4 and 7.4 and it works as
> expected, at least with WMS GetMap requests. My process was:
>
>
>
> 1.   Make a WMS request and check the logs to confirm the IP I was
> showing up as.
>
> 2.   Edit the mapfile and add “ows_denied_ip_list” “my IP” to the WEB
> METADATA section.
>
> 3.   Perform the same WMS request in the browser – result was a WMS
> exception.
>
> 4.   Edit the mapfile and change the ip slightly so it shouldn’t
> match but leaving the directive in place.
>
> 5.   Perform the same WMS request in the browser – result was a PNG
> image.
>
>
>
> I did tried multiple IPs in the list, with and without my IP and
> everything worked as expected. I did not try using an external file. I did
> notice with my IP in the list a GetMap request was blocked, a
> GetCapabilities request was not. I didn’t try a GetFeature… request.
>
>
>
> Makes me wonder if you have the right IP for your test setup?
>
>
>
> --Steve
>
>
>
> *From:* Andrea Peri [mailto:aperi2...@gmail.com]
> *Sent:* Tuesday, July 30, 2019 2:30 PM
> *To:* Lime, Steve D (MNIT) ;
> mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] ows_denied_ip_list is working ?
>
>
>
> Hi,
>
> I was using a compiled version from a recent clone of master .
>
>
>
> I try to apply ot to WEB-> METADATA section section using this kind of
> values:
>
>
>
> I try to use a list of IP directly listed using a space as separator
>
>   "ows_denied_ip_list" "xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
> zzz.zzz.zzz.zzz"
>
> or using a file where there is the same list one IP for line
>
>
>
>  "ows_denied_ip_list" "file:/path-to-file/file-with-ip-list.txt"
>
>
>
> The values listed are the possibly values of our proxy.
>
> So I guess setting them as denied IP mapserver should refuse to give a map
> to every client wms using them.
>
> Instead the map are still showed.
>
>
>
> I'm using QGIS as wms client to test it.
>
>
>
> A.
>
>
>
>
>
> Il mar 30 lug 2019, 04:21 Lime, Steve D (MNIT) 
> ha scritto:
>
> I will test and reply back. What specific version, config and tests did
> you try on your end?
> --
>
> *From:* mapserver-users  on
> behalf of Andrea Peri 
> *Sent:* Saturday, July 27, 2019 9:02:07 AM
> *To:* mapserver-users@lists.osgeo.org 
> *Subject:* [mapserver-users] ows_denied_ip_list is working ?
>
>
>
> Hi,
>
> I see my version of mapserver don't work the ows_denied_ip_list.
>
> I see ths other mex:
>
>
> http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html
> <https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2Fows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html=02%7C01%7CSteve.Lime%40state.mn.us%7Ca2bef76fd62f471db1e608d715245908%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637001118169695729=PWJxX4BJMhOodJ7FadppgR%2F3XAk9lLW%2FHJadeWehSRQ%3D=0>
>
>
>
> I try all the same option but nothing is work.
>
>
>
> So I guess that instead that the ows_denied_ip_list was dismissed.
>
> Is this confirmed ?
>
>
>
> Thx.
>
>
>
> A.
>
>
>
>
> --
>
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>

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

Re: [mapserver-users] ows_denied_ip_list is working ?

2019-07-30 Thread Andrea Peri
Hi,
I was using a compiled version from a recent clone of master .

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

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

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

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

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

A.


Il mar 30 lug 2019, 04:21 Lime, Steve D (MNIT)  ha
scritto:

> I will test and reply back. What specific version, config and tests did
> you try on your end?
> ------
> *From:* mapserver-users  on
> behalf of Andrea Peri 
> *Sent:* Saturday, July 27, 2019 9:02:07 AM
> *To:* mapserver-users@lists.osgeo.org 
> *Subject:* [mapserver-users] ows_denied_ip_list is working ?
>
>
> *This message may be from an external email source.*
> Do not select links or open attachments unless verified. Report all
> suspicious emails to Minnesota IT Services Security Operations Center.
>
>
>
> Hi,
> I see my version of mapserver don't work the ows_denied_ip_list.
> I see ths other mex:
>
> http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html
> <https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fosgeo-org.1560.x6.nabble.com%2Fows-allowed-ip-list-ows-denied-ip-list-not-working-td5202667.html=02%7C01%7Csteve.lime%40state.mn.us%7C90724c9fc7d94d42158308d7129b0d4e%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636998329472766840=TSVAPD7mBaTxr0tsTapcB8n7s7VJ%2BP%2B1hZ14zaEMndI%3D=0>
>
> I try all the same option but nothing is work.
>
> So I guess that instead that the ows_denied_ip_list was dismissed.
> Is this confirmed ?
>
> Thx.
>
> A.
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] ows_denied_ip_list is working ?

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

I try all the same option but nothing is work.

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

Thx.

A.


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

[mapserver-users] How set the getfeatureinfo to return a bbox geometry

2018-12-20 Thread Andrea Peri
Hi,

I have a dataset where the request is for a
GetMap request which return an image using the exact geometries of the
dataset.
But also a GetFeatureInfo request that as response to a GML format put a
geometry that is the BBOX and not the exactly geometry of the record
retrieved.

Unfortunatelly is not possible to disable the GetFeatureInfo request
because it useful it to retrieve (in a qgis environment) the alphanumeric
informations and also the BBOX to show where the feature is locate.

Is possible to have this result with mapserver ?

Thx,

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

Re: [mapserver-users] Do not find any on geomtype parameter

2018-06-21 Thread Andrea Peri
Hi,
sorry for noise.
It was in the wfs server section.

A.


2018-06-21 12:37 GMT+02:00 Andrea Peri :

> Hi, I don't find anything on "ows_geomtype" parameter in the docs.
>
> But I know it was exist and usable.
> Is it confirmed in last release ?
>
> Thx,
> A.
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



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

[mapserver-users] Do not find any on geomtype parameter

2018-06-21 Thread Andrea Peri
Hi, I don't find anything on "ows_geomtype" parameter in the docs.

But I know it was exist and usable.
Is it confirmed in last release ?

Thx,
A.



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

Re: [mapserver-users] How return a different result for different IPs

2018-03-06 Thread Andrea Peri
HiTom,

Thx for hint it seem really an interesting solution.

I dont know was possible to adjust the mapfle objet before executing it.

I search and find this doc

http://www.mapserver.org/ogc/mapscript.html

right it ?

Thx,
A.


2018-03-06 16:18 GMT+01:00 Kralidis, Tom (EC) <tom.krali...@canada.ca>:

> Hi Andrea:
>
> You could serve your WMS via MapScript which could intercept the
> request and adjust the mapfile object in memory before executing the
> response.
>
> We've done this with Python MapScript in implementing the WMS Best Practice
> for Time/Elevation, but there's no reason why the same approach couldn't
> work
> with processing IPs.
>
> Hope this helps.
>
> ..Tom
>
>
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On
> Behalf Of Andrea Peri
> Sent: 06 March 2018 10:12
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] How return a different result for different IPs
>
> Hi,
> I need to implement a wms mapserver service where from a layer.
> when done a GetFeatureInfo the system return a different geometry for
> differents IP address.
> More explicitly. It should return the exact geometry for some explicited
> IP address and return instead the Boundign Box for every other IP address.
>
> Actually the only one solution I know is implement a front-end filter that
> redirect to one wms service where the dataset is with bbox geometry only
> for some IP and redirect to another wms system where there s a dataset with
> exact geometries for specific IP addresses.
>
> But of course I like if there is a choice of solution inside the mapserver
> world.
>
> Any help is welcome.Thx,
> Andrea
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



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

[mapserver-users] How return a different result for different IPs

2018-03-06 Thread Andrea Peri
Hi,

I need to implement a wms mapserver service where from a layer.
when done a GetFeatureInfo the system return a different geometry for
differents IP address.
More explicitly. It should return the exact geometry for some explicited IP
address and return instead the Boundign Box for every other IP address.

Actually the only one solution I know is implement a front-end filter that
redirect to one wms service where the dataset is with bbox geometry only
for some IP and redirect to another wms system where there s a dataset with
exact geometries for specific IP addresses.

But of course I like if there is a choice of solution inside the mapserver
world.

Any help is welcome.Thx,
Andrea

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

[mapserver-users] LABEL_NO_CLIP comand with LINE geometries

2018-02-13 Thread Andrea Peri
Hi,
I' m try-ig to reproduce a chart with meridian and parallel using mapserver.

I have two dataset (meridian and parallel).
My trouble are with the position of the labels.

My need is to put the label on every side of the map.
To have this result I try to clip at runtime every time the meridian and
parallel geometries using the command

PROCESSING "LABEL_NO_CLIP=False"

And put the label using the command

POSITION ll .. and so on to have all the labels always on the contours of
the map for every meridian or parallel line.

But this seem do not work.

It seem that the PROCESSIING do not clip lines.

Perhaps it work only for POLYGONS ?

Many thx.

A.

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

Re: [mapserver-users] How add a point remotelly

2018-01-22 Thread Andrea Peri
Hi Steve,

I don't knew this feature .

It work and also it is possible to add also the PROJECTION tag.

Really thx for this help.

A.


2018-01-22 17:13 GMT+01:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:

> There are certain pieces of a mapfile that can be set via URL. Typically
> only values doing type validation in the parser. Anything else would
> require validation and some things are simply not mutable (which is where
> substitution comes in). This approach doesn't use substitution - you're
> actually passing a bit mapfile syntax. Something like this would work:
>
>
>   http://localhost/cgi-bin/mapserv?map=...['
> mypoint']=FEATURE+POINTS+100+100+END+END
>
>
> The variable name identifies the object being tweaked. The value is
> straight mapfile syntax. I'll have to look around a bit and see if I have
> any live examples on our site.
>
>
> --Steve
> --
> *From:* mapserver-users <mapserver-users-boun...@lists.osgeo.org> on
> behalf of Yves Jacolin <yves.jaco...@camptocamp.com>
> *Sent:* Monday, January 22, 2018 3:01:51 AM
> *To:* Andrea Peri
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] How add a point remotelly
>
> Hello Andrea,
>
> You can't, only few parameters can be used for such ontime subsitution,
> see the section: http://mapserver.org/cgi/runsub.html#parameters-supported
>
> Regards,
>
> Y.
>
> 2018-01-21 11:41 GMT+01:00 Andrea Peri <aperi2...@gmail.com>:
>
> Hi Jukka,
>
> Your is a good idea.
> I try it ,
>
> The fragment I try is this:
>
> TYPE POINT
> PROJECTION
>   "+init=epsg:3003"
> END
> EXTENT 153 4665000 180 495
> VALIDATION
>   'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
>   'default_coordinates' '165 480'
> END
> FEATURE
>   POINTS
> %coordinates%   <-- line 593 of my mapfile.
>   END
> END
>
>
> But unfortunally the mapserver report always the error.
>
> [Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier.
> Parsing error near (%):(line 593)
>
>
>
>
> 2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) <
> jukka.rahko...@maanmittauslaitos.fi>:
>
> I would try first with one variable %coordinates% for avoiding possible
> problem because of subsequent % signs.
>
> -Jukka Rahkonen-
> --
> Lähettäjä: Andrea Peri <aperi2...@gmail.com>
> Lähetetty: ‎21.‎1.‎2018 11:58
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How add a point remotelly
>
> Hi,
> Is possible to use the runtime-substitution to add a point into a map
> layer ?
>
> I try this, but it do error.
>
> FEATURE
>   POINTS
> %coord_est% %coord_north%
>
> The log report me: "unknow % char"
>
> Many thx.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Training and support manager
> Camptocamp France SAS
> Bâtiment le Dauphin - 1er étage
> 18 rue du Lac Saint André
> <https://maps.google.com/?q=18+rue+du+Lac+Saint+Andr%C3%A9=gmail=g>
> 73382 Le Bourget-du Lac
>
> Tel (France) : +33 4 58 48 20 43 <+33%204%2058%2048%2020%2043>
> Tel (Switzerland) : +41 21 619 10 43 <+41%2021%20619%2010%2043>
> Mob. : +33 6 18 75 42 21 <+33%206%2018%2075%2042%2021>
>
> email : yves.jaco...@camptocamp.com
> http://www.camptocamp.com
>



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

Re: [mapserver-users] How add a point remotelly

2018-01-21 Thread Andrea Peri
Hi Jukka,

Your is a good idea.
I try it ,

The fragment I try is this:

TYPE POINT
PROJECTION
  "+init=epsg:3003"
END
EXTENT 153 4665000 180 495
VALIDATION
  'coordinates' '^[-a-zA-Z0-9_.\=#\'&%() ]+$'
  'default_coordinates' '165 480'
END
FEATURE
  POINTS
%coordinates%   <-- line 593 of my mapfile.
  END
END


But unfortunally the mapserver report always the error.

[Sun Jan 21 11:36:26 2018].660 loadFeaturePoints(): Unknown identifier.
Parsing error near (%):(line 593)




2018-01-21 11:22 GMT+01:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> I would try first with one variable %coordinates% for avoiding possible
> problem because of subsequent % signs.
>
> -Jukka Rahkonen-
> ------
> Lähettäjä: Andrea Peri <aperi2...@gmail.com>
> Lähetetty: ‎21.‎1.‎2018 11:58
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How add a point remotelly
>
> Hi,
> Is possible to use the runtime-substitution to add a point into a map
> layer ?
>
> I try this, but it do error.
>
> FEATURE
>   POINTS
> %coord_est% %coord_north%
>
> The log report me: "unknow % char"
>
> Many thx.
>
> --
> -----
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



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

[mapserver-users] How use ogr provider with spatialite "read only" clause

2018-01-10 Thread Andrea Peri
Hi,
Usually we use the spatialite db as ordinary datasource for ours mapserver
wms.

Now I discovered that the last versions of spatialite always test
automatically the version of the DB sqlite and if verify that the db was
create using an older spatialite version.

TRY TO UPDATE the spatialite system tables WHEN the connection was closed.

This probably is a good strategy for an ordinary desktop application.
But more risk pendent when used on a mpaserver that could have more than
one connection open on the same DB sqlite.

To avoid this the standard solution used from the spatialite driver is to
check if the DB is open in READ-ONLY mode.

And avoid to write and update the db when it is in read-only mode.

So my trouble now is how the change the usual connection string in the
mapfile to say to the OGR driver to open the sqlite/spatialite using the
"read-only" mode.

Is this possible ?

Many thx

A.

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

Re: [mapserver-users] How choose the rigth geometry field

2018-01-06 Thread Andrea Peri
Hi,
I resolve it.

The trick was to define explicitly the geometry field used as "geometry".
Like this sample:

Table.rowid ad msFID, Table.geometry_other as geometry , Tablet.* from
table;

The trick is working because the alias for geometry was first in list of
fields of the other geometry field (even if named "geometry" himself).

Mapserver , the driver, use the first "geometry" named founded in field
list.

Regards,
A.


2018-01-06 8:49 GMT+01:00 Andrea Peri <aperi2...@gmail.com>:

> Hi, i have a spatialite.table where There are
> Teo geometry fields.
>
> Usually i use this sintax ti use the table.
>
> Table.rowid ad msFID, Tablet.* from tablet
>
> But now i have two fields with geometry.
> Is possible ti set mapserver to use one ?
>
> THX,
> A.
>
>


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

[mapserver-users] How choose the rigth geometry field

2018-01-05 Thread Andrea Peri
Hi, i have a spatialite.table where There are
Teo geometry fields.

Usually i use this sintax ti use the table.

Table.rowid ad msFID, Tablet.* from tablet

But now i have two fields with geometry.
Is possible ti set mapserver to use one ?

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

Re: [mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Andrea Peri
Hi Jukka.
It work !

I need to set a size widthxheight of 2x2 (mapserver seem don't work using
1x1)
and a X=Y=1
and a BBOX of 1 meters.

But the result is what I need.


Really thx !

A.


2017-12-14 14:32 GMT+01:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> Hi,
>
>
>
> -  use fixed i=1=1
>
> -  use fixed =2=2
>
> -  push the clicked coordinates as first parameters of =
>
> -  calculate x+1, y+1 for completing the BBOX
>
>
>
> I do not remember exactly if width and height can be 1 and BBOX just a
> point with MapServer, but 2x2 sized output and a real, small BBOX should
> works with all WMS servers.
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* mapserver-users [mailto:mapserver-users-
> boun...@lists.osgeo.org] *Puolesta *Andrea Peri
> *Lähetetty:* 14. joulukuuta 2017 14:00
> *Vastaanottaja:* mapserver-users@lists.osgeo.org
> *Aihe:* [mapserver-users] Retrieve the getfeatureinfo by point coords
>
>
>
> Hi,
>
> I know the GetFeatureInfo is retrieving the information of all the
> features available in a clicked point using the map extend (bbox) and the
> pixels references I,J
>
> I'm searching some workaround in mapserver to retrieve the same
> information of a GetFeatureInfo using the x,y coords.
>
>
>
> My need is to avoid to use the BBOX and the pixel I,J.
>
>
>
> I guess this is not available in wms specs. But with some custom parameter
> should it be possible.
>
> ?
>
>
>
> thx.
>
>
>
> --
>
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



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

[mapserver-users] Retrieve the getfeatureinfo by point coords

2017-12-14 Thread Andrea Peri
Hi,
I know the GetFeatureInfo is retrieving the information of all the features
available in a clicked point using the map extend (bbox) and the pixels
references I,J

I'm searching some workaround in mapserver to retrieve the same information
of a GetFeatureInfo using the x,y coords.

My need is to avoid to use the BBOX and the pixel I,J.

I guess this is not available in wms specs. But with some custom parameter
should it be possible.
?

thx.

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
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

[mapserver-users] A legend with the number of features

2017-08-28 Thread Andrea Peri
Hi,
I need to produce a legend from a GetLegendGraphics request froma
categorized rendering where there is a number of features for every
value.

Is this possible with mapserver ?

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

Re: [mapserver-users] Segfault - LINE layer

2017-08-18 Thread Andrea Peri
Hi, I guess the avoid of empty or null geometries should happened surely in
wms service.
Not sure It is good in wfs services.

A.

Il 18 Ago 2017 17:19, "Lime, Steve D (MNIT)"  ha
scritto:

Still it the code should gracefully skip empty geometries. Can you create a
ticket please?



*From:* mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] *On
Behalf Of *Dave Barter
*Sent:* Friday, August 18, 2017 9:56 AM
*To:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] Segfault - LINE layer







As a quick workaround edit your DATA:



where type in ('trunk','motorway','primary') AND geometry is not null



-Jukka Rahkonen-





That will not work as an empty geometry is not null



The fix is WHERE NOT ST_EMPTY(geometry)







*Lähettäjä:* mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org
] *Puolesta *Dave Barter
*Lähetetty:* 18. elokuuta 2017 16:05
*Vastaanottaja:* mapserver-users@lists.osgeo.org
*Aihe:* Re: [mapserver-users] Segfault - LINE layer





On 18 Aug 2017, at 13:44, Lime, Steve D (MNIT) 
wrote:



I'd call it a bug. What version? Can you prepare a small test case?



MapServer version 7.0.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



I have tracked it down to a specific geometry:-



010200 = ‘LINESTRING EMPTY’







--

*From:* mapserver-users  on behalf
of Dave Barter 
*Sent:* Friday, August 18, 2017 5:13:29 AM
*To:* mapserver-users@lists.osgeo.org
*Subject:* [mapserver-users] Segfault - LINE layer



This call:-

/usr/lib/cgi-bin/mapserv.ngx -nh "QUERY_STRING=map=/usr/src/
app/mapfiles/api/wms_osm_google_world_bw.map=
WMS=1.1.1=GetMap=WMS=&
BBOX=-6114.962263%2c6099063.360931%2c162657.996191%
2c6267836.319384=276=276=image%2fpng&
SRS=EPSG%3a3857=roads8=false

Is giving me:-

Segmentation fault (core dumped)

For the layer definition:-

LAYER
GROUP "default"
STATUS ON
TYPE LINE
MINSCALEDENOM 1300032
MAXSCALEDENOM 2600064
NAME "roads8"
DEBUG 5
CONNECTIONTYPE postgis
PROCESSING "CLOSE_CONNECTION=DEFER"
{%public_map_user%}
PROJECTION
"init=epsg:900913"
END
DATA "geometry from (select osm_id,geometry,name as name,ref,type from
mapping_osm.osm_new_roads_gen1 where type in ('trunk','motorway','primary')
order by z_order asc) as foo using unique osm_id using srid=900913"
LABELITEM "name"
CLASSITEM "type"
CLASS
EXPRESSION {primary,primary_link}
STYLE
WIDTH 0.5
COLOR 242 242 242
END
END
CLASS
EXPRESSION "motorway"
TEXT ("[ref]")
STYLE
   WIDTH 1
   OUTLINEWIDTH 0.5
   OUTLINECOLOR 217 217 217
END
STYLE
WIDTH 1
COLOR 242 242 242

END
END
CLASS
EXPRESSION "trunk"
TEXT ("[ref]")
STYLE
   WIDTH 1
   OUTLINEWIDTH 0.5
   OUTLINECOLOR 217 217 217
END
STYLE
WIDTH 1
 COLOR 242 242 242
END
END
END

When I look in my debug file I see the following as last set of lines:-

[Fri Aug 18 11:09:39 2017].945225 msPostGISReadShape: PQgetlength = 7
[Fri Aug 18 11:09:39 2017].945236 msPostGISReadShape: [type] "primary"
[Fri Aug 18 11:09:39 2017].945248 msPostGISReadShape: PQgetlength = 0
[Fri Aug 18 11:09:39 2017].945259 msPostGISReadShape: [name] ""
[Fri Aug 18 11:09:39 2017].945270 msPostGISReadShape: PQgetlength = 0
[Fri Aug 18 11:09:39 2017].945281 msPostGISReadShape: [ref] ""
[Fri Aug 18 11:09:39 2017].945292 msPostGISReadShape: Setting shape->index
= 307691570
[Fri Aug 18 11:09:39 2017].945303 msPostGISReadShape: Setting
shape->resultindex = 327
[Fri Aug 18 11:09:39 2017].945314 msPostGISReadShape: [index] 307691570
[Fri Aug 18 11:09:39 2017].945346 msPostGISReadShape: [shape] LINESTRING
(139231.1053743003285490 6233477.4797634640708566, 139274.7760105324559845
6233447.9814142314717174)
[Fri Aug 18 11:09:39 2017].945369 msPostGISLayerNextShape called.
[Fri Aug 18 11:09:39 2017].945383 msPostGISReadShape called.
[Fri Aug 18 11:09:39 2017].94

So it seems to segfault during  msPostGISReadShape.

I’ve checked the query and it is pulling 3110 linestrings from the database.


But I am not sure why is is segfaulting? Is this a bug?

Dave Barter
d...@phased.co.uk
@citizenfishy
www.phased.co.uk

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

Re: [mapserver-users] how remove the geometry from wfs response

2017-06-16 Thread Andrea Peri
Hi Even,

It work !

Now is possible for us to exclude the geometry from the response.

Really thx,
Andrea.


2017-06-16 12:25 GMT+02:00 Even Rouault <even.roua...@spatialys.com>:
> On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote:
>
>> Hi,
>
>> I need to force the remove from the wfs response of the geometry . I need
>
>> to avoid that the users could take the geometry and allow only the
>
>> alphanumeric attributes.
>
>> Is this allowed from mapserver ?
>
>
>
> Andrea,
>
>
>
> Digging into the code, I found that setting in the LAYER.METADATA
>
>
>
> "gml_geometries" "none"
>
>
>
> will do the job.
>
>
>
> This trick is used internally in particular to implement GetPropertyValue.
> But digging into history, I actually see it was done on purpose for
> GetFeature as well per
>
> https://github.com/mapserver/mapserver/issues/1718
>
>
>
> It is just that the documentation for it in is missing in
>
> http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in the
> regression suite as far as I can see, so lucky it still works.
>
>
>
> Note: this trick will only work for MapServer integrated GML output. OGR
> outputformat doesn't honour this setting.
>
>
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com



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

Re: [mapserver-users] how remove the geometry from wfs response

2017-06-16 Thread Andrea Peri
You have right I should wrote   ogr not spatialite.
We use always spatialite, but of course the driver is ogr.
A.

Il 16 Giu 2017 12:38, "Even Rouault" <even.roua...@spatialys.com> ha
scritto:

> On vendredi 16 juin 2017 12:34:30 CEST Andrea Peri wrote:
>
> > hi even, thx for hint.
>
> >
>
> > Could this trick work with wfs 2.0?
>
>
>
> Works will WFS 1.0.0, 1.1.0 and 2.0.0
>
>
>
> > it is the only mapserver wfs version with some optimization for
> spatialite.
>
>
>
> I don't recall the spatialite optimizations to be specific of a particular
> WFS version, but my memory can be wrong.
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] how remove the geometry from wfs response

2017-06-16 Thread Andrea Peri
hi even, thx for hint.

Could this trick work with wfs 2.0?
it is the only mapserver wfs version with some optimization for spatialite.

Il 16 Giu 2017 12:25, "Even Rouault" <even.roua...@spatialys.com> ha
scritto:

> On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote:
>
> > Hi,
>
> > I need to force the remove from the wfs response of the geometry . I need
>
> > to avoid that the users could take the geometry and allow only the
>
> > alphanumeric attributes.
>
> > Is this allowed from mapserver ?
>
>
>
> Andrea,
>
>
>
> Digging into the code, I found that setting in the LAYER.METADATA
>
>
>
> "gml_geometries" "none"
>
>
>
> will do the job.
>
>
>
> This trick is used internally in particular to implement GetPropertyValue.
> But digging into history, I actually see it was done on purpose for
> GetFeature as well per
>
> https://github.com/mapserver/mapserver/issues/1718
>
>
>
> It is just that the documentation for it in is missing in
>
> http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in
> the regression suite as far as I can see, so lucky it still works.
>
>
>
> Note: this trick will only work for MapServer integrated GML output. OGR
> outputformat doesn't honour this setting.
>
>
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] how remove the geometry from wfs response

2017-06-16 Thread Andrea Peri
Hi Jorg,

I know the spec allow to reduce the attribute returned.

The WFS spec give the parameter "propertyname" is possible to give a
list of attribute returned.
If in the propertyname is not list the "geometry" field it is not returned.

So the wfs can have a response without the geometry as allowed from
the wfs spec.

Also I know the mapserver allow to set and exclude some attribute to
avoid sensible information from the response using the
parameter "gml_exclude_items" and "ows_exclude_items".

Unfortunatelly the two parameter seem ignore the geometry field as field name.


A.


2017-06-16 8:56 GMT+02:00 Jörg Thomsen (WhereGroup)
<joerg.thom...@wheregroup.com>:
> Hello Andrea,
>
> Am 15.06.2017 um 20:22 schrieb Andrea Peri:
>> Hi,
>> I need to force the remove from the wfs response of the geometry . I
>> need to avoid that the users could take the geometry and allow only the
>> alphanumeric attributes.
>> Is this allowed from mapserver ?
>
> This is not the purpose of a WFS. A WFS-Client would expect a gemoemtry
> und couldn't handle the answer.
> You may use WMS-GetFeatureInfo with GML-Output.
>
> Regards, Jörg
>
>> Many thx,
>> Andrea
>>
>>
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> Viele Grüße,
> Jörg Thomsen
>
> --
>
> **
> AGIT 2017
> 5.-7. Juli 2017 in Salzburg
> Besuchen Sie uns an Stand Nr. 31
> www.agit.at
> **
>
> Jörg Thomsen
> WhereGroup GmbH & Co. KG
> Gillweg 3
> 14193 Berlin
> Germany
>
> Fon: +49 (0)30 / 5130 278 74
> Fax: +49 (0)30 / 89 09 53 21
>
> joerg.thom...@wheregroup.com
> www.wheregroup.com
> Amtsgericht Bonn, HRA 6788
> ---
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> ---
> Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

[mapserver-users] how remove the geometry from wfs response

2017-06-15 Thread Andrea Peri
Hi,
I need to force the remove from the wfs response of the geometry . I need
to avoid that the users could take the geometry and allow only the
alphanumeric attributes.
Is this allowed from mapserver ?
Many thx,
Andrea
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] A symbol like a string

2017-05-29 Thread Andrea Peri
Hi,
Reading the documentation I see that is possible to have a
symbol like a single character.
Like this example:

SYMBOL
  NAME "P"
  TYPE truetype
  FONT "arial"
  CHARACTER "P"
END # SYMBOL

But is possible to have a symbol with a string of more than 1 char ?

Something like this

SYMBOL
  NAME "code_aap"
  TYPE truetype
  FONT "arial"
  CHARACTER "AAP"
END # SYMBOL

I cannot use a Label because it is not reported in the legend.

Thx.


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

[mapserver-users] The SVG symbols are not accepted in a symbolset file

2017-05-27 Thread Andrea Peri
Hi,
I notice the definition of an SVG  SYMBOL  is not recognized if inside
a SYMBOLSET file.
Instead it is accepted and recognize if it is in the mapfile.

I try using this definition:

  SYMBOL
NAME "photo"
TYPE SVG
IMAGE "/path-to-svg-file/macchina-fotografica-blu.svg"
  END

I guess this could be an issue, but I like a confirm before to create it.

Thx,
Andrea.


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

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
Hi Tom,

thx for hint.
I forgot totally tht the onlineresource mapffile parameter was otionally.
Removeing it , the system work as I need.
Infact the mapserver retrieve the url from the request url.

Before of all I notice that the mapserver use before the

  "wms_service_onlineresource"
and if it is not available use the
"wms_onlineresource".

So I remove both and effectivelly the mapserver produce automatically the url.
It is what I need to support our two kind of portals protocols (http and https)

I notice only one residual problem.

In the wms_onlineresource parameter we put some extra parameter:

like (for example) the
map_resolution parameter

  "wms_onlineresource"
"http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm_resolution=91&;

we need it to increase the resolution of all the getmap request of the
qgis clients.
removing the wms_onlineresource mean that the getmap requests are all
resolved using the resolution 74dpi and this mean a lower quality
level.


The perfect solution so will be to hvae a postfix parameter to define
an append string for the urls.
Something like this:

"wms_onlineresource_postfix"  "_resolution=91&"

to have a result URL with added the string defined in the wms_onlineresource.

http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm_resolution=91;

A.



2017-05-03 1:31 GMT+02:00 Kralidis, Tom (EC) <tom.krali...@canada.ca>:
> What happens when you do _not_ set ows_onlineresource?  I think MapServer
> will automagically determine the URL?
>
>
>
>> -Original Message-
>> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On
>> Behalf Of Andrea Peri
>> Sent: 02 May 2017 18:26
>> To: Richard Greenwood
>> Cc: Mapserver-Users (mapserver-users@lists.osgeo.org)
>> Subject: Re: [mapserver-users] Allow request in http and https
>>
>> mmm...
>>
>> Perhaps for the resource-online url could be better a setting like:
>>
>> "ows_resourceonline"  "auto"
>>
>> Where "auto" mean that the mapserver retrieve the url (and the protocol used)
>> from the request url of the getcapability request.
>>
>> This was the better solution.
>> Infact if the client request on an https protocol it will return a 
>> capability files
>> with all the request in https.
>> And if the client request using an http protocol it will return a capability 
>> with
>> http protocol.
>>
>>
>>
>> 2017-05-02 21:14 GMT+02:00 Richard Greenwood
>> <richard.greenw...@gmail.com>:
>> > If you really have to have two different wms_onlineresource and if
>> > Steve's suggestion to leave out the protocol didn't work, then you
>> > could create two ows URLs and use the map file's INCLUDE directive to
>> > refer to the same map file just using different wms_onlineresource in the
>> two.
>> >
>> > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri <aperi2...@gmail.com>
>> wrote:
>> >>
>> >> Hi Jukka,
>> >> my trouble come from a webapplication using geotools lbrary.
>> >> Seem that the geotools when try to connect to a WFS server (and I
>> >> guess also to the WMS) start with a getcapabilities request and remap
>> >> the getmap using it.
>> >>
>> >>
>> >> We have many portal using http.
>> >> Now there is a new portal using https, and it should access to the
>> >> same wms services.
>> >>
>> >> So I have a portal using https that is using also http protocol.
>> >> As I understand the web browser refuse to allow an http request when
>> >> the father page is coming from an https request blocking them.
>> >>
>> >> A.
>> >>
>> >>
>> >> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML)
>> >> <jukka.rahko...@maanmittauslaitos.fi>:
>> >> > Hi,
>> >> >
>> >> > Actually your Mapserver will respond both to http and https
>> >> > requests if your network let them both come through. OnlineResourse
>> >> > has no effect at all for Mapserver, you can set it to
>> >> > http://foo@bar if you wish. But WMS clients may have difficulties
>> >> > if they really interpret the GetMap URL and use it for further
>> >> > operations. QGIS and OpenJUMP have an override for using the same
>> >> > base URL that was used for doing GetCapabililies and that might
>> >> > suit for your case. OpenLayers, Leaflet etc. don't even parse
>> GetCapabi

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
Hi Steve, thx for hint, I tested it, but unfortunatelly it not work well.

It seem dont work well with qgis 2.18.

The getcapabilities work, but when try to retrieve maps using getmap ,
it don't work.

of course it work if I check ignore getmap url, but not all the users
of our wmss know this option and are so skilled to understand what is
happening.


2017-05-02 15:16 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
> Can you use?
>
>
>   "wms_onlineresource" "//my-server/"
>
>
> Steve
>
> 
> From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of
> Andrea Peri <aperi2...@gmail.com>
> Sent: Tuesday, May 2, 2017 7:36:54 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Allow request in http and https
>
> Hi,
> I need to set a mapserver wms to responde both on an http url and on
> an https url.
>
> I try seting two time the
> wms_onlineresource value:
>
>   "wms_onlineresource" "http://my-server/;
>   "wms_onlineresource" "https://my-server/;
>
> But the getcapabilites response oonly the second value.
>
> Is possible to set two url in the wms_onlineresource  ?
>
> Many thx.
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
mmm...

Perhaps for the resource-online url could be better a setting like:

"ows_resourceonline"  "auto"

Where "auto" mean that the mapserver retrieve the url (and the
protocol used) from the request url of the getcapability request.

This was the better solution.
Infact if the client request on an https protocol it will return a
capability files with all the request in https.
And if the client request using an http protocol it will return a
capability with http protocol.



2017-05-02 21:14 GMT+02:00 Richard Greenwood <richard.greenw...@gmail.com>:
> If you really have to have two different wms_onlineresource and if Steve's
> suggestion to leave out the protocol didn't work, then you could create two
> ows URLs and use the map file's INCLUDE directive to refer to the same map
> file just using different wms_onlineresource in the two.
>
> On Tue, May 2, 2017 at 11:14 AM, Andrea Peri <aperi2...@gmail.com> wrote:
>>
>> Hi Jukka,
>> my trouble come from a webapplication using geotools lbrary.
>> Seem that the geotools when try to connect to a WFS server (and I
>> guess also to the WMS)
>> start with a getcapabilities request and remap the getmap using it.
>>
>>
>> We have many portal using http.
>> Now there is a new portal using https,
>> and it should access to the same wms services.
>>
>> So I have a portal using https that is using also http protocol.
>> As I understand the web browser refuse to allow an http request when
>> the father page is coming from an https request blocking them.
>>
>> A.
>>
>>
>> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML)
>> <jukka.rahko...@maanmittauslaitos.fi>:
>> > Hi,
>> >
>> > Actually your Mapserver will respond both to http and https requests if
>> > your network let them both come through. OnlineResourse has no effect at 
>> > all
>> > for Mapserver, you can set it to http://foo@bar if you wish. But WMS 
>> > clients
>> > may have difficulties if they really interpret the GetMap URL and use it 
>> > for
>> > further operations. QGIS and OpenJUMP have an override for using the same
>> > base URL that was used for doing GetCapabililies and that might suit for
>> > your case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and
>> > http://foo@bar is totally OK for them.
>> >
>> > -Jukka-
>> >
>> >
>> >
>> > -Alkuperäinen viesti-
>> > Lähettäjä: mapserver-users
>> > [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Andrea Peri
>> > Lähetetty: 2. toukokuuta 2017 15:37
>> > Vastaanottaja: mapserver-users@lists.osgeo.org
>> > Aihe: [mapserver-users] Allow request in http and https
>> >
>> > Hi,
>> > I need to set a mapserver wms to responde both on an http url and on an
>> > https url.
>> >
>> > I try seting two time the
>> > wms_onlineresource value:
>> >
>> >   "wms_onlineresource" "http://my-server/;
>> >   "wms_onlineresource" "https://my-server/;
>> >
>> > But the getcapabilites response oonly the second value.
>> >
>> > Is possible to set two url in the wms_onlineresource  ?
>> >
>> > Many thx.
>> >
>> >
>> > --
>> > -
>> > Andrea Peri
>> > . . . . . . . . .
>> > qwerty àèìòù
>> > -
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com



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

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
Hi Jukka,
my trouble come from a webapplication using geotools lbrary.
Seem that the geotools when try to connect to a WFS server (and I
guess also to the WMS)
start with a getcapabilities request and remap the getmap using it.


We have many portal using http.
Now there is a new portal using https,
and it should access to the same wms services.

So I have a portal using https that is using also http protocol.
As I understand the web browser refuse to allow an http request when
the father page is coming from an https request blocking them.

A.


2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi>:
> Hi,
>
> Actually your Mapserver will respond both to http and https requests if your 
> network let them both come through. OnlineResourse has no effect at all for 
> Mapserver, you can set it to http://foo@bar if you wish. But WMS clients may 
> have difficulties if they really interpret the GetMap URL and use it for 
> further operations. QGIS and OpenJUMP have an override for using the same 
> base URL that was used for doing GetCapabililies and that might suit for your 
> case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and 
> http://foo@bar is totally OK for them.
>
> -Jukka-
>
>
>
> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> Puolesta Andrea Peri
> Lähetetty: 2. toukokuuta 2017 15:37
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] Allow request in http and https
>
> Hi,
> I need to set a mapserver wms to responde both on an http url and on an https 
> url.
>
> I try seting two time the
> wms_onlineresource value:
>
>   "wms_onlineresource" "http://my-server/;
>   "wms_onlineresource" "https://my-server/;
>
> But the getcapabilites response oonly the second value.
>
> Is possible to set two url in the wms_onlineresource  ?
>
> Many thx.
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> _______
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
I don't know, but I will try it.
:)

Thx.

A.


2017-05-02 15:16 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
> Can you use?
>
>
>   "wms_onlineresource" "//my-server/"
>
>
> Steve
>
> 
> From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of
> Andrea Peri <aperi2...@gmail.com>
> Sent: Tuesday, May 2, 2017 7:36:54 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Allow request in http and https
>
> Hi,
> I need to set a mapserver wms to responde both on an http url and on
> an https url.
>
> I try seting two time the
> wms_onlineresource value:
>
>   "wms_onlineresource" "http://my-server/;
>   "wms_onlineresource" "https://my-server/;
>
> But the getcapabilites response oonly the second value.
>
> Is possible to set two url in the wms_onlineresource  ?
>
> Many thx.
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

[mapserver-users] Allow request in http and https

2017-05-02 Thread Andrea Peri
Hi,
I need to set a mapserver wms to responde both on an http url and on
an https url.

I try seting two time the
wms_onlineresource value:

  "wms_onlineresource" "http://my-server/;
  "wms_onlineresource" "https://my-server/;

But the getcapabilites response oonly the second value.

Is possible to set two url in the wms_onlineresource  ?

Many thx.


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

Re: [mapserver-users] What dependency for SVG symbols

2017-05-02 Thread Andrea Peri
Hi Jeff,

issue the ticket.

I like to know from you what you guess is preferrable to use for SVG
symbols , the Lib-cairo or the RSVG.

Thx.


2017-05-02 1:14 GMT+02:00 Jeff McKenna <jmcke...@gatewaygeomatics.com>:
> On 2017-05-01 6:16 PM, Andrea Peri wrote:
>>
>> Hi,
>> I testedthe svg work correctly using the RSVG.
>> So is wrong the documentation.
>>
>> Should I open a ticket ?
>>
>>
>
> Yes please, inside the /mapserver/docs/ repository.  (for MS4W I recently
> built libsvg and libsvg-cairo, but not RSVG)  -jeff
>
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] What dependency for SVG symbols

2017-05-01 Thread Andrea Peri
Hi,
I testedthe svg work correctly using the RSVG.
So is wrong the documentation.

Should I open a ticket ?


2017-05-01 23:21 GMT+02:00 Andrea Peri <aperi2...@gmail.com>:
> Hi,
> In the docs at page
> http://www.mapserver.org/mapfile/symbol.html
> is written:
>
> svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library.
>
> But if I set the libsvg-cairo lib
> the make report me an error:
>
> CMake Error at CMakeLists.txt:565 (message):
>WITH_SVGCAIRO cannot be enabled with WITH_RSVG
>
> So my question is if the RSVG is sufficient to use the SVG symbols
>
> Many thx.
>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

[mapserver-users] What dependency for SVG symbols

2017-05-01 Thread Andrea Peri
Hi,
In the docs at page
http://www.mapserver.org/mapfile/symbol.html
is written:

svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library.

But if I set the libsvg-cairo lib
the make report me an error:

CMake Error at CMakeLists.txt:565 (message):
   WITH_SVGCAIRO cannot be enabled with WITH_RSVG

So my question is if the RSVG is sufficient to use the SVG symbols

Many thx.




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

[mapserver-users] What dependency for SVG symbols

2017-05-01 Thread Andrea Peri
Hi,

In the docs of Mapserver,  at page
http://www.mapserver.org/mapfile/symbol.html
is written:

svg: scalable vector graphics (SVG) symbol. Requires the libsvg-cairo library.

But If I set the libsvg-cairo in compile setting the make report me



that this setting is not acceptable with the

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

Re: [mapserver-users] A trouble at validation level

2017-04-04 Thread Andrea Peri
Hi Stephen.
Thx a lot for hint.

The right string was this

'^[-a-zA-Z0-9_.\=#\'&%() ]+$'

It was necessary to put the "-" as first and protect the = and ' using
the \ char.

A.


2017-04-04 18:30 GMT+02:00 Stephen Woodbridge <wood...@swoodbridge.com>:
> Try this:
>
> (^[-a-zA-Z0-9_.=#'&%() ]+$)
>
> If you want '-' in the character class [] it must be the first char in the
> brackets otherwise it is interpreted as a range character. And you should
> not need to escape chars in the [] class with '\'
>
> -Steve
>
>
> On 4/4/2017 9:59 AM, Andrea Peri wrote:
>>
>> Thx Jukka.
>>
>> I see it.
>> But the log of mapserver report me that the same reg-expression is not
>> validation.
>> So this mean the mapserver is not using a real regular expression
>> validator ?
>>
>> [Tue Apr  4 15:54:19 2017].452382 msApplySubstitutions(): Regular
>> expression error. Parameter pattern validation failed.
>> [Tue Apr  4 15:54:19 2017].452433 layer (idtest): failed to validate
>> (procedimento=afa24052-7022-4147-96bc-0478ad0d8c6f) for regex
>> (^[a-zA-Z0-9\-_.\=#'&%() ]+$)
>>
>>
>>
>> A.
>>
>> 2017-04-04 16:53 GMT+02:00 Rahkonen Jukka (MML)
>> <jukka.rahko...@maanmittauslaitos.fi>:
>>>
>>> Hi,
>>>
>>> The online validator at http://www.regextester.com/ validates your string
>>> with your regexp.
>>>
>>> -Jukka Rahkonen-
>>>
>>> Andrea Peri wrote:
>>> [mapserver-users] A trouble at validation level
>>>
>>> Hi,
>>> I have an error try-ing to validate this string:
>>> afa24052-7022-4147-96bc-0478ad0d8c6f
>>>
>>> The mapserver log return me this error message:
>>>
>>> [Tue Apr  4 15:22:06 2017].223708 layer (idtest): failed to validate
>>> (procedimento=afa24052-7022-4147-96bc-0478ad0d8c6f) for regex
>>> (^[a-zA-Z0-9\-_.\=#'&% ]+$)
>>>
>>> I'm not so skill on regexp, and i'm not able to understand why it is not
>>> validated.
>>>
>>> My mapfile fragment is this:
>>>
>>> VALIDATION
>>>   'procedimento' '^[a-zA-Z0-9\-_.\=#\'&%() ]+$'
>>>   'default_procedimento' '0'
>>> END
>>>
>>> Many thx to everyone.
>>>
>>> --
>>> -
>>> Andrea Peri
>>> . . . . . . . . .
>>> qwerty àèìòù
>>> -
>>> ___
>>> 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



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

Re: [mapserver-users] A trouble at validation level

2017-04-04 Thread Andrea Peri
Thx Jukka.

I see it.
But the log of mapserver report me that the same reg-expression is not
validation.
So this mean the mapserver is not using a real regular expression validator ?

[Tue Apr  4 15:54:19 2017].452382 msApplySubstitutions(): Regular
expression error. Parameter pattern validation failed.
[Tue Apr  4 15:54:19 2017].452433 layer (idtest): failed to validate
(procedimento=afa24052-7022-4147-96bc-0478ad0d8c6f) for regex
(^[a-zA-Z0-9\-_.\=#'&%() ]+$)



A.

2017-04-04 16:53 GMT+02:00 Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi>:
> Hi,
>
> The online validator at http://www.regextester.com/ validates your string 
> with your regexp.
>
> -Jukka Rahkonen-
>
> Andrea Peri wrote:
> [mapserver-users] A trouble at validation level
>
> Hi,
> I have an error try-ing to validate this string:
> afa24052-7022-4147-96bc-0478ad0d8c6f
>
> The mapserver log return me this error message:
>
> [Tue Apr  4 15:22:06 2017].223708 layer (idtest): failed to validate
> (procedimento=afa24052-7022-4147-96bc-0478ad0d8c6f) for regex 
> (^[a-zA-Z0-9\-_.\=#'&% ]+$)
>
> I'm not so skill on regexp, and i'm not able to understand why it is not 
> validated.
>
> My mapfile fragment is this:
>
> VALIDATION
>   'procedimento' '^[a-zA-Z0-9\-_.\=#\'&%() ]+$'
>       'default_procedimento' '0'
> END
>
> Many thx to everyone.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] Define an End-Time attribute in WMS Time

2017-02-26 Thread Andrea Peri
I see it.

You have right infact I could define something like:

wms_dimensionlist: = start_date, end_date
wms_start_date_item= time
wms_end_date_item= time
wms_start_date_extent= "1900/01/01"
wms_end_date_extent= "2999/01/01"
wms_start_date_default=current
wms_end_date_default=current

This could be a solution on wms server side, but on client side it
need to have a wms client able to understant wms-dimension.
Actually my client interface is able to recognize and use a wms-time
but not able to recognize and use correctly a wms-dimensional from
getcapabilities.
:(

A.


2017-02-27 7:48 GMT+01:00 Emanuele Di Giacomo <edigiac...@arpae.it>:
> Hi Andrea,
> if you need two datetime attributes for each feature (in your example,
> for each county), you can use custom dimensions
> http://mapserver.org/ogc/wms_dimension.html.
>
> Emanuele
>
>
> On Sun, Feb 26, 2017 at 6:32 PM, Andrea Peri <aperi2...@gmail.com> wrote:
>> Hi Jeff.
>>
>> I was understanding the wms_timeextend as defined in the annex C3 of OGC.
>> AFAIK it is the domains of availability for the values in the
>> time-field in all the dataset
>>
>> But is always one only attribute. This is ok for spot events. Instead
>> when there is a dataset where every feature is a start-date and an
>> end-date  of validity for every single feature of dataset.
>>
>> As example:
>> the dataset of county boundaries. Sometime the county bounaries could
>> change so they have a startdate and an enddate.
>> So is need to define both: the end-date and the start-date using two
>> attribute fields.
>>
>> I wrong to understand the wms_timeextend ?
>>
>> Thx,
>> A.
>>
>>
>> 2017-02-26 17:29 GMT+01:00 Jeff McKenna <jmcke...@gatewaygeomatics.com>:
>>> Hi Andrea,
>>>
>>> The possible WMS Time parameters for MapServer are documented at:
>>> http://mapserver.org/ogc/wms_time.html  There is a "wms_timeextent"
>>> parameter that sets the possible start/end time range, but I am not sure if
>>> I am understanding your question fully.
>>>
>>>
>>> -jeff
>>>
>>>
>>> --
>>> Jeff McKenna
>>> MapServer Consulting and Training Services
>>> http://www.gatewaygeomatics.com/
>>>
>>>
>>>
>>> On 2017-02-26 11:58 AM, Andrea Peri wrote:
>>>>
>>>> Hi,
>>>> I need to define a WMS Time for using on an our dataset.
>>>> But I need colud define also a End-Time attribute. Because a single
>>>> feature has a
>>>> start-time validity and an end-time validity.
>>>>
>>>> Searching for some workaround on internet, I see that this option
>>>> (start-time and end-time of validity for a feature) is allowed in
>>>> geoserver.
>>>>
>>>>
>>>> http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions
>>>>
>>>> So I hope it could be done also possible in mapserver.
>>>>
>>>> Thx.
>>>>
>>>>
>>>
>>>
>>> ___
>>> mapserver-users mailing list
>>> mapserver-users@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

Re: [mapserver-users] Define an End-Time attribute in WMS Time

2017-02-26 Thread Andrea Peri
Hi Jeff.

I was understanding the wms_timeextend as defined in the annex C3 of OGC.
AFAIK it is the domains of availability for the values in the
time-field in all the dataset

But is always one only attribute. This is ok for spot events. Instead
when there is a dataset where every feature is a start-date and an
end-date  of validity for every single feature of dataset.

As example:
the dataset of county boundaries. Sometime the county bounaries could
change so they have a startdate and an enddate.
So is need to define both: the end-date and the start-date using two
attribute fields.

I wrong to understand the wms_timeextend ?

Thx,
A.


2017-02-26 17:29 GMT+01:00 Jeff McKenna <jmcke...@gatewaygeomatics.com>:
> Hi Andrea,
>
> The possible WMS Time parameters for MapServer are documented at:
> http://mapserver.org/ogc/wms_time.html  There is a "wms_timeextent"
> parameter that sets the possible start/end time range, but I am not sure if
> I am understanding your question fully.
>
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 2017-02-26 11:58 AM, Andrea Peri wrote:
>>
>> Hi,
>> I need to define a WMS Time for using on an our dataset.
>> But I need colud define also a End-Time attribute. Because a single
>> feature has a
>> start-time validity and an end-time validity.
>>
>> Searching for some workaround on internet, I see that this option
>> (start-time and end-time of validity for a feature) is allowed in
>> geoserver.
>>
>>
>> http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions
>>
>> So I hope it could be done also possible in mapserver.
>>
>> Thx.
>>
>>
>
>
> _______
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



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

[mapserver-users] Define an End-Time attribute in WMS Time

2017-02-26 Thread Andrea Peri
Hi,
I need to define a WMS Time for using on an our dataset.
But I need colud define also a End-Time attribute. Because a single
feature has a
start-time validity and an end-time validity.

Searching for some workaround on internet, I see that this option
(start-time and end-time of validity for a feature) is allowed in
geoserver.

http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#data-webadmin-layers-edit-dimensions

So I hope it could be done also possible in mapserver.

Thx.


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

[mapserver-users] How format the time field in a wms time

2017-02-16 Thread Andrea Peri
Hi,
I'm try-ing to set a wms time service.

I notice the samples reported in documention are always using the "-"
char to separate year,month and day.

So a date could be express as:
2017-02-16

Is possible to use the "/" as separator between year,month and day ?

example:  2017/02/16

I try but with no success, but hope Im missing some setting.

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

Re: [mapserver-users] Mapserver seem change the line size in raster dataset

2017-01-13 Thread Andrea Peri
Hi Jukka.

This is a direct getmap over our wms

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owstopoweb=1.3.0_resolution=91=true=rt_topoweb.800k.rt==EPSG:25832=WMS=GetMap=image/png=563561.9927077,4809257.3212631,817953.27072102,4878814.3834541=1302=356

The raster is setting with this layer mapfile:


  OUTPUTFORMAT
NAME "AGGA"
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGBA#serve RGBA per avere il trasparente
FORMATOPTION "GAMMA=0.75"
FORMATOPTION "INTERLACE=OFF"
FORMATOPTION "QUANTIZE_DITHER=OFF"
FORMATOPTION "COMPRESSION=6"  # Compression: 0=no compression,
9=best, 6=default compression
FORMATOPTION "QUANTIZE_FORCE=ON"
FORMATOPTION "QUANTIZE_COLORS=256"
   TRANSPARENT ON
  END

  LAYER
NAME "rt_topoweb.800k.rt"
STATUS OFF
EXTENT 153 4665000 180 495
TYPE raster
TILEINDEX '/path-to-shapefile indexfile/index_tiled'
TILEITEM 'location'
PROJECTION
  "+init=epsg:3003"
END
PROCESSING "BANDS=1,2,3"
PROCESSING "NODATA=0"
PROCESSING "LOAD_WHOLE_IMAGE=YES"
PROCESSING "RESAMPLE=AVERAGE"
PROCESSING "OVERSAMPLE_RATIO=4.0"
# ... other standard raster processing functions here
METADATA
  "wms_title" "TopoWEB 800k"
  "wms_extent" "153 4665000 180 495"
  "wms_abstract" "Carta Topografica in scala 1:25.000"
  "wms_layer_group" "/rt_topoweb.rt"
END
MAXSCALEDENOM 500
MINSCALEDENOM 60
# the color index for transparent
OFFSITE 0 0 0
# the global opacity (100=full opaque)
OPACITY 100
  END


2017-01-13 11:17 GMT+01:00 Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi>:
> Hi,
>
> What is included in "any setting I know on mapserver"? Could you show a link 
> to some raster, together with the LAYER from your mapfile?
>
> -Jukka Rahkonen-
>
> Andrea Peri wrote:
> [mapserver-users] Mapserver seem change the line size in raster dataset
>
> Hi, I have a raster dataset to publish on internet using mapserver wms.
> This dataset is a rasterization of some thematic datasets.
>
> After publish it, I notice a difference between the map returned from 
> mapserver and reproduced on qgis and the map reproduced using qgis accessing 
> directly the same raster.
>
> I try any setting I know on mapserver but without be able to obtain the same 
> image.
>
> To show the diffrence I capture the screenshot of both as visible on qgis:
>
> This is the sample of the raster on qgis retrieve from mapserver wms:
> https://www.dropbox.com/s/464cg3c91b5twpz/from-mapserver-scale80.gif?dl=0
>
> This instead is the sample of the raster on qgis retrieve directly from the 
> raster accessed directly from qgis.
> https://www.dropbox.com/s/ai9p3ntnkcmp9zt/from-qgis-scale80.gif?dl=0
>
> The colors are the same, the difference is in the lines. That qgis desktop 
> version has the lines more defined instead the mapserver version has lines 
> reduced.
>
> Any hint is welcome,
> Thx
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> 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

[mapserver-users] Mapserver seem change the line size in raster dataset

2017-01-10 Thread Andrea Peri
Hi, I have a raster dataset to publish on internet using mapserver wms.
This dataset is a rasterization of some thematic datasets.

After publish it, I notice a difference between the map returned from
mapserver and reproduced on qgis and the map reproduced using qgis
accessing directly the same raster.

I try any setting I know on mapserver but without be able to obtain
the same image.

To show the diffrence I capture the screenshot of both as visible on qgis:

This is the sample of the raster on qgis retrieve from mapserver wms:
https://www.dropbox.com/s/464cg3c91b5twpz/from-mapserver-scale80.gif?dl=0

This instead is the sample of the raster on qgis retrieve directly
from the raster accessed directly from qgis.
https://www.dropbox.com/s/ai9p3ntnkcmp9zt/from-qgis-scale80.gif?dl=0

The colors are the same, the difference is in the lines. That qgis
desktop version has the lines more defined instead the mapserver
version has lines reduced.

Any hint is welcome,
Thx


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

Re: [mapserver-users] Mapserver 7.0.3 and disabling default extent for WFS

2016-12-19 Thread Andrea Peri
Hi jukka,
The time low differenze could be to the use of a geopackage SQLite Instead
of a spatialite SQLite ?

A.

Il 19 dic 2016 23:34, "Rahkonen Jukka (MML)" <
jukka.rahko...@maanmittauslaitos.fi> ha scritto:

> If I set "wfs_use_default_extent_for_getfeature" "yes"
>
> I  see a difference
>
> [Tue Dec 20 00:28:37 2016].113723 msOGRFileWhichShapes: Setting spatial
> filter to -1e+300 -1e+300 1e+300 1e+300
>
> [Tue Dec 20 00:28:48 2016].950696 msOGRFileNextShape: Returning shape=9,
> tile=0
>
>
>
> However, this change does not make is fast, notice 11 seconds between
> WhichShapes and Next shape.
>
>
>
> -Jukka-
>
>
>
> *Lähettäjä:* Even Rouault [mailto:even.roua...@spatialys.com]
> *Lähetetty:* 20. joulukuuta 2016 0:27
> *Vastaanottaja:* mapserver-users@lists.osgeo.org
> *Kopio:* Rahkonen Jukka (MML) 
> *Aihe:* Re: [mapserver-users] Mapserver 7.0.3 and disabling default
> extent for WFS
>
>
>
> On lundi 19 décembre 2016 21:46:32 CET Rahkonen Jukka (MML) wrote:
>
> > Hi,
>
> >
>
> > I am running Mapserver 7.0.3, I have a vector layer from a quite large
>
> > GeoPackage through OGR connection and I have set the LAYER METADATA item
>
> > "wfs_use_default_extent_for_getfeature" "no"
>
> >
>
> > Still if I query GetFeature simply with =1 I can see that the
> default
>
> > extent is used msOGRFileWhichShapes: Setting spatial filter to
> 19969.9
>
> > 6597277.9 749676.1 7785300.1 This makes count based request
>
> > pretty slow and it take about 15 second to get the first feature.
>
> >
>
> > The documentation in http://mapserver.org/ogc/wfs_server.html says that
> this
>
> > option is supported "since MapServer 7.0.3" . So what could be wrong?
>
>
>
> Jukka,
>
>
>
> thanks for spotting my brain damage...
>
>
>
> In fact there are 2 issues :
>
> - a minor one: the debug message "Setting spatial filter..." was always
> displayed, even when the spatial filter wasn't applied
>
> - a major one: the logic to interpret the yes/no value of the setting was
> inverted (only when it is explicitly set fortunately, so that doesn't break
> existing mapfiles without the metadata item). I've fixed that, and thus
> modified the doc to advertize the feature only in 7.0.4. I guess I didn't
> notice that since I mixed it with other optimizations.
>
>
>
> Even
>
>
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.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] Searching documents on PROCESSING RESAMPLE

2016-12-01 Thread Andrea Peri
Thx. !

2016-12-01 10:43 GMT+01:00  <lars.schylb...@blixtmail.se>:
> You find it here:
>
> http://mapserver.org/input/raster.html#special-processing-directives
>
> /Lars S.
>
> -Originalmeddelande-
>> Från: "Andrea Peri" <aperi2...@gmail.com>
>> Till: mapserver-users@lists.osgeo.org
>> Datum: 2016-12-01 10:36
>> Ämne: [mapserver-users] Searching documents on PROCESSING RESAMPLE
>>
>> Hi,
>> I'm using the comand
>> PROCESSING "RESAMPLE=AVERAGE"
>> In a raster layer.
>>
>> It work and produce a good result,
>> Npw I like to know better how it work and if there is some other
>> option for RESAMPLE.
>>
>> But I dont' find no ne help about the resample processing command in the
>> docs.
>>
>> Is it documented ?
>>
>> Many thx.
>>
>> A.
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> 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



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

[mapserver-users] Searching documents on PROCESSING RESAMPLE

2016-12-01 Thread Andrea Peri
Hi,
I'm using the comand
PROCESSING "RESAMPLE=AVERAGE"
In a raster layer.

It work and produce a good result,
Npw I like to know better how it work and if there is some other
option for RESAMPLE.

But I dont' find no ne help about the resample processing command in the docs.

Is it documented ?

Many thx.

A.

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

[mapserver-users] wfs_allowed_ip_list/wfs_denied_ip_list is still working ?

2016-11-01 Thread Andrea Peri
Hi,
Is the wfs_allowed/denied_ip_list still working in the last mapserver
dev version ?

I try to set the "allowed" to an nexistent ip to test a reject
request, but instead I' having a getfeature response.

Before to open a ticket, I like to have a confirm of this.
Thx.

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

Re: [mapserver-users] Retrieve the featureid info in a GetFeatureInfo GML response

2016-10-06 Thread Andrea Peri
I resolved defining an alias named "featureid".

  "gml_msFID_alias" "featureid"
  "ows_msFID_alias" "featureid"

Regards,
A.


2016-10-06 12:43 GMT+02:00 Andrea Peri <aperi2...@gmail.com>:
> HI,
> I need to add to the GML 2 output of a GetFeatureInfo response the
> "featureid" standard attribute.
>
> I try to use both:
>
>   "ows_featureid" "field1"
>   "gml_featureid" "field1"
>
> But they seem to work only for WFS response not for the WMS
> GetFeatureInfo response.
>
> Also my datasource is a spatialite so I set this output:
>
>   OUTPUTFORMAT
> NAME "OGRGML"
> MIMETYPE "text/gml"
> DRIVER "OGR/GML"
> FORMATOPTION "STORAGE=filesystem"
> FORMATOPTION "FORM=multipart"
> FORMATOPTION "FILENAME=result.dat"
> FORMATOPTION "DSCO:FORMAT=GML2"
>   END
>
> And in the metadata section:
>
>   "wms_feature_info_mime_type" "text/gml,text/html,text/plain"
>
>
>
> Any hint is welcome.
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

[mapserver-users] Retrieve the featureid info in a GetFeatureInfo GML response

2016-10-06 Thread Andrea Peri
HI,
I need to add to the GML 2 output of a GetFeatureInfo response the
"featureid" standard attribute.

I try to use both:

  "ows_featureid" "field1"
  "gml_featureid" "field1"

But they seem to work only for WFS response not for the WMS
GetFeatureInfo response.

Also my datasource is a spatialite so I set this output:

  OUTPUTFORMAT
NAME "OGRGML"
MIMETYPE "text/gml"
DRIVER "OGR/GML"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=multipart"
FORMATOPTION "FILENAME=result.dat"
FORMATOPTION "DSCO:FORMAT=GML2"
  END

And in the metadata section:

  "wms_feature_info_mime_type" "text/gml,text/html,text/plain"



Any hint is welcome.


-- 
-
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
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 <aperi2...@gmail.com>:
> 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 <aperi2...@gmail.com>:
>> 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 <aperi2...@gmail.com>:
>>> 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 <aborr...@gmail.com>:
>>>> 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 <aperi2...@gmail.com>:
> 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 <aperi2...@gmail.com>:
>> 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 <aborr...@gmail.com>:
>>> 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 <aperi2...@gmail.com>:
> 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 <aborr...@gmail.com>:
>> 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 <aborr...@gmail.com>:
> 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 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

Re: [mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend

2016-09-16 Thread Andrea Peri
It is done using two layer. Mutually exclusive each other for scale
and grouped using the "wms_layer_group" setting.

  LAYER
NAME "rt_ofc.10k88"
STATUS OFF
EXTENT 545379 4673155 776461 4927945
TYPE raster
TILEINDEX '/path-to/raster/ofc_1988_10k_bn/tiff_tiled/index_tiled'
TILEITEM 'location'
PROCESSING "BANDS=1"
PROCESSING "NODATA=0"
METADATA
  "wms_title" "OFC 1988"
  "wms_abstract" "..."
  "wms_layer_group" "/rt_ofc.10k88"
END
MAXSCALEDENOM 128100
MINSCALEDENOM 1
# the color index for transparent
OFFSITE 0 0 0
# the global opacity (100=full opaque)
OPACITY 100
  END
#-
  LAYER
NAME "rt_ofc.10k88.lite"
STATUS OFF
EXTENT 545379 4673155 776461 4927945
TYPE raster
TILEINDEX '/path-to/ofc_1988_10k_bn/tiff_tiled_lite_version/index_tiled'
TILEITEM 'location'
PROCESSING "BANDS=1"
PROCESSING "NODATA=0"
# ... other standard raster processing functions here
METADATA
  "wms_title" "OFC 1988 Lite"
  "wms_abstract" "..."
  "wms_layer_group" "/rt_ofc.10k88"
  "ows_enable_request" "!GetCapabilities"
END
MAXSCALEDENOM 500
MINSCALEDENOM 128100
# the color index for transparent
OFFSITE 0 0 0
# the global opacity (100=full opaque)
OPACITY 100
  END
#-
  LAYER
NAME "rt_ofc.10k88.qu"
STATUS OFF
TYPE POLYGON
EXTENT 545379 4673155 776461 4927945
DATA '/home/raster/ofc_1988_10k_bn/tiff_tiled/index_tiled'
PROJECTION
  "init=epsg:25832"
END
METADATA
  "wms_title" "OFC 1988 Quadro di unione"
  "wms_extent" "545379.0 4673155.0 776461.0 4927945.0"
  "wms_abstract" "..."
  "wms_bbox_extended" "true"
  "ows_include_items" "all"
  "gml_include_items" "all"
  "ows_enable_request" "*"
  "gml_geometries" "GEOMETRY"
  "ows_geomtype" "MultiPolygon"
  "gml_geometry_type" "multipolygon"
  "gml_types"   "none"
  "gml_PK_UID_type" "int"
END
    MAXSCALEDENOM 500
MINSCALEDENOM 1
OPACITY 100
PROCESSING "APPROXIMATION_SCALE=FULL"
CLASS
  NAME 'Quadro unione ofc 1988'
  TEXT '[NAME]'
  LABEL

  END
  STYLE

  END

END
  END

2016-09-16 19:08 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
> Indeed it does - interesting feature! What does the layer definition for 
> rt_ofc.10k88 look like?
>
> -Original Message-
> From: Andrea Peri [mailto:aperi2...@gmail.com]
> Sent: Friday, September 16, 2016 9:55 AM
> To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend
>
> The question s about the legend retrieved from qgis using a
> getlegendgraphic request when add a wms to a canvas.
> The trouble is issuing when the ortophoto is grouped using a
> "wms_layer_group" setting and has no any style defined in it.
>
> As example, you can you try to connect to our mapserver wms of
> ortophotos using the last qgis 2.16 or 2.14.5 ?
>
> This is the url:
> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc
> and the layer to choose is the "rt_ofc.10k88"
>
> As you can see the qgis will retrieve ALL the legends of ALL the
> vector layers available in the same wms service.
> I don't understand if the wrong response is from mapserver or from
> qgis that wrongly require the legend to the parent layer, rretrieving
> so all the legends from all the layers availables.
>
> A.
>
> And add to a empty canvas the
>
> 2016-09-16 16:35 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
>> Hi Andrea: I guess I'm not sure exactly what you're asking. With 
>> latest/greatest QGIS raster WMS layers (e.g. aerial photos) show up fine in 
>> the QGIS legend if I have a KEYIMAGE set in the layer object. --Steve
>>
>> -Original Message-
>> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
>> Behalf Of Andrea Peri
>> Sent: Thursday, September 08, 2016 8:11 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend
>>
>> Hi post here a response from the qgis-user list about a question on
>> the GetLegendGraphics.
>> With th

Re: [mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend

2016-09-16 Thread Andrea Peri
The question s about the legend retrieved from qgis using a
getlegendgraphic request when add a wms to a canvas.
The trouble is issuing when the ortophoto is grouped using a
"wms_layer_group" setting and has no any style defined in it.

As example, you can you try to connect to our mapserver wms of
ortophotos using the last qgis 2.16 or 2.14.5 ?

This is the url:
http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc
and the layer to choose is the "rt_ofc.10k88"

As you can see the qgis will retrieve ALL the legends of ALL the
vector layers available in the same wms service.
I don't understand if the wrong response is from mapserver or from
qgis that wrongly require the legend to the parent layer, rretrieving
so all the legends from all the layers availables.

A.

And add to a empty canvas the

2016-09-16 16:35 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
> Hi Andrea: I guess I'm not sure exactly what you're asking. With 
> latest/greatest QGIS raster WMS layers (e.g. aerial photos) show up fine in 
> the QGIS legend if I have a KEYIMAGE set in the layer object. --Steve
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
> Behalf Of Andrea Peri
> Sent: Thursday, September 08, 2016 8:11 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend
>
> Hi post here a response from the qgis-user list about a question on
> the GetLegendGraphics.
> With the last version of qgis, when try to add in qgis a layer wms of
> kind RASTER the qgis retrieve the legend OF ALL the layer available in
> the service.
> I guess this was a bug. But instead as the qgis guys response me seem
> to be a right action.
> The question seem that a layer wms should aALWAYS return a style. So
> the question I guess is more interesting for the mapserver list:
> A WMS LAYER of kind IMAGE (a catalogue of ortophoto as example) should
> always have a style ?
>
> (sorry for long thread repost, but I guess is better to post all the
> discussion to help understand)
>
> Thx,
>
> Andrea.
>
>
> 2016-09-08 14:45 GMT+02:00 Richard Duivenvoorde <rdmaili...@duif.net>:
>>
>> Hi Andrea,
>>
>> note that I also added a comment at the code which is reponsible for this:
>>
>> https://github.com/qgis/QGIS/commit/69bed218373b3f93671f65bc3d02c45cbf683a48#comments
>>
>> Patrick's response there on this (see comment):
>>
>> "
>> IMHO, there is nothing to fix in QGIS, here. If a layer defines no
>> style, it's wanted that it inherits the parent layer's style. Have a
>> look at chapter 7.2.4.6.5 of the WMS implementation specification:
>>
>> Style declarations are inherited by child Layers. A child shall not
>> redefine a Style with the same Name as one
>> inherited from a parent. A child may define a new Style with a new Name
>> that is not available for the parent Layer.
>>
>> This PR is just a workaround for MapServer that is defining a style
>> named default for both the parent and the child layers. This was making
>> QGIS show 2 default styles for every child layers. Style inheritance was
>> already there before. Now at has just a saner behavior in regard to
>> non-standard compliant servers.
>>
>> I'll let you forward that to the user ML. I was not subscribed to it and
>> therefore cannot reply directly to the thread.
>> "
>>
>> So in short: mapserver does not define a style for the actual layer, so
>> qgis tries to get the style (AND it's legendgraphic) from the parent
>> layer/node:
>>
>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc=GetCapabilities=WMS
>>
>> in this case mapserver's rootnode, which has a legendgraphic with all
>> child symbols...
>>
>> so my fix would be: define a style for the child layer 'rt_ofc.10k54',
>> so I do not think it has something to do with the dot in the naming?
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>>
>> On 03-09-16 20:42, aperi2007 wrote:
>>> Hi Richard,
>>>
>>>
>>> I tested also the QGIS 2.8 and the QGIS 2.12 no one of them has this issue.
>>>
>>>>Bingo: that is the one we are actually retrieving, the parent node's
>>>
>>>> style and legend.
>>>>
>>>> So: not sure if that is desired behaviour... at least not for a legend..
>>>
>>> Ok, now is more clear what is happened.
>>>
>>> The "rt_ofc" is the name of all the wms service.
>>> So apply-ing the value "rt_ofc" to the

[mapserver-users] Fwd: [Qgis-user] Wrong retrieving of wms legend

2016-09-08 Thread Andrea Peri
ion=1.1.0=rt_ofc.10k54=image/png=default&=true
>>>
>>>
>>> NOTE, I edited: layer=rt_ofc.10k54
>>>
>>> Mmm, not much of an legend, but as least NOT an image of all (vector)
>>> layer legends...
>>>
>>> So crux is: IF a layer parameter has a dot in it's name, only the first
>>> part is used as parameter
>>>
>>> BUT: what is the GetLegendGraphic url advertised by the server:
>>>
>>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc=GetCapabilities=WMS
>>>
>>>
>>> Mmm, actually no style/LegendURL advertised :-(
>>>
>>> https://github.com/qgis/QGIS/blob/master/src/providers/wms/qgswmsprovider.cpp#L249
>>>
>>>
>>> points to pickLegend:
>>>
>>> https://github.com/qgis/QGIS/blob/master/src/providers/wms/qgswmsprovider.cpp#L227
>>>
>>>
>>> which looks ok:
>>>
>>> BUT apparently it picks the style of the PARENT-NODE of the layer: THAT
>>> one has
>>>
>>> >> xlink:href="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc_resolution=91=ita=1.3.0=WMS=GetLegendGraphic_version=1.1.0=rt_ofc=image/png=default"/>
>>>
>>>
>>> Bingo: that is the one we are actually retrieving, the parent node's
>>> style and legend.
>>>
>>> So: not sure if that is desired behaviour... at least not for a legend..
>>>
>>> I think what QGIS does is 'inheriting' default styles from parent nodes.
>>> In this case that is plain wrong.
>>>
>>> Copy/paste this in an QGIS issue?
>>>
>>> Maybe for the getLegend url, the style should not be inherited?
>>> Anybody other ideas?
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>>
>>>
>>> On 03-09-16 16:08, Andrea Peri wrote:
>>>> Hi Richard.
>>>> Effectivelly I tested your wms and using it the legend is correctly
>>>> retrieved only for the layer choose.
>>>> I use qgis 2.16.1.
>>>> After I re-test my original url:
>>>> (this)
>>>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc
>>>>
>>>>
>>>> And again I see the qgis retrieve ALL the legend of all the layers.
>>>> I tested other wms of our set of wms service and seem only this has
>>>> that problem.
>>>>
>>>> So I do some more proof tested.
>>>>
>>>> And found where is the ISSUE.
>>>> QGIS wrong to get the legend when the layer wms requested HAS NOT A
>>>> LEGEND.
>>>> Infact the issu happened when I ask any layer of our wms that is a
>>>> RASTER LAYER with no legend defined.
>>>> Instead not happened when the layer wms is of a vector dataset (where
>>>> the legend happened).
>>>>
>>>> SO If you whould test and see the issue you should use our wms service:
>>>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc
>>>>
>>>>
>>>> and choose the layer
>>>> rt_ofc.1954
>>>>
>>>> that return the orthophoto imagery of the year 1954.
>>>> With this layer the qgis will retrieve ALL the legends of the wms
>>>> service.
>>>>
>>>> Instead if you choose the layer
>>>> rt_ofc.1954.qu
>>>> that is a vector dataset (quadre of union)
>>>> qgis correctly retrieve only its own legend.
>>>>
>>>> Please can you confirm this ?
>>>>
>>>> Thx
>>>>
>>>> A.
>>>>
>>>>
>>>>
>>>>
>>>> 2016-09-03 9:51 GMT+02:00 Richard Duivenvoorde <rdmaili...@duif.net>:
>>>>> On 31-08-16 21:10, Andrea Peri wrote:
>>>>>> Hi,
>>>>>> I notive that in the qgis 2.14.5 and in the qgis 2.16.1
>>>>>> when adding a layer wms choosing from a list of layers available in
>>>>>> the wms service connected,
>>>>>> qgis retrieve as legend of the layer ALL the legends of all the wms
>>>>>> layer available in the wms service.
>>>>>> Using the 2.8 QGIS version, the legend is retrieve correctly (only the
>>>>>> layer choosed).
>>>>>>
>>>>>> Someone can confirm this as an issue ?
>>>>> Hi Andrea,
>>>>>
>>>>> nope, I have 2.16.1 here, and for example this wms:
>>>>>
>>>>> https://geodata.nationaalgeoregister.nl/bestuurlijkegrenzen/ows?SERVICE=WMS;
>>>>>
>>>>>
>>>>> I can choose either provincies or landsgrenzen (provinces or country
>>>>> borders), from that same server and both have their own legend.
>>>>>
>>>>> Do you have a WMS url for which this happens for you?
>>>>>
>>>>> What if you look at the capabilities of that service and do the
>>>>> getLegendGrapicRequest by hand. Is it also wrong?
>>>>>
>>>>> Else: create a good issue, with url's screendumps etc etc
>>>>>
>>>>> Regards,
>>>>>
>>>>> Richard Duivenvoorde
>>>>>
>>>>
>>>>
>>
>> ___
>> Qgis-user mailing list
>> qgis-u...@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>



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

[mapserver-users] Need understand better some usual log messages

2016-09-08 Thread Andrea Peri
Hi,
try-ing to have a better configuration of my mapfiles,  I see many
times these 4 categories of messages in my logs:

 msQueryByRect(): Search returned no results. No matching record(s) found.

 msWMSLoadGetMapParams(): WMS server error. At least one layer name
required in LAYERS

msWMSLoadGetMapParams(): WMS server error. Invalid values for BBOX.

msOGRFileOpen(): Falling back to MapServer only evaluation

I'm not really sure what they mean.

The first:
" msQueryByRect(): Search returned no results. No matching record(s) found."

I guess is coming from an extern wrong request so is not a
configuration problem.

The second:
" msWMSLoadGetMapParams(): WMS server error. At least one layer name
required in LAYERS"

Also this, I guess, is generate by a wrong external request so it
should not be a mapfile configuration problem.

The third:
"msWMSLoadGetMapParams(): WMS server error. Invalid values for BBOX."

I really don't understand is this come from an external request or is
a wrong setting in my mapfile.

The fourth:
"msOGRFileOpen(): Falling back to MapServer only evaluation"

Idont' know what this mean.

Any hint is welcome.
Thx,

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

[mapserver-users] GetFeatureInfo wrongly return Linestring instead of Multilinestring

2016-08-24 Thread Andrea Peri
Hi,
I have a line dataset and need to have a GetFeatureInfo response in GML.

To force the return of kind MultiLinestring I set in the mapfile the
two parameters:

  "gml_geometries" "GEOMETRY"
  "gml_GEOMETRY_type" "MULTILINESTRING"

But it seem to have no effect.
Infact when try to do a request like this:

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owsrisorseidriche=1.3.0_resolution=91=WMS=image%2Fpng=GetFeatureInfo=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt_LAYERS=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt=_COUNT=50=583=1580=EPSG:3003=1.1.1=TRUE=921=389=1697920.3158407%2C4792974.7259495%2C1753220.4264409%2C4813309.7666195_FORMAT=text%2Fgml

I have a set of feature where some are MultiLinestring but one is LINESTRING.
Also the xsd has in it defined a geometrytype = LINESTRING instead of
MultiLinestring.

This cause a validation error in client because the XSD say
"linestring", but the gml has multilinestring and linestrings results.

Am I using wrongly the two parameters:

  "gml_geometries" "GEOMETRY"
  "gml_GEOMETRY_type" "MULTILINESTRING"

or is an issue ?

Thx for any info.

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

Re: [mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset

2016-08-23 Thread Andrea Peri
Hi Jeff,
Thx for help,I resolved it.
:)
It was effectivelly a problem of our client gis
:(
not of mapserver.
:)

I don't remenber of the cache problem of qgis.
:(

Andrea.


2016-08-23 19:23 GMT+02:00 Jeff McKenna <jmcke...@gatewaygeomatics.com>:
> Hi Andrea,
>
> I have tested a GetFeatureInfo (through a query in QGIS 2.16) with
>
>   TOLERANCE 50
>   TOLERANCEUNITS pixels
>
> and it correctly returns text query results with a large radius.  I would
> note that if you are also testing through QGIS, there is a nasty 'feature'
> in the 2.x releases where I must manually delete my cache, if I want to see
> changes in any of my WMS services (for example, after I change my mapfile I
> must delete the contents of the QGIS cache folder).
>
> I am using MS4W 3.1.4 (MapServer 7.0.1).
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 2016-08-23 12:14 PM, Andrea Peri wrote:
>>
>> Hi,
>> I have a line dataset and need to allow an easy GetFeatureInfo over the
>> lines.
>> actually is extremely hard for an user to be able to click exactly
>> over the line and retrieve the Information of the feature.
>>
>> So I need to increase the tollerance to the point click.
>> I see from documentation that there is the two values:
>> "tolerance" and "tolerance units",
>> So i try to set both them
>>
>> TOLERANCE 10.0
>> TOLERANCEUNITS pixels
>>
>> But no effect seem to have.
>>
>> Perhaps I understand wrongly to mean of "tolerance"
>>
>> Thx for every info.
>>
>
>
>
> ___
> 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] How increase the tolerance for GetFeatureInfo over a line dataset

2016-08-23 Thread Andrea Peri
Hi,

The entire mapfile is quite huge, but this is the layer section of
mapfile relatively to the linear dataset:

  LAYER
NAME "rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt"
STATUS OFF
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "/path-to-dataset/zz_db_risorse_idriche.sqlite"
DATA "SELECT ROWID AS msFID, * FROM RW_FIUMI_CANALI"
PROCESSING 'NATIVE_FILTER=( "intersected" = "SI" )'
EXTENT 153 4665000 180 495
PROJECTION
  "init=epsg:3003"
END
METADATA
  "ows_title" "corpi idrici superficiali "
  "ows_abstract" "Scala di visualizzazione wms 1:1 - 1:5.000.000"
  "ows_extent" "153 4665000 180 495"
  "wms_bbox_extended" "true"
  "wms_enable_request" "*"
  "ows_include_items" "all"
  "gml_include_items" "all"
  "gml_featureid" "msFID"
  "ows_featureid" "msFID"
  "gml_geometries" "GEOMETRY"
  "gml_geometry_type" "multilinestring"
  "gml_types"   "none"
  "gml_PK_UID_type" "int"
  "wms_getfeatureinfo_formatlist" "OGRGML" # necessario per
recuperare il GML da OGR-GDAL con GetFeatureInfo
  "wfs_enable_request" "*"
  "wfs_getfeature_formatlist"
"application/shapefile,application/spatialite,text/xml;subtype=gml/3.1.1"
END
TEMPLATE 'ogrgml'  #con l'opzione void rimando al tipo output
(template-driven)
MAXSCALEDENOM 500
MINSCALEDENOM 1
OPACITY 100
PROCESSING "APPROXIMATION_SCALE=FULL"
CLASSGROUP "default"
LABELCACHE on
# tolerance e' necessario per il GetFeatureInfo su wms
TOLERANCE 10.0
TOLERANCEUNITS pixels
#
CLASS
  NAME ' '
  GROUP 'default'
  MAXSCALEDENOM 500
  MINSCALEDENOM 1
  STYLE
 WIDTH 0.3
 COLOR '#1E90FF'
 ANTIALIAS false
 OPACITY 100
 MAXSCALEDENOM 500
 MINSCALEDENOM 1
  END
END
  END


A.


2016-08-23 17:20 GMT+02:00 Rahkonen Jukka (MML)
<jukka.rahko...@maanmittauslaitos.fi>:
> That should work. Show a bit more about your mapfile so that others can
> reproduce easier.
>
> - Jukka Rahkonen-
> 
> Lähettäjä: Andrea Peri
> Lähetetty: ‎23.‎8.‎2016 18:15
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How increase the tolerance for GetFeatureInfo over a
> line dataset
>
> Hi,
> I have a line dataset and need to allow an easy GetFeatureInfo over the
> lines.
> actually is extremely hard for an user to be able to click exactly
> over the line and retrieve the Information of the feature.
>
> So I need to increase the tollerance to the point click.
> I see from documentation that there is the two values:
> "tolerance" and "tolerance units",
> So i try to set both them
>
> TOLERANCE 10.0
> TOLERANCEUNITS pixels
>
> But no effect seem to have.
>
> Perhaps I understand wrongly to mean of "tolerance"
>
> Thx for every info.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
> ___
> 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

[mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset

2016-08-23 Thread Andrea Peri
Hi,
I have a line dataset and need to allow an easy GetFeatureInfo over the lines.
actually is extremely hard for an user to be able to click exactly
over the line and retrieve the Information of the feature.

So I need to increase the tollerance to the point click.
I see from documentation that there is the two values:
"tolerance" and "tolerance units",
So i try to set both them

TOLERANCE 10.0
TOLERANCEUNITS pixels

But no effect seem to have.

Perhaps I understand wrongly to mean of "tolerance"

Thx for every info.

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

Re: [mapserver-users] How avoid overlapping of label between two distinct layers

2016-08-09 Thread Andrea Peri
Hi Steve,

I try setting

position auto

and test the results.

Thx for hint.

A.


2016-08-09 14:31 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>:
> Are you setting a fixed position (e.g. CC)? You can try AUTO and MapServer 
> will try different placements to avoid collisions. --Steve
> 
> From: mapserver-users [mapserver-users-boun...@lists.osgeo.org] on behalf of 
> Andrea Peri [aperi2...@gmail.com]
> Sent: Tuesday, August 09, 2016 7:28 AM
> To: thomas bonfort
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] How avoid overlapping of label between two 
> distinct layers
>
> HI Thomas,
> Yes, I put the FORCE=true.
> But setting
> FORCE=false,
> mapserver will remove the label overlapping.
>
> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca=1.3.0=true=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt=default%2Cdefault=EPSG%3A25832=WMS=GetMap=image%2Fpng=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872=824=267
>
>
> 2016-08-09 14:10 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
>> Mapserver will prevent label coliding by default unless you force it
>> to do otherwise. I suspect that in your case one of the layers is
>> either not using a labelcache, set to FORCE, or is a client WMS layer
>> for which your own mapserver has no control/knowledge of label
>> positions.
>>
>> --
>> thomas
>>
>> On 9 August 2016 at 14:06, Andrea Peri <aperi2...@gmail.com> wrote:
>>> Hi,
>>> I need to avoid the overlapping of labels between two layers.
>>>
>>> To do this I try to set the BUFFER option in both layers, but I see it
>>> seem don't work as I expected.
>>> Perhaps the buffer is working only for label of same layers ?
>>>
>>> This is a sample of actual overlapping:
>>>
>>> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca=1.3.0_resolution=91=true=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt=default%2Cdefault=EPSG%3A25832=WMS=GetMap=image%2Fpng=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872=824=267
>>>
>>> In both layers I set:
>>> LABELCACHE on
>>>...
>>>   LAYER
>>>...
>>> CLASS
>>>  .
>>>   LABEL
>>> TEXT 'Sottoambito [sottoambit]'
>>> TYPE TRUETYPE
>>> BUFFER 5
>>>    
>>>
>>> Thx.
>>>
>>>
>>> --
>>> -
>>> Andrea Peri
>>> . . . . . . . . .
>>> qwerty àèìòù
>>> -
>>> ___
>>> 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



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

Re: [mapserver-users] How avoid overlapping of label between two distinct layers

2016-08-09 Thread Andrea Peri
HI Thomas,
Yes, I put the FORCE=true.
But setting
FORCE=false,
mapserver will remove the label overlapping.

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca=1.3.0=true=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt=default%2Cdefault=EPSG%3A25832=WMS=GetMap=image%2Fpng=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872=824=267


2016-08-09 14:10 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
> Mapserver will prevent label coliding by default unless you force it
> to do otherwise. I suspect that in your case one of the layers is
> either not using a labelcache, set to FORCE, or is a client WMS layer
> for which your own mapserver has no control/knowledge of label
> positions.
>
> --
> thomas
>
> On 9 August 2016 at 14:06, Andrea Peri <aperi2...@gmail.com> wrote:
>> Hi,
>> I need to avoid the overlapping of labels between two layers.
>>
>> To do this I try to set the BUFFER option in both layers, but I see it
>> seem don't work as I expected.
>> Perhaps the buffer is working only for label of same layers ?
>>
>> This is a sample of actual overlapping:
>>
>> http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca=1.3.0_resolution=91=true=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt=default%2Cdefault=EPSG%3A25832=WMS=GetMap=image%2Fpng=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872=824=267
>>
>> In both layers I set:
>> LABELCACHE on
>>...
>>   LAYER
>>...
>> CLASS
>>  .
>>   LABEL
>> TEXT 'Sottoambito [sottoambit]'
>> TYPE TRUETYPE
>> BUFFER 5
>>
>>
>> Thx.
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> 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

[mapserver-users] How avoid overlapping of label between two distinct layers

2016-08-09 Thread Andrea Peri
Hi,
I need to avoid the overlapping of labels between two layers.

To do this I try to set the BUFFER option in both layers, but I see it
seem don't work as I expected.
Perhaps the buffer is working only for label of same layers ?

This is a sample of actual overlapping:

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owscacciapesca=1.3.0_resolution=91=true=rt_cacciapesca.sottoambito_atc_2015.rt%2Crt_cacciapesca.atc_2015.rt=default%2Cdefault=EPSG%3A25832=WMS=GetMap=image%2Fpng=672896.00367533,4847223.6202292,680026.94491189,4849534.2528872=824=267

In both layers I set:
LABELCACHE on
   ...
  LAYER
   ...
CLASS
 .
  LABEL
TEXT 'Sottoambito [sottoambit]'
TYPE TRUETYPE
BUFFER 5
   

Thx.


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

Re: [mapserver-users] feature_id not found as wfs feature_id in a spatialite db

2016-07-18 Thread Andrea Peri
Hi Even,
Your workaround is work and is perfect for me.

Thx,

A.


2016-07-18 10:02 GMT+02:00 Even Rouault <even.roua...@spatialys.com>:
> Andrea,
>
>> I like to understand why mapserver seem don't recognize a field that
>> is primary key as feature_id field.
>
> The issue is that PK_UID is recognized by OGR as the field for the OGR
> featureid and thus not exposed as an item to MapServer. One way to workaround
> this is to make the PK_UID field available as a regular field with a SELECT
>
> For example, like this :
>
>   NAME towns
>   DATA "SELECT ROWID as msFID, * FROM towns"
>   CONNECTIONTYPE OGR
>   CONNECTION "./data/db.sqlite"
>   METADATA
> "ows_title" "towns"
> "wfs_featureid" "msFID"
> "gml_exclude_items" "msFID"
> "gml_include_items" "all"
> "gml_types" "auto"
>   END
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com



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

[mapserver-users] feature_id not found as wfs feature_id in a spatialite db

2016-07-18 Thread Andrea Peri
Hi,
I have a dataset in a spatialite and try to set a wfs 2.0.0 service.

It seem work all ok but

I have this warning:



The result of thi warning is that the gml feture as numberes as this:
.1
.2
.3

Not really beautiful.
:(



This is my mapfile setting:
  "wfs_featureid" "PK_UID"

And I verify that the PK_UID field is an integer and primary key fied
in my spatialite table.

I like to understand why mapserver seem don't recognize a field that
is primary key as feature_id field.

Any hint is welcome.
Thx,

Andrea


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

Re: [mapserver-users] How exclude some items in a text/plain response for a GetFeatureInfo request

2016-07-13 Thread Andrea Peri
Thx Thomas,
is what I'm searching.


2016-07-13 18:27 GMT+02:00 thomas bonfort <thomas.bonf...@gmail.com>:
> wms_exclude_items
>
> --
> thomas
>
> On 13 July 2016 at 18:25, Andrea Peri <aperi2...@gmail.com> wrote:
>> Hi,
>> Doing a GetFeatureInfo request,
>> I notice the
>> gml_exclude_items for exclude some items from response
>> is working only for GML response.
>> But if the request is for a text/plain response it return always all the 
>> items.
>> There is a command to exclude some items from a text response ?
>>
>> Thx,
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> 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

[mapserver-users] How exclude some items in a text/plain response for a GetFeatureInfo request

2016-07-13 Thread Andrea Peri
Hi,
Doing a GetFeatureInfo request,
I notice the
gml_exclude_items for exclude some items from response
is working only for GML response.
But if the request is for a text/plain response it return always all the items.
There is a command to exclude some items from a text response ?

Thx,


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

[mapserver-users] What molteplicity for wms_metadataurl_href info

2016-04-07 Thread Andrea Peri
Hi,

I try to set the mapserver to return two or more values for

"wms_metadataurl_format" "text/html"
"wms_metadataurl_href" "http://.url to html page"
"wms_metadataurl_type" "TC211"
"wms_metadataurl_format" "text/xml"
"wms_metadataurl_href" "http://.url to xml page"
"wms_metadataurl_type" "TC211"
"wms_metadataurl_format" "text/pdf"
"wms_metadataurl_href" "http://.url to pdf page"
"wms_metadataurl_type" "TC211"

But the getcapablites return always one only value.

text/htmlhttp://www502.regione.toscana.it/geometa/html/06_CCP_PIT_20150327.html"/>

AFAIK the ogc specs will allow to return more than one value.

I'm wrong on specs or this is an issue of mapserver ?

Thx.

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

Re: [mapserver-users] Tinyows exchange coords when POST request.

2016-03-29 Thread Andrea Peri
Hi,
I'm evaluting some wfs softwares to start a wfs transactionally with
writable capabilities.

After some test sessions using geoserver.

I start to test the tinyows and notice a strange question about the
reversing of axis.

I send some email and exchange opinion with Olivier and Jukka.
After this I stopthe testing because need to do another urgetn work.
Now I need to restart the question of what wfs use for our service.

So I restart on tinyows and try to understand better the question of
reversing axis.

So I notice that the tinyows will return the list of srs in URN format
in the getcapabilities.
This a very complicated question because the clients will return the
values listesd in the capabilities.
And if the capabilities report always a reversed format, the result
will be ALWAYS in reversed format.
:(

I notice infact that when call for a getcapabilities from a tinyows.

http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS=1.1.0=GetCapabilities

It return always the srs of the layers always using the urn notation:

urn:ogc:def:crs:EPSG::3003urn:ogc:def:crs:EPSG::25832urn:ogc:def:crs:EPSG::4326urn:ogc:def:crs:EPSG::3857urn:ogc:def:crs:EPSG::6707

And this mean that the client will send a request using the same notation.
But these mean also , as reported me from Olivier, thattinyows will
return always the axis reversed.

This is a sample of a call with a correct axis order:
http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS=1.1.0=GetFeature=sita:idstradertline=1=EPSG:3003

http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?service=WFS=1.1.0=GetFeature=sita:idstradertline=1=urn:ogc:def:crs:EPSG::3003

So I need to understand of the reversing axis in tinyows is a bug
patchable or a standardized response.
And also I need to understand if is right that the getcapabilites will
return the srs list always in URN format .

Any hint on this ?

Thx.

A.



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

Re: [mapserver-users] Tinyows exchange coords when POST request.

2016-03-15 Thread Andrea Peri
Hi,
thx to Olivier. I understand that the TinyOWS has a rule inherited from OGC that
when the srs is in short version (ie: EPSG:3003) the axis are not reversed.
Instead when the srs is with long form (ie:
urn:x-ogc:def:crs:EPSG:3003) the axis are always reversed.

A last question I have is about the input.
Infact this rule seem to be supported also in input request.
So when the srs is espressed in the request in long form , I guess,
the cocordinates should be given in reversed order.
But instead tinyows seem to accept instead the coordinate in not
reversed axis order.

I post a sample :

This is the post example:

http://www.regione.toscana.it/;
xmlns:ogc="http://www.opengis.net/ogc;
xmlns:wfs="http://www.opengis.net/wfs;
xmlns:ows="http://www.opengis.net/ows;
xmlns:xlink="http://www.w3.org/1999/xlink;
xmlns:gml="http://www.opengis.net/gml; handle="GeoTools 11.4 WFS
DataStore" maxFeatures="10" outputFormat="text/xml; subtype=gml/3.1.1"
resultType="results" service="WFS" version="1.1.0">
 
  

 geometry
 
  
   
1625601.65 4842775.06 1696384.15 4842775.06
1696384.15 4871929.04 1625601.65 4871929.04 1625601.65
4842775.06
   
  
 

  
 



That is callable using this curl call:

curl -H "Content-Type: text/xml" -0 -X POST -d @req2.xml
"http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs;

As noticeable.
The request has the coords in not reversed order, the srs is in the
long form, and the response is with coords in reversed order.
I guess the tinyows should accept the coords in reversed order to be
totally coherent with the rule that the long srs form will reverse
axis.

Any thought ?


2016-03-14 17:00 GMT+01:00 Andrea Peri <aperi2...@gmail.com>:
> Hi,
> I experience this issue.
>
> When asking to the tinyows a getfeature with an intersects with a
> polygon and returning in epsg:3003 it return the result with the right
> axis order if the request is done with GET method.
> Instead it return exchange coords if the request is in POST method.
>
> Is know this issue ?
>
> Thx.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



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

[mapserver-users] Tinyows exchange coords when POST request.

2016-03-14 Thread Andrea Peri
Hi,
I experience this issue.

When asking to the tinyows a getfeature with an intersects with a
polygon and returning in epsg:3003 it return the result with the right
axis order if the request is done with GET method.
Instead it return exchange coords if the request is in POST method.

Is know this issue ?

Thx.

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

Re: [mapserver-users] Add a validation block using python mapscript

2016-01-14 Thread Andrea Peri
Hi Thomas,
Thx for reply, I don't know this sintax.

I try this:

theLayer = clone_map.getLayer(li)
tempValidation = "VALIDATION 'idtpn' '^[a-zA-Z0-9\-_#]+$'
'default_idtpn' '%' END"
theLayer.updatefromstring(tempValidation)

But it return an error:

Traceback (most recent call last):
  File "generatore_mapfile_istat.py", line 192, in 
theLayer.updatefromstring(tempValidation)
  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
ne 1385, in 
__getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
ne 54, in _swig_getattr
raise AttributeError(name)
AttributeError: updatefromstring

A.


2016-01-14 10:38 GMT+01:00 thomas bonfort <thomas.bonf...@gmail.com>:
> if there is no mapscript interface for VALIDATION you can always use
>
> layer->updatefromstring("VALIDATION etc END")
>
> --
> thomas
>
> On 14 January 2016 at 10:33, Andrea Peri <aperi2...@gmail.com> wrote:
>>
>> Hi,
>>
>> Is possible , using the python mapscript add a block for validation like
>> this ?
>>
>> VALIDATION
>>   'idtpn' '^[a-zA-Z0-9\-_#]+$'
>>   'default_idtpn' '%'
>> END
>>
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> 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

[mapserver-users] Add a validation block using python mapscript

2016-01-14 Thread Andrea Peri
Hi,

Is possible , using the python mapscript add a block for validation like this ?

VALIDATION
  'idtpn' '^[a-zA-Z0-9\-_#]+$'
  'default_idtpn' '%'
END


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

Re: [mapserver-users] Add a validation block using python mapscript

2016-01-14 Thread Andrea Peri
Thx Thomas ,
I find the right function name.
It is
updateFromString()
now the function is callable, but have another kind of error:

Traceback (most recent call last):
  File "generatore_mapfile_istat.py", line 192, in 
theLayer.updateFromString(tempValidation)
  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
ne 1568, in updateFromString
def updateFromString(self, *args): return _mapscript.layerObj_updateFromStri
ng(self, *args)
EOFError: loadLayer(): Premature End-of-File.

A.


2016-01-14 11:18 GMT+01:00 thomas bonfort <thomas.bonf...@gmail.com>:
> mapscript is camelcase
>
> On 14 January 2016 at 10:51, Andrea Peri <aperi2...@gmail.com> wrote:
>>
>> Hi Thomas,
>> Thx for reply, I don't know this sintax.
>>
>> I try this:
>>
>> theLayer = clone_map.getLayer(li)
>> tempValidation = "VALIDATION 'idtpn' '^[a-zA-Z0-9\-_#]+$'
>> 'default_idtpn' '%' END"
>> theLayer.updatefromstring(tempValidation)
>>
>> But it return an error:
>>
>> Traceback (most recent call last):
>>   File "generatore_mapfile_istat.py", line 192, in 
>> theLayer.updatefromstring(tempValidation)
>>   File
>> "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
>> ne 1385, in 
>> __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
>>   File
>> "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
>> ne 54, in _swig_getattr
>> raise AttributeError(name)
>> AttributeError: updatefromstring
>>
>> A.
>>
>>
>> 2016-01-14 10:38 GMT+01:00 thomas bonfort <thomas.bonf...@gmail.com>:
>> > if there is no mapscript interface for VALIDATION you can always use
>> >
>> > layer->updatefromstring("VALIDATION etc END")
>> >
>> > --
>> > thomas
>> >
>> > On 14 January 2016 at 10:33, Andrea Peri <aperi2...@gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> Is possible , using the python mapscript add a block for validation
>> >> like
>> >> this ?
>> >>
>> >> VALIDATION
>> >>   'idtpn' '^[a-zA-Z0-9\-_#]+$'
>> >>   'default_idtpn' '%'
>> >> END
>> >>
>> >>
>> >> --
>> >> -
>> >> Andrea Peri
>> >> . . . . . . . . .
>> >> qwerty àèìòù
>> >> -
>> >> ___
>> >> 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

[mapserver-users] How set a color with alpha channel using python mapscript

2016-01-01 Thread Andrea Peri
Hi,

Is this sintax wrong ?

msColor = mapscript.colorObj()
msColor.setHex("#1632645f")

I'm having this error from python mapscript:

>MapServerError: setHex(): General error message. Invalid hex color.

Many thx and Happy new year 2016 to everyone.

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

Re: [mapserver-users] How setting the legend color from mapscript

2015-11-27 Thread Andrea Peri
Hi,
thx for reply.

I mean the separate one legend image as callable using a
GetLegendGraphics request.
My python code is this:

msMap.legend.keysizex=15
msMap.legend.keysizey=20
msMap.legend.keyspacingx=3
msMap.legend.keyspacingy=3
legendColor = mapscript.colorObj(255,255,255,0)
msMap.legend.imagecolor=legendColor
msMap.legend.status = mapscript.MS_OFF
msMap.legend.postlabelcache = mapscript.MS_TRUE
labelLegend = mapscript.labelObj()
labelLegend.type = mapscript.MS_TRUETYPE
labelLegend.size = 7
msMap.legend.label = labelLegend

A.


2015-11-28 5:17 GMT+01:00 CzendaZdenda <tramt...@seznam.cz>:
> Hi,
>
> do you mean legend at a map? Or the separate one legend image
> (msMap.drawLegend())? If the problem is just in the map legend, then do you
> use something like this?:
>
> msMap.outputformat.transparent = 1 # or mapscript.MS_ON
>
> If yes, try to comment it.
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5238920.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

[mapserver-users] A getfeatureinfo using a buffer around the query point

2015-11-16 Thread Andrea Peri
Hi,

Is possible in mapserver to have a GetFeaturenfo using a buffer to
locate the features ?

I know this is not available in wms specs.
Infact it come from an application with geoserver.

http://docs.geoserver.org/stable/en/user/services/wms/reference.html

buffer: width of search radius around query point.

And I need to port it to mapserver.

Thx.

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

[mapserver-users] How set the extent programmmatically using python mapscript

2015-11-15 Thread Andrea Peri
Hi ,
I try unsuccesfully to programmatically set the extent of a layer
using mapscript python.

I use this code to set the extent variable:

#... "extent1" is a variable storing the extent I like to set.

print("Add this extent to the layer: %s\n" % (str(extent1)))
clone_map_getlayer_li.extent = extent1
print("The result of add is this: %s\n" %
(str(clone_map_getlayer_li.extent)))


But
The result from printf show that the extent is not update.


>Add this extent to the layer: { 'minx': 424785 , 'miny': 4662585 , 'maxx': 
>696015 , 'maxy': 5057415 }

>The result of add is this: { 'minx': -1 , 'miny': -1 , 'maxx': -1 , 'maxy': -1 
>}

What I'm wrong ?

Many thx for any help.

A.



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

[mapserver-users] Unknowed layers in the log file

2015-11-08 Thread Andrea Peri
Hi,

I notice some time in the log filethe appearing of an unknowed layer
named using a numercial code.

I report a log sample :
The unknowed layer is the "layer 13" named "564049ed_5bb9_13".

This is not defined in the mapfle that has only 12 layers defined.

Someone know what is it ?

[Mon Nov  9 08:23:26 2015].140244 msDrawMap(): Layer 5
(rt_cat.idcatfabbr.rt), 0.035s
[Mon Nov  9 08:23:26 2015].152293 msDrawMap(): Layer 12
(rt_cat.idcattopon.rt), 0.012s
[Mon Nov  9 08:23:26 2015].191493 msDrawMap(): Layer 13
(564049ed_5bb9_13), 0.039s

Thx,

A.

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

[mapserver-users] The right character enconding for mapfile

2015-11-03 Thread Andrea Peri
Hi,

sorry for the question, but I'm not skill on character enconding questions.

My dubt is to understand what should be the right character encoding
for the mapfile ?

The question born from the notice that the response at the
getcapabilities request return an xml where is declared:



But the containing seem don't be a real utf-8.

I don't understand if should be the mapserver to convert into UTF-8 or
should be the user to write a regular UTF-8 mapfile.

Thx,

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

[mapserver-users] How setting the legend color from mapscript

2015-10-31 Thread Andrea Peri
Hi,

I try to have a set like this:

  LEGEND
IMAGECOLOR 255 255 255

using a python mapscript code.

My code is this:

msMap = mapscript.mapObj()
   
legendColor = mapscript.colorObj(255,255,255,0)
msMap.legend.imagecolor=legendColor

But the mapfile dont have the

IMAGECOLOR 255 255 255

Is imagecolor supported in the python mapscript ?

Thx,

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

Re: [mapserver-users] Two mapserver cgi opening the same mapfile file

2015-10-29 Thread Andrea Peri
Hi thx for responses.

I dont use the fastcgi
My mapserver run on a tomcat environment.

My first goal is to be able to have two distinct cgi istance using the
same dataset resources (we work with tiffs and spatialites) and the
same mapfiles. his to reduce al minimum the manage overhead.

My need for two distinct cgi instance if to test some strategies to
have a balance of resources when the istances are on the same server
machine.


2015-10-29 3:18 GMT+01:00 Richard Greenwood <richard.greenw...@gmail.com>:
> I don't see why there would be problem, but are you using standard cgi or
> fastcgi? It seems like fastcgi would do that for you without having to run
> and maintain two cgi instances, but I probably don't understand your whole
> goal.
>
> rich
>
> On Wed, Oct 28, 2015 at 1:48 PM, Andrea Peri <aperi2...@gmail.com> wrote:
>>
>> Hi,
>> to try to have better usage resources I like to try a new
>> configuration using two distinct cgi mapservers each of them accessing
>> the same mapfile.
>> Both the cgi are in the same server with the mapfile.
>>
>> The goal is to avoid to have two distinct but identical mapfiles to
>> maintain.
>>
>> I guess should be no problem to have two cgi opening the same mapfile,
>> but any thought on this kind of configuration is welcome.
>>
>> Thx.
>>
>> --
>> -
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com



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

[mapserver-users] Two mapserver cgi opening the same mapfile file

2015-10-28 Thread Andrea Peri
Hi,
to try to have better usage resources I like to try a new
configuration using two distinct cgi mapservers each of them accessing
the same mapfile.
Both the cgi are in the same server with the mapfile.

The goal is to avoid to have two distinct but identical mapfiles to maintain.

I guess should be no problem to have two cgi opening the same mapfile,
but any thought on this kind of configuration is welcome.

Thx.

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

[mapserver-users] Using different datasets at different scales in the same layer

2015-10-22 Thread Andrea Peri
Hi,

Often we serve huge datasets in our wms services.
To have a faster response, we usually done a secondary hidden layer
with a simplified dataset and
serve both using a group of two layers with complementary scales.

This allow the serve to use the simplified dataset for lower scale and
detailed dataset for higher scales.

But this structure is boring and error prone to configure.

I guess more better should be if possible
have one only layer and declare in it two distinct datasets.
One for lower scale and the other for higher scale.

Is possible to do something like this in mapserver ?

Thx.

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

Re: [mapserver-users] Using different datasets at different scales in the same layer

2015-10-22 Thread Andrea Peri
Its seem really interesting .
Thx.
Il 22 ott 2015 22:20, "ready...@gmail.com" <ready...@gmail.com> ha scritto:

> Hi,
>
> Maybe scale token can help you :
> http://mapserver.org/development/rfc/ms-rfc-86.html
>
> On 22/10/2015 22:13, Andrea Peri wrote:
>
>> Hi,
>>
>> Often we serve huge datasets in our wms services.
>> To have a faster response, we usually done a secondary hidden layer
>> with a simplified dataset and
>> serve both using a group of two layers with complementary scales.
>>
>> This allow the serve to use the simplified dataset for lower scale and
>> detailed dataset for higher scales.
>>
>> But this structure is boring and error prone to configure.
>>
>> I guess more better should be if possible
>> have one only layer and declare in it two distinct datasets.
>> One for lower scale and the other for higher scale.
>>
>> Is possible to do something like this in mapserver ?
>>
>> Thx.
>>
>>
> ___
> 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] Using a SRS with inverted axes.

2015-09-23 Thread Andrea Peri
Thx Even.

A.

2015-09-23 21:02 GMT+02:00 Even Rouault <even.roua...@spatialys.com>:
> Le dimanche 20 septembre 2015 19:09:15, Andrea Peri a écrit :
>> Raise ticket on mapserver issue system.
>>
>> https://github.com/mapserver/mapserver/issues/5168
>
> For the record, I've updated mapaxisorder.csv with EPSG v8.6 (the one I had
> available on my PC, not the latest I know).
>
>>
>> Thx.
>>
>> 2015-09-20 18:39 GMT+02:00 Even Rouault <even.roua...@spatialys.com>:
>> > Le dimanche 20 septembre 2015 17:56:32, Andrea Peri a écrit :
>> >> Hi Jukka,
>> >>
>> >> I can show this two samples from an mapserver where I update just
>> >> yesterday the new proj 4.9.2 and so it support the latest epsg db:
>> >>
>> >> 1)
>> >> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsa
>> >> mba
>> >> mm=WFS=2.0.0=GetFeature=rt_ambamm.idco
>> >> muni .rt.poly=EPSG:6707=100
>> >>
>> >> The epsg:6707 is a epsg code with axes north, east as reported from
>> >> http://www.epsg-registry.org/
>> >>
>> >> Instead the mapserver return 565347.495390 4910630.530024 (east , north)
>> >>
>> >> 2)
>> >> Using the same crequest I try instead the epsg:25832 that is an epsg
>> >> code with axes (east, north)
>> >>
>> >> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsa
>> >> mba
>> >> mm=WFS=2.0.0=GetFeature=rt_ambamm.idco
>> >> muni .rt.poly=EPSG:25832=100
>> >>
>> >> it return still return the sames 565347.495390 4910630.530024 (east,
>> >> north)
>> >>
>> >>
>> >> Please note both epsg:6707 and epsg:25832 are projected, instead
>> >> epsg:4326 is a geograhic system.
>> >> Perhaps mapserver invert only on geographics ?
>> >
>> > No it has a resource file mapaxisorder.csv with the list of EPSG codes
>> > where axis order must be inverted and it seems it isn't up to date. Can
>> > you raise a ticket about that ?
>> > Not sure how the CSV file was generated initially, but a script using the
>> > GDAL OSR API could do it.
>> >
>> >> Thx,
>> >>
>> >> A.
>> >>
>> >>
>> >>
>> >> 2015-09-20 17:22 GMT+02:00 Rahkonen Jukka (MML)
>> >>
>> >> <jukka.rahko...@maanmittauslaitos.fi>:
>> >> > Hi,
>> >> >
>> >> > You must give an exact example where it fails for you. WMS 1.3.0 with
>> >> > EPSG:4326 is using inverted axis and work with Mapserver, and you can
>> >> > see inverted axes also in the GML that comes as a response from WFS
>> >> > 1.1.0
>> >> >
>> >> > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.0.0
>> >> > T=g etfeature=continents=100
>> >> >
>> >> > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.1.0
>> >> > T=g etfeature=continents=100
>> >> >
>> >> > -Jukka Rahkonen-
>> >> >
>> >> > 
>> >> > Andrea Peri wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I see the mapserv don't seem able to invert the axes when the invoked
>> >> > srs define the inverted.
>> >> >
>> >> > Is confirmed this ?
>> >> >
>> >> >
>> >> > Thx,
>> >> >
>> >> > --
>> >> > -
>> >> > Andrea Peri
>> >> > . . . . . . . . .
>> >> > qwerty àèìòù
>> >> > -
>> >> > ___
>> >> > mapserver-users mailing list
>> >> > mapserver-users@lists.osgeo.org
>> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> > --
>> > Spatialys - Geospatial professional services
>> > http://www.spatialys.com
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com



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

Re: [mapserver-users] Using a SRS with inverted axes.

2015-09-20 Thread Andrea Peri
Raise ticket on mapserver issue system.

https://github.com/mapserver/mapserver/issues/5168

Thx.


2015-09-20 18:39 GMT+02:00 Even Rouault <even.roua...@spatialys.com>:
> Le dimanche 20 septembre 2015 17:56:32, Andrea Peri a écrit :
>> Hi Jukka,
>>
>> I can show this two samples from an mapserver where I update just
>> yesterday the new proj 4.9.2 and so it support the latest epsg db:
>>
>> 1)
>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsamba
>> mm=WFS=2.0.0=GetFeature=rt_ambamm.idcomuni
>> .rt.poly=EPSG:6707=100
>>
>> The epsg:6707 is a epsg code with axes north, east as reported from
>> http://www.epsg-registry.org/
>>
>> Instead the mapserver return 565347.495390 4910630.530024 (east , north)
>>
>> 2)
>> Using the same crequest I try instead the epsg:25832 that is an epsg
>> code with axes (east, north)
>>
>> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsamba
>> mm=WFS=2.0.0=GetFeature=rt_ambamm.idcomuni
>> .rt.poly=EPSG:25832=100
>>
>> it return still return the sames 565347.495390 4910630.530024 (east, north)
>>
>>
>> Please note both epsg:6707 and epsg:25832 are projected, instead
>> epsg:4326 is a geograhic system.
>> Perhaps mapserver invert only on geographics ?
>
> No it has a resource file mapaxisorder.csv with the list of EPSG codes where
> axis order must be inverted and it seems it isn't up to date. Can you raise a
> ticket about that ?
> Not sure how the CSV file was generated initially, but a script using the GDAL
> OSR API could do it.
>
>>
>> Thx,
>>
>> A.
>>
>>
>>
>> 2015-09-20 17:22 GMT+02:00 Rahkonen Jukka (MML)
>>
>> <jukka.rahko...@maanmittauslaitos.fi>:
>> > Hi,
>> >
>> > You must give an exact example where it fails for you. WMS 1.3.0 with
>> > EPSG:4326 is using inverted axis and work with Mapserver, and you can
>> > see inverted axes also in the GML that comes as a response from WFS
>> > 1.1.0
>> >
>> > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.0.0=g
>> > etfeature=continents=100
>> >
>> > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.1.0=g
>> > etfeature=continents=100
>> >
>> > -Jukka Rahkonen-
>> >
>> > 
>> > Andrea Peri wrote:
>> >
>> > Hi,
>> >
>> > I see the mapserv don't seem able to invert the axes when the invoked
>> > srs define the inverted.
>> >
>> > Is confirmed this ?
>> >
>> >
>> > Thx,
>> >
>> > --
>> > -
>> > Andrea Peri
>> > . . . . . . . . .
>> > qwerty àèìòù
>> > -
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com



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

  1   2   3   4   >