![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| FSX terrain Use this forum to discuss problems related to the FSX terrain scenery and FSX SDK tools (resample, shp2vec) |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Fs earth tiles, error
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;
}
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 Thanks. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Tags |
| fs earth tiles, pnoa, terrain |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't compile airport in ADE | brs_pilot | Airport Design Editor | 5 | 23 Jan 2011 07:16 |
| [FSX] BGL compiler can not work!! | athrun | Airport Design Editor | 12 | 28 Jul 2009 09:24 |
| BGL Compile Errors | Raptor404 | BGLComp XML, AFCAD, SceneGenX | 1 | 29 May 2009 18:45 |
| Wonderfull error list | supercar1000 | FSX Planner | 4 | 06 Aug 2008 12:59 |
| XML To BGL Problems | BillyMichael | General | 13 | 24 Jul 2007 06:14 |