Google
Official Google Earth Download Site

Google Earth Community

Support and Answers >> KML Discussions (read only)

Jump to first unread post. Pages: 1 | 2 | 3 | 4 | (show all)
regionatorModerator
The Crusader


Reged: 01/24/06
Posts: 63
Re: A new tool for creating Region-based KML [Re: pawill79]
      #686568 - 11/16/06 09:06 AM


I'm not following why it's easier to change every KML file
within the hierarchy than it is to change just the root.kml file?
(This is the whole point of root.kml).

But, if you for some reason wish to bake absolute <href>'s
into your KML that will work most certainly. You might
also wish to do that with the <href>'s of the <GroundOverlay>
<Icon>'s as well?

It's certainly possible to bake in <href>'s to multiple
servers as well. Put kml on one server, and imagery on another.
Or, put different parts or levels of the overlay on different
servers. But, even then I suspect that load balancing
technologies at the webserver might be a better idea.

It's a very powerful concept that all <href>'s are relative
within the KML hierarchy. It means the exact same hierarchy
can be simultanously served over http or accessed as
local files (as I do pretty much all the time: I create the
overlay and verify it on my local file system and then
simply move the whole thing to a directory my favorite
http server can see and now everyone else is one
"Add Networklink" away from seeing it too).

Anyways... tnx for your interest in KML and the Regionator
and let me know if there's something I'm not understanding
about what you are trying to accomplish.


Post Extras: Print Post   Remind Me!   Report this Post  
pawill79
Tourist


Reged: 02/03/05
Posts: 14
Re: A new tool for creating Region-based KML [Re: regionator]
      #686930 - 11/16/06 02:39 PM

Making the change I stated previously only changes the "href" for the root.kml. The other associated kml's still have relative urls for its hierarchy. The main reason that the root.kml has to be changed for the href is because if it does not have a absolute http address then it tries to find the associated kml's on the local file system.

Here is an excerpt from the superoverlay.py in the svn trunk...

"The root file is a small NetworkLink KML file which points
to the top of the SuperOverlay. The href to 1.kml should be
changed to be the URL of the directory.
This file is
distributed to users of the SuperOverlay. Note that the
NetworkLink within is a Region-based load and that opening
this file in Google Earth neither loads any imagery nor
flies to the SuperOverlay. When the user flies to the
vicinity of the SuperOverlay this first NetworkLink is loaded
which triggers further NetworkLink loads within the SuperOverlay
as appropriate for the users viewpoint."

Since this seems that the root.kml has to be manually changed, I wanted just to show that you could make the change more dynamic by changing some of the python code.


Post Extras: Print Post   Remind Me!   Report this Post  
jsundqui
Tourist


Reged: 01/06/07
Posts: 5
Re: A new tool for creating Region-based KML [Re: regionator]
      #775989 - 01/29/07 08:43 PM

Quote:

Sounds like a problem with the installation of gdal or the gdal python bindings.

A quick first test of just gdal's python installation might be to start python
interactively and enter the following lines manually.

--SNIP--

>>> import gdal

--SNIP--




I have the problem of python not seeing gdal.

>>> import gdal

just gives me

ImportError: No module named gdal.

I am running Kubuntu Edgy, and I've installed python-gdal, which puts the modules in /usr/share/pycentral/python-gdal/site-packages

This is the same place that Debian testing puts this, although I noticed that Debian stable put the gdal python bindings in /usr/lib/python2.3/site-packages/

I suppose I could do a brute force kludge with sym-links if python is looking at /usr/lib/python2.*, but is there a better way?

Or is the /usr/share/pycentral/* approach correct, but I have other problems? Seems like there are plenty of other modules in /usr/share/pycentral/* For example, I built numeric before installing regionator, and the numeric python bindings also showed up there.

Any help is appreciated.


Post Extras: Print Post   Remind Me!   Report this Post  
jsundqui
Tourist


Reged: 01/06/07
Posts: 5
Re: A new tool for creating Region-based KML [Re: jsundqui]
      #775997 - 01/29/07 08:53 PM

Well, I looked all over before posting, but then I found that this is a recently patched bug:

http://www.mail-archive.com/pkg-grass-devel@lists.alioth.debian.org/msg01172.html

I'll see if I can get the fixed packages.


Post Extras: Print Post   Remind Me!   Report this Post  
vestigialars
Tourist


Reged: 10/05/06
Posts: 6
Re: A new tool for creating Region-based KML [Re: regionator]
      #779748 - 02/01/07 03:40 PM

Greetings All,
My organization has a grant funded project exploring applications of geospatial technologies, including high-resolution satellite imagery, to human rights work. Working in collaboration with groups such as Amnesty International and others, we attempt to develop and or acquire geospatial data and information to support legal, advocacy, and monitoring work undertaken by such organizations. Over the last year we've undertaken limited activities in Darfur/Chad, Zimbabwe, and Lebanon, which we've reprocessed for GoogleEarth using regionator code and some other tools.

I know there is a lot on GE already for some of these areas, and our GE products are probably crude compared to some, but regardless here they are:

http://shr.aaas.org/geotech/ge.shtml

We welcome any feedback and suggestions from the broader community out there. We will continue to post aspects of our work in similar fashion as we make progress. Above all, thanks to the regionator crew!

Thanks for your time,

Lars Bromley
American Association for
the Advancement of Science
lbromley@aaas.org


Post Extras: Print Post   Remind Me!   Report this Post  
urbanlayer
Tourist


Reged: 06/07/06
Posts: 6
Loc: Canada
Re: A new tool for creating Region-based KML [Re: pawill79]
      #824205 - 03/07/07 05:58 PM

Has anybody tried the new modelator.py? I'm trying to regionate my kml models into one network link but I am getting stuck on the rootkml file I think... Can anybody help? In command prompt, I ran " C:\Python25\Scripts>modelator.py C:\model_kml test.kml C:\temp7 " and get the following error many times in a row: " File "C:\Python25\Lib\site-packages\kml\region.py", line 194, _Search return child._Search(r) "

and then it tells me "RuntimeError: maximum recursion depth exceeded in cmp"

Any ideas?

Thanks in advance.


Post Extras: Print Post   Remind Me!   Report this Post  
regionatorModerator
The Crusader


Reged: 01/24/06
Posts: 63
Re: A new tool for creating Region-based KML [Re: urbanlayer]
      #825195 - 03/08/07 12:05 PM

What is the result of running testall.sh in the tests directory?
And/or what is the result of running testregion.py and testregionator.py?

I don't run this terribly often on Windows I'm afraid (I develop mostly on Mac OSX
and Linux) so if a Python-on-Windows guru wants to chime on some
obvious issue there we're all ears...


Post Extras: Print Post   Remind Me!   Report this Post  
Pages: 1 | 2 | 3 | 4 | (show all)




Extra information
1 registered and 16 anonymous users are browsing this forum.

Moderator:  Hill, Jumble, jrohlf, Kempster, mcshea98, jeffryv, dulce, esterrett, regionator, NormB, Frank_McVey, geus, ZeroDeeFeX, LaBelleTerre, vagabondsailor, SupersonicBuddha, DWebb, BeadieJay, TheLedge, Cyclonic, no_stranger, LuciaM, tekgergedan, ManoM, cantarell, toponym2006, Noisette, danescombe, Michal_Drewniak, mutex, marinerfan, Delta102, bebop 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating: *****
Topic views: 49592

Rate this topic

Jump to

earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1