Quantcast
Channel: Random notes & other stuff... » sysadmin
Viewing all articles
Browse latest Browse all 3

Fixing some GoogleEarth 5 problems on Ubuntu 9.04

$
0
0

GE has at least two huge problems on Ubuntu platforms. One of them only affect certain locales.

The first problem : the font used for menus. It can be really unreadable or messed up depending on you XOrg DPI settings, and can get worse with your locale too.

Since GE is a Qt4 application you can fix this by changing Qt4 settings.
Start qtsettings-qt4 (sudo apt-get install qt4-qtconfig if you don’t have it), and change point size of the selected font to 12 or more. This fixes the problem (at least for me).

While you’re at it, change the used font from « Sans Uralic » to something more complete (like « FreeSans »), which displays non-english characters *much* better.

The second problem is a real pain : when you have a locale that uses a comma (« , ») as the decimal separator, any Placemarks (or anything that has coordinates) will be saved with commas instead of dots. Indeed, the KML format only uses decimal coordinates, not HMS style, so whatever settings you use in GE options, this will affect you.

For instance, if you create a placemark at lon : 1.624801627833013, lat : 47.64969184876774, it will be saved in your ~/.googleearth/myplaces.kml as :

1,624801627833013,47,64969184876774,0

(instead of <coordinates>1.624801627833013,47.64969184876774,0</coordinates>).

When you’ll restart GE, it will try reinterpret the wrong entry as :

1,180,47

leaving you with a placemark really way off…

To fix this, you have to start GE with an english locale.
for instance, you can change the GE script /usr/bin/googleearth (which is a bash script), and add this below the line with export in it :

export LC_ALL=C
export LANG=C

As a side effect, this will make GE show all menus in english. You can fix this in the Tools/Options/General menu and select your language. to fix this (thanks smatiauda for suggestion).

In the modified /usr/bin/googleearth script, you can also add :

cp ~/.googleearth/myplaces.kml ~/.googleearth/myplaces.`date +%Y%m%d%H%M`.bak

so it will make a backup of your myplaces.kml before GE is started.
When you’ll update GE, and forget about changing startup script, you’ll at least have a valid backup of your myplaces.kml.

There is a third annoying problem I could not fix yet : copy/paste from linux app to GE works fine, until you copy something in GE : the copy buffer in GE will never change to something copyed from another app (while still working fine in GE). Very painful when you copy past coordinates from anoter application.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images