OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Forum OkMap - Italiano
 Integrazione con altri software
 WMS Geoportale Nazionale e IGM
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

oldmax

Italy
29 Posts

Posted - 11/06/2015 :  22:29:25  Show Profile  Reply with Quote
Sul geoportale http://www.pcn.minambiente.it/GN/accesso-ai-servizi/servizi-di-visualizzazione-wms
è visualizzato il WMS :
http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map

ma come per le CTR non glie la fò ! (sono duro scusatemi)

Sempre su OruxMaps funziona il link come indicato sopra ma su OkMap nisba! Ho provato a seguire la stessa logica ma nulla da fare! HELP

okmap

Italy
2563 Posts

Posted - 12/06/2015 :  09:46:40  Show Profile  Visit okmap's Homepage  Reply with Quote
Prova questo:

<mapsServer>
<name>PCN IGM 25K</name>
<code><![CDATA[new OpenLayers.Layer.WMS("PCN IGM 25K", "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map", {layers: 'CB.IGM25000'});]]></code>
<baseLayer>true</baseLayer>
<covered>Italy</covered>
<active>true</active>
</mapsServer>
Go to Top of Page

oldmax

Italy
29 Posts

Posted - 12/06/2015 :  10:12:18  Show Profile  Reply with Quote
OK Risolto! Bisogna specificare obbligatoriamente il layer (ovvio! )
cioè l'entry in MapsServers.xml è:

<mapsServer>
<name>WMS-IGM-25000</name>
<code><![CDATA[new OpenLayers.Layer.WMS("IGM-25000"
, "http://wms.pcn.minambiente.it/ogc?service=WMS&map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&layers=CB.IGM25000&"
, {layers: 'CB.IGM25000', projection: 'EPSG:4326'});]]></code>
<baseLayer>true</baseLayer>
<covered>IGM-Italy</covered>
<active>true</active>
</mapsServer>
Go to Top of Page

wanderer

Italy
14 Posts

Posted - 08/09/2015 :  12:07:06  Show Profile  Reply with Quote
Interesserebbe anche a me ma copiando e incollando con notepad all'interno del file MapsServerss.xml il nome WMS-IGM-25000 poi non compare tra le mappe base una volta aperto il programma. Presumo a questo punto che mi manchino i fondamentali e cioè ignoro il modo corretto per apportare modifiche al file xml. Si deve utilizzare un editor specifico?
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 08/09/2015 :  12:32:32  Show Profile  Visit okmap's Homepage  Reply with Quote
No, basta il semplice notepad.
Incolla il gruppo di righe alla fine prima dell'ultimo tag di chiusura del file xml.
Go to Top of Page

wanderer

Italy
14 Posts

Posted - 08/09/2015 :  13:29:00  Show Profile  Reply with Quote
Temo di essere fuori strada. Il file da editare è MapsServers.xml?
Perchè cancellandolo per prova, il programma non da errore e il menù utilità/server mappe/mappe base appare ugualmente.

Comunque ho fatto prima così:
<baseLayer>true</baseLayer>
<covered>USA</covered>
<active>true</active>
</mapsServer>
<mapsServer>
<name>WMS-IGM-25000</name>
<code><![CDATA[new OpenLayers.Layer.WMS("IGM-25000"
, "http://wms.pcn.minambiente.it/ogc? service=WMS&map=/ms_ogc/WMS_v1.3/raster/IGM_ 25000.map&layers=CB.IGM25000&"
, {layers: 'CB.IGM25000', projection: 'EPSG:4326'});]]> </code>
<baseLayer>true</baseLayer>
<covered>IGM-Italy</covered>
<active>true</active>
</mapsServer>
<mapsServer>
<name>Chartbundle IFR Enroute High</name>
<code><![CDATA[new OpenLayers.Layer.TMS("Chartbundle
ecc.

e poi così secondo le tue indicazioni:
<!-- Custom layers -->
<!--
<mapsServer>
<name></name>
<code><![CDATA[ ]]></code>
<baseLayer></baseLayer>
<covered></covered>
<active></active>
<default></default>
</mapsServer>
-->
</mapsServers>
<mapsServer>
<name>WMS-IGM-25000</name>
<code><![CDATA[new OpenLayers.Layer.WMS("IGM-25000"
, "http://wms.pcn.minambiente.it/ogc?service=WMS&map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&layers=CB.IGM25000&"
, {layers: 'CB.IGM25000', projection: 'EPSG:4326'});]]></code>
<baseLayer>true</baseLayer>
<covered>IGM-Italy</covered>
<active>true</active>
</mapsServer>

saluti.
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 08/09/2015 :  14:23:51  Show Profile  Visit okmap's Homepage  Reply with Quote
No, devi spostare il tag </mapsServers> alla fine del file.
Il file è nella cartella:
C:\Users\<user>\AppData\Roaming\GianPaoloSaliola\OkMap\<version>\defs
sostituisci <user> con il tuo utente
sostituisci <version> con la versione di OkMap
Go to Top of Page

wanderer

Italy
14 Posts

Posted - 08/09/2015 :  15:28:05  Show Profile  Reply with Quote
Fatto e testato!!! Fantastico. Avevo fatto vari errori tra cui modificare il file MapsServers.xml su C: invece che sul profilo utente e poi avrei dovuto vedere il tag che chiude il file lasciandolo alla fine. Ho molti testi accumulati nel tempo (ho 59 anni) con itinerari locali e regionali tracciati su basi IGM. A volte vado alla vecchia maniera con fotocopia e altimetro, altre volte scansisco e georeferenzio, tramite OKMap le cartine per farmi della custom maps Garmin. Così vado molto meglio perchè posso tracciare gli itinerari sulla base cartografica originale senza contare che sulle vecchie IGM ci sono particolari che altrove mancano. Miracolosamente sono riuscito anche a trattare i tiff georeferenziati delle CTR regionali ma, sempre in riferimento ai grandi limiti del sottoscritto, sono carte troppo tecniche per un utilizzo escursionistico.

Un sentito grazie per la pazienza e disponibilità
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 08/09/2015 :  15:58:15  Show Profile  Visit okmap's Homepage  Reply with Quote
Ben fatto!!!!
Allora buon divertimento!
Go to Top of Page

VitoB

Italy
3 Posts

Posted - 15/08/2016 :  12:19:07  Show Profile  Reply with Quote
Un saluto a tutti, scusate se riprendo questo post ma, da recente utilizzatore di okmap, vorrei sapere come salvare la mappa igm così visualizzata.
Nei menu le opzioni di salvataggio non sono abilitate.
Vorrei caricare questi ritagli sul garmin, visto che dovrebbero essre già georeferenziate.
E' possibile fare ciò?
Grazie
Vito
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 15/08/2016 :  12:25:46  Show Profile  Visit okmap's Homepage  Reply with Quote
Per scaricare una mappa devi utilizzare la funzione Utilities - Servers - Map servers.
Le mappe dell' IGM non compaiono però nella lista per motivi legali (sono a pagamento).
Go to Top of Page

VitoB

Italy
3 Posts

Posted - 15/08/2016 :  17:26:27  Show Profile  Reply with Quote
Grazie per la veloce risposta.
Nell'eleco dei server però non c'è quella del PCN, come posso fare per aggiungerlo?
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 15/08/2016 :  17:52:06  Show Profile  Visit okmap's Homepage  Reply with Quote
Leggi i termini di utilizzo
http://www.pcn.minambiente.it/GN/?id=9:termini-di-utilizzo&catid=2
non credo si possano salvare le mappe, in ogni caso occorre registrarsi....
Go to Top of Page

VitoB

Italy
3 Posts

Posted - 15/08/2016 :  17:59:00  Show Profile  Reply with Quote
Grazie! :)
Go to Top of Page

wanderer

Italy
14 Posts

Posted - 30/12/2019 :  08:40:12  Show Profile  Reply with Quote
Scusate, riprendo questo vecchio argomento in quanto lo script per collegarmi all'IGM 25000, funzionante per anni, ora mi dà errore (Linea 50 carattere 1 'OpenLayers' non è definito codice 0). Cosa potrebbe essere?

<mapsServer>
<name>WMS-IGM-25000</name>
<code><![CDATA[new OpenLayers.Layer.WMS("IGM-25000"
, "http://wms.pcn.minambiente.it/ogc?service=WMS&map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&layers=CB.IGM25000&"
, {layers: 'CB.IGM25000', projection: 'EPSG:4326'});]]></code>
<baseLayer>true</baseLayer>
<covered>IGM-Italy</covered>
<active>true</active>
</mapsServer>

Edited by - wanderer on 30/12/2019 08:52:53
Go to Top of Page

okmap

Italy
2563 Posts

Posted - 30/12/2019 :  10:49:53  Show Profile  Visit okmap's Homepage  Reply with Quote
Da qualche versione a oggi la versione di openlayer è cambiata come pure la sintassi. Guarda come sono fatti i comandi degli altri server. Comunque le IGM 25k sono già incluse nel pacchetto standard.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07