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/re...&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.