Difference between revisions of "GeoView"

From Gramps
Jump to: navigation, search
Line 1: Line 1:
 
Work in progress.
 
Work in progress.
 +
 
Be patient. All comments are welcomed.
 
Be patient. All comments are welcomed.
 +
 
I'm not a native english writer, so I surely do mistakes.
 
I'm not a native english writer, so I surely do mistakes.
  
All we need to understand and test GeoView.
+
'''All we need to understand and test GeoView.'''
  
  
 
== Why GeoView ? ==
 
== Why GeoView ? ==
  
I would like to see my ancestors all around the world on a map. And if possible, I would like to see them moving during time periods. How to do this easily ? and with the minimum of software ! GeoView is one solution. You can always provide yours !
+
I would like to see my ancestors all around the world on a map. And if possible, I would like to see them moving during time periods. How to do this easily ? and with the minimum of software !
 +
 
 +
GeoView is one solution. You can always provide yours !
  
 
== The html kits ==
 
== The html kits ==
 
We can use webkit or gtkmozembed to view html pages. If no one is installed, you'll never see GeoView.
 
We can use webkit or gtkmozembed to view html pages. If no one is installed, you'll never see GeoView.
If the two kits are installed, webkit will be used.<br>
+
 
For web browsing, we need to be connected to the network.<br>
+
If the two kits are installed, webkit will be used.
Even if you have a html kit installed, can can always say : I don't mind ! I don't want to see the HtmlView.<br>
+
 
 +
For web browsing, we need to be connected to the network.
 +
 
 +
Even if you have a html kit installed, can can always say : I don't mind ! I don't want to see the HtmlView.
 +
 
 
For this, you can disallow Geoview in the Internet Maps preferences tab.
 
For this, you can disallow Geoview in the Internet Maps preferences tab.
<br>I don't want to make a troll here. I use gnome and kde on my machine. I'm kde, my wife is gnome. So the war between gnome, kde or any WM doesn't need to start here.
 
  
 
=== WebKit ===
 
=== WebKit ===
 
It's the future. Be aware, WebKit is always in development. I already test this with segmentation fault, ...
 
It's the future. Be aware, WebKit is always in development. I already test this with segmentation fault, ...
 +
 +
More and more projects are integrating webkit ...
 
==== Proxies ====
 
==== Proxies ====
 
I don't know how WebKit works at this level. I think it uses some configuration file or environment variable.
 
I don't know how WebKit works at this level. I think it uses some configuration file or environment variable.
I need help about this.
 
  
 +
''I need help about this.''
 
=== Gecko ( GtkMozEmbed ) ===
 
=== Gecko ( GtkMozEmbed ) ===
There will be no more development for html 5 with gtkmozembed for the moment. What will gtkmozembed be in the future ?
+
What will gtkmozembed be in the future ?
 
==== Proxies ====
 
==== Proxies ====
 
GtkMozEmbed is proxy aware. I implement this and I use the http_proxy environment variable.
 
GtkMozEmbed is proxy aware. I implement this and I use the http_proxy environment variable.
authentication is allowed. The http_proxy format used is :
+
Authentication is allowed. The http_proxy format used is :
<br>http://[user:[email protected]]proxy:port/
 
  
 +
http://[user:[email protected]]proxy:port/
 
== The maps providers ==
 
== The maps providers ==
 
There are a lot of providers. Some are free.
 
There are a lot of providers. Some are free.
 +
 
By default, the provider is OSM ( OpenStreetMap ).
 
By default, the provider is OSM ( OpenStreetMap ).
 +
 
This provider depends on the community and the maps are very light depending on the country. Nevertheless, the community made an extraordinary job since a few month. We can say OpenStreetMap is and will be the map for gramps.
 
This provider depends on the community and the maps are very light depending on the country. Nevertheless, the community made an extraordinary job since a few month. We can say OpenStreetMap is and will be the map for gramps.
  
Line 39: Line 50:
 
A lot of private or non free maps depends on OpenLayers.
 
A lot of private or non free maps depends on OpenLayers.
  
The most interesting is the IGN ( Institut Géographique National Français ) which offers an old map of France ( about 1780 )
+
The most interesting is the IGN ( Institut Géographique National Français ) which offers an old map of France ( about 1780 ) but this provider needs a key. I'll speek about keys later.
but this provider needs a key. I speek about keys later.
 
  
 
You have Googlemaps, Yahoo! maps, Microsoft maps, ...
 
You have Googlemaps, Yahoo! maps, Microsoft maps, ...
  
 
== mapstraction ==
 
== mapstraction ==
Like you can see, it's impossible to implement all providers. For this, some people created an api over all these providers.
+
Like you can see, it's impossible to implement all providers maps. For this reason, some people created an api over all these providers api.
With only a few modification, you can use the map you want. And better, you can switch between the maps keeping the zoom and the centered position.
+
 
<br>It's also in the development phase and is buggy.
+
With only a few modification, you can use the map you want. And better! you can switch between the maps keeping the zoom and the centered position.
 +
 
 +
It's also in the development phase and is sometimes buggy.
  
 
== The provider Key ==
 
== The provider Key ==
Line 57: Line 69:
 
In these case, I hope you understand the choice is limited even is mapstraction can do more.
 
In these case, I hope you understand the choice is limited even is mapstraction can do more.
 
=== Constraint ===
 
=== Constraint ===
We have no key, so we have a restricted access : About 10,000 to 15,000 request by IP per day depending on the provider.
+
We have no key, so we have a restricted access : About 10,000 to 15,000 requests by IP per day depending on the provider.
 +
 
 +
What is a request ? As I understand with the IGN ( OpenLayers ), a request is an image. You need several images for a view.
 +
 
 
I think it is sufficient for the lambda genealogist.
 
I think it is sufficient for the lambda genealogist.
  
 
== The proxies ==
 
== The proxies ==
Everybody doesn't need a proxy. The majority in connected directly to internet. In this case, forget all this.
+
Everybody doesn't need a proxy. The majority of us are connected directly to internet. In this case, forget all this.
 +
 
 
You need a proxy only if you installed one or if you depend on some fai which provides one.
 
You need a proxy only if you installed one or if you depend on some fai which provides one.
  
 
== How to get the html kits ? ==
 
== How to get the html kits ? ==
It depends on the distribution you're working on !
+
It depends on the distribution you're working on ! They are listed in reverse order.
 +
 
 +
python-webkitgtk is also called pywebkitgtk
 +
=== ubuntu  ===
 +
==== webkit ====
 +
You needs libwebkit and python-webkitgtk.
 +
 
 +
Add to the /etc/apt/sources.list :
 +
 
 +
# for python-webkitgtk
 +
 
 +
deb http://ppa.launchpad.net/gwibber-team/ubuntu hardy main
 +
 
 +
# for libwebkit
 +
 
 +
deb http://ppa.launchpad.net/webkit-team/ubuntu hardy main
 +
 
 +
It's from nightly builds, so it can crash.
 +
 
 +
If you have some crash and want to install the working package, you can get libwebkit
 +
from the following url :
 +
 
 +
https://edge.launchpad.net/~stemp/+archive
 +
==== gecko ====
 +
If you want gtkmozembed on ubuntu,
 +
you must install : python-gnome2-extras
 +
 
 +
It's stable but install many gnome packages even if you are on a kde based distribution.
  
 +
Please, don't troll !
 +
=== suse ===
 +
==== webkit ====
 +
==== gecko ====
 +
=== mandriva ===
 +
==== webkit ====
 +
==== gecko ====
 +
=== fedora ===
 +
==== webkit ====
 +
==== gecko ====
 +
=== debian ===
 +
==== webkit ====
 +
==== gecko ====
 
== ... ==
 
== ... ==
 +
You modifications are welcomed ...

Revision as of 10:45, 14 December 2008

Work in progress.

Be patient. All comments are welcomed.

I'm not a native english writer, so I surely do mistakes.

All we need to understand and test GeoView.


Why GeoView ?

I would like to see my ancestors all around the world on a map. And if possible, I would like to see them moving during time periods. How to do this easily ? and with the minimum of software !

GeoView is one solution. You can always provide yours !

The html kits

We can use webkit or gtkmozembed to view html pages. If no one is installed, you'll never see GeoView.

If the two kits are installed, webkit will be used.

For web browsing, we need to be connected to the network.

Even if you have a html kit installed, can can always say : I don't mind ! I don't want to see the HtmlView.

For this, you can disallow Geoview in the Internet Maps preferences tab.

WebKit

It's the future. Be aware, WebKit is always in development. I already test this with segmentation fault, ...

More and more projects are integrating webkit ...

Proxies

I don't know how WebKit works at this level. I think it uses some configuration file or environment variable.

I need help about this.

Gecko ( GtkMozEmbed )

What will gtkmozembed be in the future ?

Proxies

GtkMozEmbed is proxy aware. I implement this and I use the http_proxy environment variable. Authentication is allowed. The http_proxy format used is :

http://[user:[email protected]]proxy:port/

The maps providers

There are a lot of providers. Some are free.

By default, the provider is OSM ( OpenStreetMap ).

This provider depends on the community and the maps are very light depending on the country. Nevertheless, the community made an extraordinary job since a few month. We can say OpenStreetMap is and will be the map for gramps.

Openlayers is free too and uses by default OSM map. A lot of private or non free maps depends on OpenLayers.

The most interesting is the IGN ( Institut Géographique National Français ) which offers an old map of France ( about 1780 ) but this provider needs a key. I'll speek about keys later.

You have Googlemaps, Yahoo! maps, Microsoft maps, ...

mapstraction

Like you can see, it's impossible to implement all providers maps. For this reason, some people created an api over all these providers api.

With only a few modification, you can use the map you want. And better! you can switch between the maps keeping the zoom and the centered position.

It's also in the development phase and is sometimes buggy.

The provider Key

Gramps is not a web site. Keys are only for web site. In GeoView, I use a specific functionality : We are working on local file instead of url, so we don't need a key. some providers like IGN needs key even in this case. So I can't use them. Why ?

  1. Too complex for final user's.
  2. We need a key by provider

In these case, I hope you understand the choice is limited even is mapstraction can do more.

Constraint

We have no key, so we have a restricted access : About 10,000 to 15,000 requests by IP per day depending on the provider.

What is a request ? As I understand with the IGN ( OpenLayers ), a request is an image. You need several images for a view.

I think it is sufficient for the lambda genealogist.

The proxies

Everybody doesn't need a proxy. The majority of us are connected directly to internet. In this case, forget all this.

You need a proxy only if you installed one or if you depend on some fai which provides one.

How to get the html kits ?

It depends on the distribution you're working on ! They are listed in reverse order.

python-webkitgtk is also called pywebkitgtk

ubuntu

webkit

You needs libwebkit and python-webkitgtk.

Add to the /etc/apt/sources.list :

  1. for python-webkitgtk

deb http://ppa.launchpad.net/gwibber-team/ubuntu hardy main

  1. for libwebkit

deb http://ppa.launchpad.net/webkit-team/ubuntu hardy main

It's from nightly builds, so it can crash.

If you have some crash and want to install the working package, you can get libwebkit from the following url :

https://edge.launchpad.net/~stemp/+archive

gecko

If you want gtkmozembed on ubuntu, you must install : python-gnome2-extras

It's stable but install many gnome packages even if you are on a kde based distribution.

Please, don't troll !

suse

webkit

gecko

mandriva

webkit

gecko

fedora

webkit

gecko

debian

webkit

gecko

...

You modifications are welcomed ...