News:

Thou shalt confirm thine airspeed on final, lest the earth rise up and smite thee. (pre-landing checklist, v1)

Main Menu

Kml Button

Started by Munroman, January 05, 2013, 11:29:39 AM

Previous topic - Next topic

Munroman

Hi,

I have only recently installed Plan-G and everything seems fine except for loading kml files.  When I click the kml button nothing happens - the open file dialogue box doesn't open - just nothing?

I initially had the same problem with flight plans - I couldn't save a plan because Plan-G would crash and when I tried to load a plan the open file dialogue box wouldn't open.  I had a look in the config file and entered the location of my Plan-G files and now the loading and saving of plans works fine.  I was looking for a similar entry related to kml files but couldn't find anything?

Hope someone can help because other than this very small problem it would appear to be an excellent application.  The viewing of kml files is not a necessity but it would be nice :-)

tim arnot

Please upload the log file, thanks.

Tim. @TimArnot

Munroman

Thanks Tim.  Log file text below:-

16:44:54.2 Starting Plan-G, build 3.0.2.51
16:44:54.2 OS is Microsoft Windows NT 6.1.7601 Service Pack 1
16:44:54.5 InitDataFolder
16:44:54.5 Data Source = F:\Plan-G Files\Data\PlanG3_FSX.sdf
16:44:54.5 Data Source = F:\Plan-G Files\Data\PlanG3_FS9.sdf
16:44:54.5 Data Source = F:\Plan-G Files\Data\PlanG3_XPX.sdf
16:44:54.5 Data Source = F:\Plan-G Files\Data\PlanG3_NAVI.sdf
16:44:54.5 Data Source = F:\Plan-G Files\Data\UserWaypoints.sdf
16:44:54.5 Data Source = F:\Plan-G Files\Data\MEF.sdf
16:44:55.6 Map tiles cache: C:\Users\Bill\AppData\Local\GMap.NET\
16:44:55.9 Program in: C:\TA Software\Plan-G v3
16:44:55.9 Data in: F:\Plan-G Files
16:44:55.9 IsDataLoaded: FSX
16:44:55.9 Data Source = F:\Plan-G Files\Data\PlanG3_FSX.sdf
16:44:57.1 Starting timer
16:44:57.1 DownloadCurrentMetars thread started
16:44:57.1 Metar15Z.TXT started
16:44:57.1 Metar16Z.TXT started
16:44:57.1 lTAF06Z.TXT started
16:44:57.1 sTAF12Z.TXT started
16:44:57.8 sTAF12Z.TXT done
16:44:57.8 lTAF12Z.TXT started
16:44:58.6 sTAF06Z.TXT started
16:44:59.4 Connection string: metadata=res://*/Data.FSData.csdl|res://*/Data.FSData.ssdl|res://*/Data.FSData.msl;provider=System.Data.SqlServerCe.3.5;provider connection string='Data Source=|DataDirectory|\Data\PlanG3_FSX.sdf'
16:44:59.4 sTAF06Z.TXT done
16:44:59.7 lTAF06Z.TXT done
16:45:00.2 lTAF12Z.TXT done
16:45:02.0 NdbsInBounds 0
16:45:02.2 VorsInBounds 0
16:45:03.0 AirportsInBounds 0
16:45:03.5 AirspaceInBounds 11
16:45:03.9 IsDataLoaded: FSX
16:45:03.9 Data Source = F:\Plan-G Files\Data\PlanG3_FSX.sdf
16:45:03.9 IsDataLoaded: FS9
16:45:03.9 Data Source = F:\Plan-G Files\Data\PlanG3_FS9.sdf
16:45:04.0 IsDataLoaded: XPlane
16:45:04.0 Data Source = F:\Plan-G Files\Data\PlanG3_XPX.sdf
16:45:04.1 NdbsInBounds 0
16:45:04.2 VorsInBounds 0
16:45:04.3 AirportsInBounds 0
16:45:04.4 AirspaceInBounds 11
16:45:04.6 Stopping timer
16:45:04.6 StartMap
16:45:04.7 NdbsInBounds 0
16:45:04.7 VorsInBounds 0
16:45:04.8 AirportsInBounds 0
16:45:04.9 AirspaceInBounds 11
16:45:04.9 NdbsInBounds 0
16:45:04.9 VorsInBounds 0
16:45:05.0 AirportsInBounds 0
16:45:05.1 AirspaceInBounds 11
16:45:05.5 Metar16Z.TXT done
16:45:05.7 NdbsInBounds 0
16:45:05.8 VorsInBounds 0
16:45:05.8 AirportsInBounds 0
16:45:05.9 AirspaceInBounds 11
16:45:06.0 Metar15Z.TXT done
16:45:06.0 DownloadCurrentMetars done
16:45:07.6 ProcessMetars done
16:45:15.8 _Backstage_IsOpenChanged: True
16:45:25.4 Opening native Flight Plan: F:\Plan-G Files\Flight_Plans\VFR Kinlochewe Farm Strip to Kinlochewe Farm Strip Via Ullapool.plg
16:45:26.0 Setting default plan air & wind speeds
16:45:26.0 Consolidating internal plan pointers
16:45:26.1 Consolidate: Checking alternate
16:45:26.1 Consolidate: Starting loop. 9 items
16:45:26.1 GetAirportsInList. SQL=SELECT VALUE c FROM PlanG_FSEntities.Airports AS c WHERE c.icao = 'EGKE' OR c.icao = 'EGKE'
16:45:26.4 Consolidate: Calculating distances and headings
16:45:26.6 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.6 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.6 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.6 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.7 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.7 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.8 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.8 Getting elevation data from F:\Plan-G Files\DEM\b10g
16:45:26.8 Consolidate: Clearing enroute data
16:45:27.0 DrawFlightplanMarker: True
16:45:27.2 NdbsInBounds 0
16:45:27.2 VorsInBounds 0
16:45:27.3 AirportsInBounds 0
16:45:27.4 AirspaceInBounds 11
16:45:27.4 _Backstage_IsOpenChanged: False
16:45:34.0 ShowKML_Executed: System.ArgumentException: Value does not fall within the expected range.
   at MS.Internal.AppModel.ShellUtil.GetShellItemForPath(String path)
   at Microsoft.Win32.FileDialog.PrepareVistaDialog(IFileDialog dialog)
   at Microsoft.Win32.FileDialog.RunVistaDialog(IntPtr hwndOwner)
   at Microsoft.Win32.FileDialog.RunDialog(IntPtr hwndOwner)
   at Microsoft.Win32.CommonDialog.ShowDialog()
   at Plan_G3.MainWindow.<.ctor>b__3(NotificationMessageAction`1 fileMsg) in C:\Users\skyhawk\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\MainWindow.xaml.cs:line 137
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.Execute(T parameter)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.ExecuteWithObject(Object parameter)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage message, IEnumerable`1 list, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message)
   at Plan_G3.ViewModel.MainViewModel.ShowKML_Executed() in C:\Users\skyhawk\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\ViewModel\MainViewModel.cs:line 4318
16:45:42.7 ShowKML_Executed: System.ArgumentException: Value does not fall within the expected range.
   at MS.Internal.AppModel.ShellUtil.GetShellItemForPath(String path)
   at Microsoft.Win32.FileDialog.PrepareVistaDialog(IFileDialog dialog)
   at Microsoft.Win32.FileDialog.RunVistaDialog(IntPtr hwndOwner)
   at Microsoft.Win32.FileDialog.RunDialog(IntPtr hwndOwner)
   at Microsoft.Win32.CommonDialog.ShowDialog()
   at Plan_G3.MainWindow.<.ctor>b__3(NotificationMessageAction`1 fileMsg) in C:\Users\skyhawk\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\MainWindow.xaml.cs:line 137
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.Execute(T parameter)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.ExecuteWithObject(Object parameter)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage message, IEnumerable`1 list, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message)
   at Plan_G3.ViewModel.MainViewModel.ShowKML_Executed() in C:\Users\skyhawk\Documents\Visual Studio 2010\Projects\Plan-G3\Plan-G3\ViewModel\MainViewModel.cs:line 4318
16:45:49.0 NdbsInBounds 0
16:45:49.1 VorsInBounds 0
16:45:49.2 AirportsInBounds 1
16:45:49.5 AirspaceInBounds 12

tim arnot

That's a very strange error - I haven't seen it before. You could try deleting the cfg file in case the path parameter is corrupt. The location of the cfg is given in the readme (it's not the copy that's in the program folder) Unfortunately I won't have access to my PC till tonight so I can't be more specific just now.

Tim. @TimArnot

Munroman

Hi Tim,

Tried deleting the cfg file - made no difference :-(

As I explained earlier on my first use I couldn't open or save filght plans withtout the app crashing.  I located the config file and found the locations for flight plans and bookmarks empty.  I edited the config by entering the locations of the folders and all was well.  I have been through the config file several times now but can't see any reference to a folder for kml/kmz files - should there be one?

tim arnot

No it uses the general one, but you had a problem with opening other files - hence my thought.

I've googled the error, and I have another thought: Have you changed the "My Documents" folder on your PC?

Tim. @TimArnot

Munroman

Yes - I created a separate partition on my drive to keep things tidy :-)

tim arnot

Ah. I think that's the cause of the problem. I'll see what I can do to fix it in build 52.

Tim. @TimArnot