grst / geos

Google Earth Overlay Server - display map overlays in Google Earth
https://grst.github.io/geos
BSD 3-Clause "New" or "Revised" License
41 stars 12 forks source link

customMapSource <region> return bad BBOX area #31

Open nono303 opened 3 years ago

nono303 commented 3 years ago

Hi, I'm trying to limit tiles for a country (France) using <region> as documented here https://geos.readthedocs.io/en/latest/users.html#creating-mapsources Here is my mapsource

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
    <name><![CDATA[FR - IGN SCAN25]]></name>
    <minZoom>6</minZoom>
    <maxZoom>16</maxZoom>
    <tileType>jpg</tileType>
    <url><![CDATA[https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR.CV&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX={$z}&TILEROW={$y}&TILECOL={$x}.jpg]]></url>
    <tileUpdate>IfModifiedSince</tileUpdate>
    <backgroundColor>#00000000</backgroundColor>
    <ignoreErrors>true</ignoreErrors>
    <region>
        <north>51.2</north>
        <south>41.2</south>
        <east>9</east>
        <west>-5.2</west>
   </region>
</customMapSource>

the result is a GoogleEarth area corresponding to:

        <north>55.75</north>
        <south>41</south>
        <east>0</east>
        <west>-22,5</west>

Clipboard01

Either i didn't understood the purpose of <region>, the unit (actually in WGS84 lat/lon ) or there is a bug

my 2 cents:

parameters seems not being in the right order

grst commented 3 years ago

It's a geos issue, I transferred it now.

Not sure what the problem is though. The order or parameters doesn't matter when using keyword arguments. I currently don't have time to look into this, but if you solve the problem and make a PR I'd merge it.