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

 All Forums
 OkMap Forum - English
 New features
 WMS sources
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

asierma

Spain
5 Posts

Posted - 14/01/2014 :  18:36:31  Show Profile  Reply with Quote
Hi,
Would it be possible to load WMS data as background while viewing and editing tracks, waypoints, ...?
Thanks!

Edited by - asierma on 14/01/2014 18:37:35

okmap

Italy
2566 Posts

Posted - 15/01/2014 :  09:25:08  Show Profile  Visit okmap's Homepage  Reply with Quote
No, but you can download your map from WMS servers with "Utilities - Map server" function (georeference is automatic) and then open the downloaded map.
Go to Top of Page

asierma

Spain
5 Posts

Posted - 15/01/2014 :  18:48:06  Show Profile  Reply with Quote
Thanks, but żIt's there any way to configure new WMS service that is not listed at the moment?
I'm trying to use the spanish cartography of IGN, but I don't find how to do it.
Go to Top of Page

okmap

Italy
2566 Posts

Posted - 16/01/2014 :  09:22:41  Show Profile  Visit okmap's Homepage  Reply with Quote
Please refer to this topic http://www.okmap.org/forum/topic.asp?TOPIC_ID=573
Go to Top of Page

asierma

Spain
5 Posts

Posted - 16/01/2014 :  16:54:52  Show Profile  Reply with Quote
I've been doing some tests with the information of the topic you said, but I have not been able to configure any of the servers maps that I've tried with. I have been working many years as a computer programmer, but my ignorance about how openlayer works has defeated me. I have to read more information about it.
Go to Top of Page

okmap

Italy
2566 Posts

Posted - 17/01/2014 :  10:03:27  Show Profile  Visit okmap's Homepage  Reply with Quote
Please tell me which WMS you would to use and some link to study the problem.
Go to Top of Page

asierma

Spain
5 Posts

Posted - 29/01/2014 :  16:31:49  Show Profile  Reply with Quote
I'm trying to include this WMS:
http://www.ign.es/wms-inspire/mapa-raster?request=GetCapabilities&service=WMS

I think configuration should be like this:


  <mapsServer>
    <name>IGN Raster</name>
    <code><![CDATA[new OpenLayers.Layer.WMS( "OpenLayers WMS","http://www.ign.es/wms-inspire/mapa-raster",{layers: 'mtn_rasterizado', projection: 'EPSG:4230'} );]]></code>
    <baseLayer>false</baseLayer>
    <covered>Spain</covered>
    <active>true</active>
  </mapsServer>  


But it doesn't work, I don't why. I search for a location and I get the image, but the map that is displayed isn't from the WMS.

Edited by - asierma on 29/01/2014 16:39:43
Go to Top of Page

okmap

Italy
2566 Posts

Posted - 29/01/2014 :  17:55:57  Show Profile  Visit okmap's Homepage  Reply with Quote
It's in conflict with the declaration of map:

var map = new OpenLayers.Map ("map", {
controls: [new OpenLayers.Control.Navigation()],
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34),
maxResolution: 156543,
projection: new OpenLayers.Projection("EPSG:900913"), // Proiezione Spherical Mercator
displayProjection: new OpenLayers.Projection("EPSG:4326") // WGS84
});

With this it'll work.

var map = new OpenLayers.Map ("map", {
controls: [new OpenLayers.Control.Navigation()]
});

I'll study the problem.

Go to Top of Page

okmap

Italy
2566 Posts

Posted - 01/02/2014 :  14:08:44  Show Profile  Visit okmap's Homepage  Reply with Quote
I think to have solved the problem.
Code EPSG:900913 is deprecated and it has been replaced with EPSG:3857.
See http://wiki.openstreetmap.org/wiki/EPSG:3857
I've fixed this and you will find it in the next version of OkMap.
Meanwhile you can edit manually this file:
C:\Users\<user>\AppData\Roaming\GianPaoloSaliola\OkMap\<version>\defs\TemplateMapsServer.htm and replace this statement (line 41):
projection: new OpenLayers.Projection("EPSG:900913"), // Proiezione Spherical Mercator
with this:
projection: new OpenLayers.Projection("EPSG:3857"), // Proiezione Spherical Mercator


Go to Top of Page
  Previous Topic Topic Next Topic  
 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