Creating a geologic map in mapsOnline/custom

Mono Ki shared this problem 13 months ago
Solved

Hi.


I want to integrate a French geological map in Locus Pro.

I can not do it. I do not know how to do it and turn to the forum. Could someone help me?

However, with Mobile Atlas Creator (MOBAC) (http://mobac.sourceforge.net/), this content of "mapsources / geologie.xml" gives good results. Here it is :


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<customWmsMapSource>

<name>aFrance-BRGM-Geologie</name>

<url><![CDATA[http://mapdmz.brgm.fr/cgi-bin/mapserv?map=/carto/infoterre/mapFiles/geolWMS.map&REQUEST=GetMap&SERVICE=WMS&WIDTH=256&HEIGHT=256?]]></url>;

<minZoom>7</minZoom>

<maxZoom>15</maxZoom>

<layers>SCAN_GEOL50</layers>

<coordinatesystem>EPSG:4326</coordinatesystem>

<tileType>JPG</tileType>

</customWmsMapSource>


Here is the link (obtained with MOBAC) to a tile (mapserv.jpg):

http://mapdmz.brgm.fr/cgi-bin/mapserv?map=/carto/infoterre/mapFiles/geolWMS.map&REQUEST=GetMap&SERVICE=WMS&WIDTH=256&HEIGHT=256?REQUEST=GetMap&LAYERS=SCAN_GEOL50&SRS=EPSG:4326&VERSION=1.1.1&FORMAT=image/jpeg&BBOX=-0.3955078125,49.196064000723794,-0.37353515625,49.210420445650286&WIDTH=256&HEIGHT=256

c6bea4338330077beeae62272b432819

We can also get a png tile with FORMAT=image/png:

http://mapdmz.brgm.fr/cgi-bin/mapserv?map=/carto/infoterre/mapFiles/geolWMS.map&REQUEST=GetMap&SERVICE=WMS&WIDTH=256&HEIGHT=256?REQUEST=GetMap&LAYERS=SCAN_GEOL50&SRS=EPSG:4326&VERSION=1.1.1&FORMAT=image/png&BBOX=-0.3955078125,49.196064000723794,-0.37353515625,49.210420445650286&WIDTH=256&HEIGHT=256

990d5ade122922875204955055073544


Based on this information, I did a dozen tests, all without success.

Here is an example of mapsOnline/custom/BRGM.xml content:


<?xml version="1.0" encoding="UTF-8"?>

<BRGM>

<provider id="30846" type="0" visible="true" background="-1">

<name>BRGM</name>

<mode>Geologie1</mode>

<url><![CDATA[http://mapdmz.brgm.fr/cgi-bin/mapserv?map=/carto/infoterre/mapFiles/geolWMS.map&REQUEST=GetMap&SERVICE=WMS&WIDTH=256&HEIGHT=256?REQUEST=GetMap&LAYERS=SCAN_GEOL50&SRS=EPSG:4326&VERSION=1.1.1&FORMAT=image/png&{c}.png&WIDTH=256&HEIGHT=256]]></url>;

<zoomPart>{z}-8</zoomPart>

<zoomMin>21</zoomMin>

<zoomMax>23</zoomMax>

<tileSize>256</tileSize>

<countries>France</countries>

<usage>overlay</usage>

</provider>

</BRGM>


In response, Locus gives a blank screen. Yet, there should be a solution.

If possible, thank you for your help.


Kim

Comments (7)

photo
1

... and I do not know if I have to use {c} or {c}.png or something like {z}/{x}/{y} or {z}/{x}/{y}.png ...

photo
1

Hi,

it seems that this is WMS service. The custom xml can not handle WMS but you can add WMS manually.

Please open Menu - Maps - WMS and create new definition. I guess that the based url is http://mapdmz.brgm.fr/cgi-bin/mapserv?map=/carto/infoterre/mapFiles/geolWMS.map

I searched for other info and it seems that this map can be available in form of KML file http://infoterre.brgm.fr/geoservices-ogc

Please download it into Locus/mapItems folder and display it via Menu > More > Map items

Best regards

Petr

photo
1

Hi,

Thank you for your answer.

I already try the WMS way and its works fine.

But I thought that it was possible to put these map in a xml form in mapsOnline/custom...

Thank you for the KML information. I try "kml_geo_50.kml" and "kml_geo_1000.kml"

It's seem not working.

Perhaps too heavy because Locus always stop working.

It is strange, because "kml_geo_50.kml" and "kml_geo_1000.kml" works with Google Earth on my phone.

Best regards.

Kim

photo
1

Why don't you simply download the maps of interest with MOBAC and use them as an offline maps in Locus?

photo
1

Hi,

Thank you for idea. I had not thought about this, because I discovered MOBAC recently.

It is also true that I usely download maps with Locus, at home or on a trip.

photo
photo
1

Hi,

the problem is in structure of KML file - because Locus loads all tiles (whole map) and it causes the memory issues. Maybe would be possible to improve it but we'd like to postpone it because it's very special issue.

However as Nils mentioned the offline map downloaded via Mobac could be solution for you. How to use Mobac and Locus is described in http://docs.locusmap.eu/doku.php?id=manual:advanced:map_tools:mobac

Thank you

Best regards

Petr

photo
1

Thank you. It's OK for me. I can use MOBAC. And I know that I have not to spend more time.

Thanks for all and best regards.

Kim