Search the Community
Showing results for tags 'fsearthtiles'.
Found 2 results
-
Hello, I managed to make the EOX Sentinel-2 Cloudless map work for FSEarthTiles 🙂 What you need to do: Step 1: a) Open "FSEarthTiles.ini" b) Copy and paste that under your sources [Service5] ServiceName = Sentinel 2 Cloudless map ServiceCodeing = zyx ServiceUrl = https://a.tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2019_3857/default/GoogleMapsCompatible/%s.jpg Referer = https://a.tiles.maps.eox.at UserAgent = Mozilla/4.0 ServerVariations = a,b,c,d c) Rename your Service Number according to your file For me it's Service5 but for you it may be different so rename it so that it follows your current sources Referer and UserAgent are optional, you can disable them by commenting them using "#". I have noted no difference with or without these lines Step 2: IF YOU DON'T FOLLOW IT IT WON'T WORK a) Open "TileCodeingScript.cs" (in the FSEarthTiles folder) with notepad b) Locate the lines: else if (EarthCommon.StringCompare(iUseCode, "zxy")) { Int64 vServiceZ = EarthMath.cLevel0CodeDeep - iAreaCodeLevel; Int64 vServiceX = iAreaCodeX; Int64 vServiceY = iAreaCodeY; //vResultCode = "&x=" + vServiceX.ToString() + "&y=" + vServiceY.ToString() + "&z=" + vServiceZ.ToString(); vResultCode=vServiceZ.ToString() + "//" + vServiceX.ToString() + "//" + vServiceY.ToString(); } c) Now after these lines copy and paste the following lines : else if (EarthCommon.StringCompare(iUseCode, "zyx")) { Int64 vServiceZ = EarthMath.cLevel0CodeDeep - iAreaCodeLevel; Int64 vServiceX = iAreaCodeY; Int64 vServiceY = iAreaCodeX; //vResultCode = "&x=" + vServiceX.ToString() + "&y=" + vServiceY.ToString() + "&z=" + vServiceZ.ToString(); vResultCode=vServiceZ.ToString() + "//" + vServiceX.ToString() + "//" + vServiceY.ToString(); } Like so : For People who want to know why the second step: -Why do we have to do this? -Because, the source link is like this : https://a.tiles.maps.eox.at/.../ZoomLevel/Latitude/Longitude If you think of a grid you have X = longitude and Y = latitude Now FSEarthtiles must read the link and that's what the ServiceCodeing is for: By putting zxy, FSEarthtiles will read the ZoomLevel, the Longitude and the Latitude in THAT order. You see the problem? FSEarthTiles reads Longitude where the Latitude is in the link so X and Y are inversed. Because there was no "zyx" read mode I had to implement it myself by just copying the "zxy" elif instruction and just inverse X and Y. Maybe there is a smarter way to do it directly in the FSEarthTiles.ini file but I don't know. And that's it ! :) I like the EOX map more than google and bing because even if the max zoom is something like 4m/pixel it gives -a cloudless map -more vivid and beautiful colors than Google and Bing in my opinion
- 7 replies
-
- 2
-
- fsearthtiles
- photoreal
- (and 7 more)
-
Some various screenshots I've taken over some scenery generated with FSEarthTiles. It's an amazing program, it really enriches FS2004 for those with older legacy aircraft they enjoy. John
- 10 replies