• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Fs earth tiles, error

Messages
54
Country
spain
Hi all,
Im trying learn to use the fs earth tiles program.

I want use a free images of govern, not google images.
So i tried apply this process: http://www.fspassengers.com/forum/read.php?f=9&i=6835&t=6835&page=2 following the question of SantiagoBG

But i have the error from image attched.

I wrote in TileCodeingScript.cs with the notepad:

Code:
using System;
using System.Collections.Generic;
using System.Text;
using FSEarthTilesInternalDLL;

namespace FSEarthTilesDLL
{
    public class TileCodeingScript
    {
        //The following Methodes will be called by FSEarthTiles:
        //MapAreaCoordToTileCode(Int64 iAreaCodeX, Int64 iAreaCodeY, Int64 iAreaCodeLevel, String iUseCode)

public String MapAreaCoordToTileCode(Int64 iAreaCodeX, Int64 iAreaCodeY, Int64 iAreaCodeLevel, String iUseCode)
{

String vResultCode = "";

if (EarthCommon.StringCompare(iUseCode, "xyz" ) ) // example Service 3 thank's to Steffen I.
{
...
}
else if (EarthCommon.StringCompare(iUseCode, "X1Y1X2Y2" ) ) // examples Services type NPOA (Spanish geografic institute) or
OpenLayers (Provided by MetaCarta, http://openlayers.org/)
{
Double vWestBorderLongitudeOfTile = EarthMath.GetAreaTileLeftLongitude (iAreaCodeX, iAreaCodeLevel);
Double vEastBorderLongitudeOfTile = EarthMath.GetAreaTileRightLongitude (iAreaCodeX, iAreaCodeLevel);
Double vNorthBorderLatitudeOfTile = EarthMath.GetAreaTileTopLatitude (iAreaCodeY, iAreaCodeLevel);
Double vSouthBorderLatitudeOfTile = EarthMath.GetAreaTileBottomLatitude (iAreaCodeY, iAreaCodeLevel);

vResultCode = vWestBorderLongitudeOfTile.ToString().Replace(",", "." ) + "," + vSouthBorderLatitudeOfTile.ToString().Replace
(",", "." ) + "," + vEastBorderLongitudeOfTile.ToString().Replace(",", "." ) + "," + vNorthBorderLatitudeOfTile.ToString().Replace(",", "." );

}
else // Quad mode, examples Services 1 and 2
{
Int64 vSteps = EarthMath.cLevel0CodeDeep - iAreaCodeLevel;
...
}
return vResultCode;
}

And in the file FSEarthTiles.ini, this:

Code:
[Service4]
ServiceCodeing = X1Y1X2Y2
ServiceUrl = http://www.idee.es/wms/PNOA/PNOA?REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&SRS=EPSG:4258&BBOX=%
s&WIDTH=256&HEIGHT=256&LAYERS=pnoa&STYLES=default&FORMAT=image/jpeg
#//EPSG:4258 ETRS89 //EPSG:4230 ED50 //EPSG:4326 WGS80

I need help, i cant find any information about this question.
Thanks.
 

Attachments

  • fsearthtileserror.JPG
    fsearthtileserror.JPG
    55.5 KB · Views: 606
Hi

Heres a working script file. The service url is split over two lines in your post. It should be on one continuous line. The line ending with the % symbol needs to continue with the 2nd line starting with

s&WIDTH=


It should read

Code:
ServiceUrl = http://www.idee.es/wms/PNOA/PNOA?REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&SRS=EPSG:4258&BBOX=%s&WIDTH=256&HEIGHT=256&LAYERS=pnoa&STYLES=default&FORMAT=image/jpeg
 

Attachments

Thanks by the help propkop2k2, not error messages now, but not work, i think that configuration of service PNOA changed or anything.
I finded other program to work, thanks. ;)
 
Back
Top