Re: [mapserver-users] wms projection wrong

2017-03-08 Thread Eugenio Trumpy
Hi,


here the link to the screenshot I did:

https://ibb.co/eHqzQa

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

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

Here below the layer definition:


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

this give a wrong reprojection for me;


and this is the one loaded as shp file:


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

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


I'm testing the mapfile by using pmapper version4.


Eugenio





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


Hi,



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



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



-Jukka Rahkonen-



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



Dear all,



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

I used ppa to install php_mapscript module.

Everything seems to be working, however I got an issue

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

the 2 layers boundaries mismatch.

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

european countries is a shp file in the same epsg.

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



This is very strange,

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

Of course I'm testing the same mapfile.



Any hints on that?



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

[mapserver-users] wms projection wrong

2017-03-08 Thread Eugenio Trumpy
Dear all,


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

I used ppa to install php_mapscript module.

Everything seems to be working, however I got an issue

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

the 2 layers boundaries mismatch.

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

european countries is a shp file in the same epsg.

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


This is very strange,

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

Of course I'm testing the same mapfile.


Any hints on that?


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

[mapserver-users] phpmapscript in ubuntu 16.04 LTS

2017-03-06 Thread Eugenio Trumpy
Hi all,


any news on the package phpmapscript on ubuntu 16.04?

The only solution is to 'downgrade' at php5 by using ppa repo?


Any hints? Suggestions?


thanks

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

[mapserver-users] mapserver basemap

2016-05-20 Thread Eugenio Trumpy
Hello all,

I would like to insert a modern basemap on a running mapserver project.
Currently I set a mapfile including about 15 layers and a raster tif file 
representing
the hillshade of the study area, as basemap.
My aim is to substitute the running base map with something more dynamic as 
well as
with higher resolution and at the same time not heavy to slow down the service.
These basemap aspects are new for me, I found documentation but not so clear 
for me,
I need something easy. What can you suggest me? Is it an hard stuff? or can I 
handle it?
I think I could have at least 2 possibilities: to insert a WMS global layer, 
(and in case can you suggest me
a nice service?), or set up something like tiles service (like OSM), in case 
how??

Thank you in advance,

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

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy
Hi,

find a clear guide on how to set AddHandler ... is my problem, I found many 
guides but
anyone clear.
In my apache2.conf there are no lines on AddHandler, I wonder if I have to 
insert it on my default virtualhost or wherever.

Any other helps?
Thanks for now

E.

Date: Tue, 23 Feb 2016 09:35:12 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

You need to add something like this to you apache2.conf or in an .htaccess file
   AddHandler application/x-httpd-php .php .phtml
But you might Google a little and find the Ubuntu way of doing it. The .phtml 
extension got un-registered when you switched to php-fpm.

Rich


On Tue, Feb 23, 2016 at 8:56 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:




Hi,

you are completely right. I just renamed map.phtml in map.php and the 
application seems to run fine.
Actually I would prefer to register .phtml in my php handler in apache, but 
since I changed the php module (php-fpm) 
I don't know where I should insert the handler.

E.

Date: Tue, 23 Feb 2016 08:48:02 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your problem is that 
the ".phtml" is not registered with your php handler. So if you don't want to 
rename map.phtml you need to modify your Apache config.


On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:



Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large=it=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large=it=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy

Hi,

you are completely right. I just renamed map.phtml in map.php and the 
application seems to run fine.
Actually I would prefer to register .phtml in my php handler in apache, but 
since I changed the php module (php-fpm) 
I don't know where I should insert the handler.

E.

Date: Tue, 23 Feb 2016 08:48:02 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

Well you need to rename map.phtml to map.php. I think that your problem is that 
the ".phtml" is not registered with your php handler. So if you don't want to 
rename map.phtml you need to modify your Apache config.


On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:



Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large=it=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large=it=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Eugenio Trumpy
Hi,

following your suggestion I tried:
http://my_server_name/wm_goth/map.php?winsize=large=it=

I got page error: NOT FOUND
The request url /wm_goth/map.php was not found on this server.

It does help?

E.

Date: Tue, 23 Feb 2016 08:27:18 -0700
Subject: Re: [mapserver-users] mapscript version and date
From: richard.greenw...@gmail.com
To: frippe12...@hotmail.com
CC: mapserver-users@lists.osgeo.org

What happens if you change the extension from phtml to php, e.g. map.php


On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy <frippe12...@hotmail.com> wrote:



Hi,

my info.php states that I have installed Mapserver, version 6.4.1 but no date 
and version are declared
for php_mapscript.
On this ubuntu server I recently switched the php mode in apache, from normal 
mod-php5 to mod-fpm.
Apache rightly interprets the php pages, whilst mapserver (and pmapper) have 
problems.
The mapserver seems to work fine, the URL 
http://my_server_name/cgi-bin/mapserv? 
gives me the classical string:
No query information to decode. QUERY_STRING is set, but empty. 

However launching the pmapper application by url:
http://my_server_name/wm_goth/map.phtml?winsize=large=it=
I got an almost empty page (only line on the top) and php code in the browser 
tab title.

Can you give me hints?

Eugenio
  

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] query to mapserver

2010-10-03 Thread Eugenio Trumpy

good morning to all,
i have a question: how can i make a query to mapserver by code? 
for example, if i give by code a cadastral parcel, i would like to know 
the layers contained, or included in that area, or which layers that
cadastral parcel belong.
anyone can halp me?

Regard

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