FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - Terrain Design > FSX terrain

FSX terrain Use this forum to discuss problems related to the FSX terrain scenery and FSX SDK tools (resample, shp2vec)

Reply
 
Thread Tools Display Modes
  #1  
Old 24 Mar 2012, 08:42
ARV187 ARV187 is offline
  spain
Join Date: Jan 2012
Posts: 29
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;
}
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.
Attached Thumbnails
Click image for larger version

Name:	fsearthtileserror.JPG
Views:	58
Size:	55.5 KB
ID:	11842  
Reply With Quote
  #2  
Old 28 Mar 2012, 16:22
propkop2k2 propkop2k2 is offline
  southafrica
Join Date: Mar 2012
Posts: 1
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
Attached Files
File Type: zip TileCodeingScript.zip (1.4 KB, 91 views)
Reply With Quote
  #3  
Old 28 Mar 2012, 18:47
ARV187 ARV187 is offline
  spain
Join Date: Jan 2012
Posts: 29
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.
Reply With Quote
Reply

Tags
fs earth tiles, pnoa, terrain

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 18:29.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.