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 1500000 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) <[email protected]> Inviato: mercoledì 8 marzo 2017 12.16 A: Eugenio Trumpy; [email protected] 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 [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
