Re: [mapserver-users] html legend not working

2015-08-04 Thread Raffaele Morelli
On 04/08/15 at 08:34am, Rahkonen Jukka (MML) wrote:
> Raffaele Morelli wrote:
> 
> 
> > Reply to myself because I've found it's not a mapserver related issue but a 
> > geomoose one (no matter about LEGEND and TEMPLATE statements it always 
> > produces a png image) .
> 
> I don't quite agree.  If GeoMoose is always making the GetLegendGraphic 
> request by using image/png as a format then it is naturally getting a png 
> image back. But so far I have not discovered how to make Mapserver to support 
> html as one of the supported WMS GetLegendGraphic formats and what the WMS 
> client should then use as a format in &format= parameter so there is also a 
> Mapserver related aspect.

I won't say that, doc is very clear about WMS request returning an image:

[quote]
GetLegendGraphic: returns a legend image (icon) for the requested layer, with 
label(s).
More information on this request can be found in the GetLegendGraphic section 
later in
this doc.


GetLegendGraphic Request

This request returns a legend image (icon) for the specified layer. The request 
will draw
an icon and a label for all classes defined on the layer. If the requested 
layername is a
GROUP-name, all included layers will be returned in the legend-icon.

[/quote]


GeoMoose is doing a WMS request so no error on Mapserver side (and after all) 
nor on the
GeoMoose one.

TEMPLATE statement works well (returning html legend) when doin a cgi request.

/raffaele





-- 
«My mama said to get things done
You'd better not mess with Major Tom»
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] html legend not working

2015-08-03 Thread Raffaele Morelli
2015-08-03 14:16 GMT+02:00 Raffaele Morelli :

> Short story: I can't get html legend to work...
>
> legend.html file is in the same directory of the mapfile, as you can see
> the LABEL block is
> a verbatim copy from Mapserver documentation.
>
> The INCLUDE layer is a point layer with CLASS correctly defined.
>
> This my request to test
>
> http://localhost/cgi-bin/mapserv?MAP=/home/www/geomoose-2.8.0/maps/cen_default//cen_default.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.9622128666378558&SRS=EPSG:3857&SCALE=6933486.650500195&WIDTH=250&STYLE=&LAYER=sostegni
>
> The legend is returned a png file, just like TEMPLATE statement wasn't
> taken into account.
>
>
​Reply to myself because I've found it's not a mapserver related issue but
a geomoose one (no matter about LEGEND and TEMPLATE statements it always
produces a png image) .

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

Re: [mapserver-users] html legend not working

2015-08-03 Thread Raffaele Morelli
2015-08-03 15:55 GMT+02:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> Hi,
>
>
> I am not sure if HTML legends really work with WMS. The demo site that is
> mentioned in the html legend manual page must support html legends.
>
> http://demo.mapserver.org/cgi-bin/mapserv?map=%2Fosgeo%2Fmapserver%2Fitasca_legend%2Fmap%2Fitasca1.map&layers=all&zoomsize=2&zoomdir=1&map_size=600+400
>
> However, I could not find any way for reading the html legend through WMS.
> Format image/png does work for me
>
> http://demo.mapserver.org/cgi-bin/mapserv?map=%2Fosgeo%2Fmapserver%2Fitasca_legend%2Fmap%2Fitasca1.map&service=wms&version=1.1.1&request=getlegendgraphic&layer=ctyrdln3&format=image/png
>
> The site is advertising these formats for GetLegendGraphic, notice that
> html does not appear on the list even the service itself does support html
> legends if  they are read with native Mapserver methods:
>
> 
>   image/gif
>   image/png
>   image/png; mode=24bit
>   image/jpeg
>   image/vnd.wap.wbmp
>
> I also tested the effect of adding this WEB object metadata item into some
> of our Mapserver 7.0 RC1 services:
> "wms_getlegendgraphic_formatlist" "text/html"
>

​The WMS request is the same my webapp (geomoose) is actually doing and
which "fails" in returning html legend​.



>
> This change does not have any effect on the advertised GetLegendGraphic
> formats of our server. They are always
>
> image/png
> image/jpeg
> image/gif
> image/png; mode=8bit
>
> However, if I use "wms_getlegendgraphic_formatlist" "image/jpeg" then I
> can't read the legend as image/png even it does still show in
> GetCapabilities. So this setting works with the image formats as described
> in the documentation but there is a bug because the setting does not
> reflect to GetCapabilities.
>
> When it comes to top posting, I always top post but I also try to include
> some useful information into my mails for compensating the irritation. And
> I know that bottom posting is irritating at least as many people as top
> posting. I apologize also that my mail program does poor job with quoting
> previous mails.
>

​I am not irritated, it's just a matter of logic and top posting simply
doesn't work for conversation sequencing.
;-)​



>
> Regards,
>
> -Jukka Rahkonen-
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] html legend not working

2015-08-03 Thread Raffaele Morelli
On 03/08/15 at 12:26pm, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> By a quick look at http://mapserver.org/ogc/wms_server.html you should 
> probably add text/html as a GetLegendGraphic format:
> wms_getlegendgraphic_formatlist
> 
> Description: (Optional) A comma-separated list of valid formats for a WMS 
> GetLegendGraphic request.
> 
> and then use &format=text/html in your request. However, I have not tried 
> that myself but this is just my best guess.
> 
> -Jukka Rahkonen-
> 
> Raffaele Morelli wrote:
> 
> > Short story: I can't get html legend to work...
> 
> > legend.html file is in the same directory of the mapfile, as you can see 
> > the LABEL block is a verbatim copy from Mapserver documentation.
> 
> > The INCLUDE layer is a point layer with CLASS correctly defined.
> 
> > This my request to test
> http://localhost/cgi-bin/mapserv?MAP=/home/www/geomoose-2.8.0/maps/cen_default//cen_default.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.9622128666378558&SRS=EPSG:3857&SCALE=6933486.650500195&WIDTH=250&STYLE=&LAYER=sostegni
> 
> The legend is returned a png file, just like TEMPLATE statement wasn't taken 
> into account.
> 
> 
> Any hint?
> 

Added, but it doesn't work.
I got this error:

msWMSGetLegendGraphic(): Image handling error. Unsupported output format 
(text/html).



PS please do not top post


-- 
«My mama said to get things done
You'd better not mess with Major Tom»
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] html legend not working

2015-08-03 Thread Raffaele Morelli
Short story: I can't get html legend to work...

legend.html file is in the same directory of the mapfile, as you can see the 
LABEL block is
a verbatim copy from Mapserver documentation.

The INCLUDE layer is a point layer with CLASS correctly defined.

This my request to test 
http://localhost/cgi-bin/mapserv?MAP=/home/www/geomoose-2.8.0/maps/cen_default//cen_default.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&_OLSALT=0.9622128666378558&SRS=EPSG:3857&SCALE=6933486.650500195&WIDTH=250&STYLE=&LAYER=sostegni

The legend is returned a png file, just like TEMPLATE statement wasn't taken 
into account.


Any hint?

Mapfile:

MAP
NAME 'XXX'
UNITS meters
EXTENT  728034.319166294 4193385.80350739 2183515.00526018 5960168.11180283 

CONFIG 'MS_ERRORFILE' '/var/log/ms_error.log'
DEBUG 1
SIZE 800 600

SYMBOLSET "/home/www/geomoose-2.8.0/maps/symbols/symbols-catasto.sym"
FONTSET "/home/www/geomoose-2.8.0/maps/fonts/msfontset.txt"
RESOLUTION 72

PROJECTION
#"init=epsg:32632"
#"init=epsg:4326"
"init=epsg:3857"
#"init=epsg:900913"
END

OUTPUTFORMAT
  NAME "png"
  DRIVER AGG/PNG
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
  FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
  NAME "gif"
  DRIVER GD/GIF
  MIMETYPE "image/gif"
  IMAGEMODE PC256
  EXTENSION "gif"
END
OUTPUTFORMAT
  NAME "png8"
  DRIVER AGG/PNG8
  MIMETYPE "image/png; mode=8bit"
  IMAGEMODE RGB
  EXTENSION "png"
  FORMATOPTION "QUANTIZE_FORCE=on"
  FORMATOPTION "QUANTIZE_COLORS=256"
  FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
  NAME "jpeg"
  DRIVER AGG/JPEG
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
  FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
  NAME "svg"
  DRIVER CAIRO/SVG
  MIMETYPE "image/svg+xml"
  IMAGEMODE RGB
  EXTENSION "svg"
END
OUTPUTFORMAT
  NAME "pdf"
  DRIVER CAIRO/PDF
  MIMETYPE "application/x-pdf"
  IMAGEMODE RGB
  EXTENSION "pdf"
END
OUTPUTFORMAT
  NAME "GTiff"
  DRIVER GDAL/GTiff
  MIMETYPE "image/tiff"
  IMAGEMODE RGB
  EXTENSION "tif"
END
OUTPUTFORMAT
  NAME "kml"
  DRIVER KML
  MIMETYPE "application/vnd.google-earth.kml.xml"
  IMAGEMODE RGB
  EXTENSION "kml"
END
OUTPUTFORMAT
  NAME "kmz"
  DRIVER KMZ
  MIMETYPE "application/vnd.google-earth.kmz"
  IMAGEMODE RGB
  EXTENSION "kmz"
END
OUTPUTFORMAT
  NAME "cairopng"
  DRIVER CAIRO/PNG
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
END

WEB
IMAGEPATH "/home/www/tmp/"
IMAGEURL "/ms_tmp/"

METADATA
"wms_title" "CEN"
"wms_onlineresource"
"http://localhost/cgi-bin/cen?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities";
"wms_enable_request""*"
"wms_srs"   "EPSG:32632 EPSG:4326 EPSG:900913 
EPSG:3857"
END  # Metadata
END  # Web

LEGEND
  STATUS ON
  KEYSIZE 18 12
  # LABEL object
  LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
  END
  TEMPLATE "legend.html"  ### HTML template file
END

INCLUDE 'sostegni_italia.map'
END


-- 
«My mama said to get things done
You'd better not mess with Major Tom»
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Interface between QGIS2.4 and MapServer

2014-12-10 Thread Raffaele Morelli
On 10/12/14 at 04:55pm, Rahkonen Jukka (Tike) wrote:
> I warn you that the plugin creates mapfiles which are about 80% correct. For 
> fixing them to work properly you should know relatively well how to write 
> good mapfiles by hand.
> 
> 
> -Jukka Rahkonen-

+1

I've ended up in writing a small php class and some template (eg layer.inc.php) 
files
to write mapfiles stored in postgis, writes classes according to some attribute 
and
assings a color ramp.


-- 
«My mama said
to get things done
You'd better not mess 
with Major Tom»
D.Bowie
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] raster layer from postgis table

2014-11-05 Thread Raffaele Morelli
Hi,

I've loaded a bunch of GTiff files into a postgis table and actually trying to
fetch tiles with a mapserver layer with a where statement in DATA definition,
eg:

DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' 
password='whatever' schema='someschema' table='cooltable' 
where'filename=dem20.tif' mode='2'"

Testing with shp2img gives an error:  msResampleGDALToMap(): no overlap ... no 
result.

If I remove where condition all the rasters - different extensions - in the
table are returned in the image, which is not what I want.
I didn't found anything useful in the documentation about using where statement
(which should be quite straightforward) and I really would prefer not to create
a table for those 20 rasters...

Any hints?


-- 
« Nunc est bibendum, nunc pede libero pulsanda tellus »
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver 6.4 PHP Mapscript

2014-01-10 Thread Raffaele Morelli
2013/12/30 Jefferson Williams 

> I'm compiling Mapserver 6.4 on a 64-bit Fedora 19 system. It compiles
> fine.  Here's my cmake command line:
>
> CC=gcc34 cmake -DWITH_POSTGIS=0 -DWITH_PHP=1 -DWITH_ICONV=0
> -DPHP5_EXTENSION_DIR="./" -DWITH_KML=1 -DWITH_RSVG=1 ..
>
> However, upon starting Apache httpd with this module enabled, I get this
> error in the error_log:
>
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib64/php/modules/php_mapscript.so' -
> /usr/lib64/php/modules/php_mapscript.so: undefined symbol:
> __sync_sub_and_fetch in Unknown on line 0
>
> Anyone else run into this?  I'm really looking forward to getting into
> 6.4, as I read that text is converted to text elements when using SVG
> output.  6.2.1 doesn't do this, but rather converts text to paths -- which
> are bulky, and also cannot be edited as text afterwards.  I think this
> sync_sub_and_fetch error is all that's standing in my way.  At least, I
> hope...
>
> Thanks!
>

Here I am, same warning on a debian amd64 "wheezy" box with mapserver
installed through package manager.

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

Re: [mapserver-users] [OT] Problem loading php5-mapscript

2013-11-12 Thread Raffaele Morelli
2013/11/12 Lester Caine 

> Raffaele Morelli wrote:
>
>> I am wonder if any of you using debian (testing) with php5.5.5 installed
>> is
>> having problems in loading php_mapscript.so
>>
>> No matter how I tried php error log always reports
>> PHP Startup: Unable to load dynamic library
>> '/usr/lib/php5/20121212/php_mapscript.so'
>>
>
> It would be nice if PHP actually responded with more helpful failure
> messages.
> Starting point is ... has the php_mapscript.so file been rebuilt using
> 5.5.5?
> Brain is not as good as it used to be, but last time I had a problem here
> it was something to do with the dependencies that mapscript was looking for.
>

My local setup in quite the same, everything works fine and mapscript
dependencies are honoured, really can't figure out what's going on


> I've just moved over to using nginx and it's working fine but I know I
> added a couple of other packages previously

http://maptools.org/ms4w/ content list is probably worth a scan.


that's windows stuff, linux here :-)

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

[mapserver-users] [OT] Problem loading php5-mapscript

2013-11-12 Thread Raffaele Morelli
Hi,

I am wonder if any of you using debian (testing) with php5.5.5 installed is
having problems in loading php_mapscript.so

No matter how I tried php error log always reports
PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/php_mapscript.so'

System info:

debian wheezy/testing

php5   5.5.5+dfsg-1
libapache2-mod-php55.5.5+dfsg-1
mapserver  6.4.0-2
apache2 2.4.6-3

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

Re: [mapserver-users] two raster layers's intersection

2013-08-11 Thread Raffaele Morelli
2013/8/11 Ahmet Temiz 

>
> hello
>
>
> My data is stored in Postgis.
>
> I need to display only two raster layers's intersection.
>
> how can I do that ?
>
> regards
>

Create a postgis view by using
http://postgis.refractions.net/docs/RT_ST_Intersection.html

Display the layer in mapserver

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


Re: [mapserver-users] securing mapserver layers

2013-08-09 Thread Raffaele Morelli
2013/8/8 Basques, Bob (CI-StPaul) 

> Mark,
>
> Early on we set up some Apache rules to handle this, but it's based on a
> naming mechanism in the MAP files.
>
> If you look at our public facing MAPfile links, each mapfile name looks
> something like:  _public.map
>
> The "_public" chunk is read by Apache as something that is available
> externally.  We actually came up with five different classes of file types
> originally, but this is really the only one that we use and it's intended
> to allow the Mapfile/data custodians a method of making their data
> available outside if they want to.  They just need to add that chunk of
> text to their Mapfile and apache lets outside access see them.i've been
> meaning to set up a whole demo suite of our configuration for a while (few
> years) now, but just never got around to it.  We have other similar APACHE
> mod for other things as well that I think others would be interested in.
>
> We have a couple of newer projects that might dictate that we set up some
> demo product that might morph into some sort of demo eventually.
>
> Bobb


Apache environment variables can do this but it's more related to hide the
mapfile path on the file system.
eg. a request for "YOUR_ALIAS" is turned into the real path from the
webserver, /your/real/path/to/the/mapfile.map

This is accomplished by symbolic links (YOUR_ALIAS) to mapserver executable
in the cgi dir

http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url

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


Re: [mapserver-users] securing mapserver layers

2013-08-09 Thread Raffaele Morelli
2013/8/8 Mark Volz 

> Hello
>
> I would like to set up mapserver so that some map files are open to
> anyone, some open to only internal users, and other maps are only open to
> users that enter in a user name and password.  Is there a way to set up
> mapserver / Apache so that I can secure the mapserver services for
> different types of users?
>
> For example:
> Public Users, or any users
> http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map
> Internal Users
> http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map
> External users with the correct username and password
>
> http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map
>
> Thank You
>
>
> p.s.  I asked a similar question in the past, but I am having trouble
> finding that question and response.  So I appologize for asking the same
> question again
>
>
> Mark Volz, GISP
> GIS Specialist
>

You can use apache mod_aut* modules to setup a username/password protected
area.
If you are planning to use mapserver as WMS server, you should consider to
use allow/deny on a file type level (and/or  directives)
according to ip addresses.

If you are running a front end like pmapper or a openlayers based one you
can quickly grant access using both methods.

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


Re: [mapserver-users] No Postgresql mapserver images

2013-07-30 Thread Raffaele Morelli
2013/7/29 Rahkonen Jukka 

> Hi,
>
> Feels odd, I have "listen_addresses = '*'  " in my PostgreSQL 9.2
> postgresql.conf and Mapserver works as supposed. The wildcard * should
> include everything, including localhost.
>

Yes, the wildcard '*' includes all available IP interfaces... so I wonder
if his /etc/hosts has the line with the alias "127.0.0.1 localhost".

Just my 0.02€
/r
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver WMS Reprojection

2013-05-19 Thread Raffaele Morelli
2013/5/19 Donald Kerr 

> Hi List,
>
> I am trying to reproject a WMS request from 27700 (UK Ordnance Survey) to
> 900913 (OSM OpenStreetMap) without success. There no issue with the map
> file
> map or layer definitions in terms of serving up the WMS in 27700 but
> reprojection seems to fail. There appears to be very little online and I
> cannot find a solution; hence this request for help or advice.
>

Be sure you have this line in your epsg file:
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
+y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis

2013-03-15 Thread Raffaele Morelli
2013/3/15 Marco Araujo 

>  Hello Raffaeli,
>
> Can you guide me on how to configure a WMS server with MapServer?
> WMS would be to prepare a file. Map with their layers? or not?
> If yes, I've already configured because I can load a map (shapefile)
> through the MapServer and visualizes it with openlayers.
>
> The problem is how MapServer will read data from the database and not a
> shapefile.
>
> Can you help me?
>

I believe you should read some fundamental documentation as Stephen
suggests... your task is quite straightforward but mapserver & postgis &
openlayers are not just toys :-)

-r

PS as second step, if you have a working mapfile (as you stated) you should
load shp file into postgis and add a postgis layer in your mapfile


-- 
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale. (V. Evangelisti)
*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis

2013-03-15 Thread Raffaele Morelli
2013/3/14 Marco Araujo 

>  Hi everybody,
>
> I'm trying to develop an application (ASP.NET C#) that gets the database
> (postgis) map through conditions "where" and process adjustments by
> mapscript and provide the map to be viewed by openlayer.
>
> Just setup a WMS server with mapserver and add WMS layers to openlayers.
that's all

You can serve any mapfile you want, just add your "where conditions" where
you want:

- PHP code snippet in the openlayers base page
- use apache environment variables to serve different mapfile according to
url request




-- 
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale. (V. Evangelisti)
*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS server layer trouble

2012-03-06 Thread Raffaele Morelli
2012/3/6 Rahkonen Jukka 

> **
> Hi,
>
> Look at the GetCapabilities and see if Mapserver is advertising the layer
> extents in reasonable way. I have a feeling that QGis is trying to zoom
> automatically to the layer extents by taking the layer extents and some
> default resolution and calculating WIDTH and HEIGHT by those too. If they
> are wrong in the GetCapabilities there can be troubles.
> For example the layer fiumi_02 shows now quite a large extents,
>
> Fiumi II, III, IV
> ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 50.0 9997960.0
>
> OpenJUMP shows the layers better because it does not generate oversized
> WIDTH and HEIGHT.
> Consider adding "wms_bbox_extended" "true". It will help clients like
> OpenJUMP to zoom to layer extents with any supported srsName.
> It could be easist and most safe to set the correct layer extenst manually
> in metadata.
>
>
> -Jukka Rahkonen-
>

Thanks for fast replying, in the meanwhile I've added wms_extent to every
layer metadata (except for "europe") and the error disappeared.
BTW I am going to try wms_bbox_extended too.

Regards
-r



-- 
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale.*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS server layer trouble

2012-03-06 Thread Raffaele Morelli
Hi,

I can't get it working as desired and can't understand why.
Here is my wms online resource:
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

If you try to load the layer "sostegni" in QGis you should get an image
size error, selecting the "CEN-RF" layer works but loads all the layer in
the mapfile.
The only layer I can import in QGis is the "Data Elevation Model".

I would like my wms server to act like
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

Any hints?
regards
-r

-- 
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale.*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [SOLVED] Re: MapServer 6.0.1 ignoring WMS options?

2012-03-05 Thread Raffaele Morelli
2012/3/6 teknocreator 

> [SOLVED]
>
> Thanks for the replies, but first I apologize to Arman for not including
> the
> commas in the BBOX request line.  I was looking at the mapserver C code and
> it's actually setup to handle either commas or spaces in the BBOX= option.
> So it looks like I cut and pasted by attempt without commas here.  My
> initial attempts were with the commas and those also failed.
>
> As to the second reply by Mike Smith of not using the "mode=map"...okay, I
> see in the doc that it shouldn't be included in a WMS call.  I tried that
> for one of the point layers we've defined and it worked!!  THANKS for
> getting me further here!!
>
> But the reason that I had it in there is that I had tried removing
> "mode=map" with a raster layer that I'm also attempting to query.  When I
> tried to remove the "mode=map" there, I received an error:
>
> 
> 
> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be
> valid for all requested layers.
>
>
Hi,

I have a similar issue with wms request from QGis, I've removed adding
wms_srs to each layer in the form of
"wms_srs" "EPSG:epsg_code"

However, layers are listed correctly whistl I can't load a single layer but
the raster (Data Elevation Model) and got a similar issue with bbox, QGis
always report that:

 

msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH
and HEIGHT must be between 1 and 150 pixels.



I can load the whole bunch by selecting the top layer but it's not really
the desired result

http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities


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


[mapserver-users] Re: WMS image size issue (Raffaele Morelli)

2012-02-15 Thread Raffaele Morelli
>
>
> Message: 6
> Date: Wed, 15 Feb 2012 13:12:35 +
> From: Rahkonen Jukka 
> Subject: Re: [mapserver-users] (no subject)
> To: "'mapserver-users@lists.osgeo.org'"
>
> Message-ID:
><84446def76453c439e9e97e438e13a63075...@pasuri.haapa.mmm.fi>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> The bounding boxes are bit odd, check the EXTENTS of your mapfile and
> possibly wms_extent if you have set it.
>  EPSG:32632
> maxy="47.1372" />
>minx="313371" miny="3.93368e+06" maxx="1.31209e+06"
> maxy="5.22041e+06" />
>
>sostegni
>Sostegni
>EPSG:32632
> maxx="173.211" maxy="8.2419e+12" />
>minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
> maxy="2.5e+07" />
>
>  Service itself is OK
>
>
>
> http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=469&HEIGHT=354&LAYERS=sostegni&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-104932.26069053586,3923518.6330312905,1669843.960523528,5263115.183798409&SRS=EPSG:32632&STYLES=
>
> I would guess that QGis is trying to do zoom to a best fit by
> investigating layer extents and resolution and because extents are so wide
> it makes unrealistically big sized request.  QGis will show the image if
> you zoom to correct location by coordinates or by opening a supporting
> vector file on the bottom. OpenJUMP had no problems for me.
>
> -Jukka Rahkonen-


Stange cause I actually got EXTENT from ogrinfo querying a postgis layer as
reported in this example
http://mapserver.org/input/vector/postgis.html#ogrinfo-examples

and here's the relevant output:

Extent: (313371.309628, 3933679.249407) - (1312087.106406, 5220406.386046)

...same error

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


[mapserver-users] WMS image size issue

2012-02-15 Thread Raffaele Morelli
Hi, (sorry for double posting but I forgot the subject in the previous
email)

I am working on a wms server and no matter how I try increasing MAXSIZE
value I always get this error when trying to import my wms layer in Qgis

msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH
and HEIGHT must be between 150

here's the wms online resource
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE 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=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

any suggestion?

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


[mapserver-users] (no subject)

2012-02-15 Thread Raffaele Morelli
Hi,

I am working on a wms server and no matter how I try increasing MAXSIZE
value I always get this error when trying to import my wms layer in Qgis

msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH
and HEIGHT must be between 150

here's the wms online resource
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE 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=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

any suggestion?

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