stackTom / FSEarthTiles

14 stars 2 forks source link

Microsoft .NET Framework Issue #20

Closed ChrisK0007 closed 4 months ago

ChrisK0007 commented 4 months ago

Hello,

I'm having a issue with FSTiles coming up with a Microsoft .NET Framework error and then crashing shorlty after.

Help would be much appreciated.

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.Exception: Unknown way relation at AutomaticWaterMasking.WaterMasking.DrawInlandPolys(List1 polys, Bitmap bmp, Graphics g, Point NW, Decimal pixelsPerLon, Decimal pixelsPerLat) at AutomaticWaterMasking.WaterMasking.GetMask(Dictionary2 allMaskingPolys, Int32 pixelsX, Int32 pixelsY, Point NW, Decimal pixelsPerLon, Decimal pixelsPerLat, Graphics g, Bitmap bmp) at FSEarthTilesDLL.FSEarthTilesForm.AreaAllWater() in G:\FSEarthTiles\FSEarthTiles\FSEarthTilesDLL\FSEarthTilesForm.cs:line 9542 at FSEarthTilesDLL.FSEarthTilesForm.MainThreadTimerEventProcessor(Object myObject, EventArgs myEventArgs) in G:\FSEarthTiles\FSEarthTiles\FSEarthTilesDLL\FSEarthTilesForm.cs:line 7651 at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

stackTom commented 4 months ago

Hi, can you send me your partialfsearthtiles.ini so I can investigate? To get this, go to the area you're trying to create and press the E button. It should create the file in your working directory. Thanks

ChrisK0007 commented 4 months ago

Thanks for the quick responce.

https://1drv.ms/u/s!AuUPIupEkMfjgrMb8wZkNMbJdBABog?e=2GdSBp

stackTom commented 4 months ago

Go to your working folder. Then Tiles/+36+127. Delete every file inside Tiles/+36+127, and try again. There was an error in the openstreetmap data. I have fixed this bad data on openstreetmap, and now it works fine.

ChrisK0007 commented 4 months ago

Thank you, that fixed that area. This area is also having the same issue: https://1drv.ms/u/s!AuUPIupEkMfjgrMb8wZkNMbJdBABog?e=g4yfLC

stackTom commented 4 months ago

Now, delete everything inside the +31+119 folder, and try again. OSM had bad data here as well which I've just fixed.

ChrisK0007 commented 4 months ago

Many thanks!

stackTom commented 4 months ago

No problem, let me know any other issues.