Google
Official Google Earth Download Site

Google Earth Community System Reliability: HIGH

Support and Answers >> KML Discussions (read only)

Jump to first unread post. Pages: 1 | 2 | 3 | 4 | >> (show all)
PatrickB
Tourist


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: pawill79]
      #658037 - 10/25/06 10:35 AM

when running superoverlay.py or testextractor.py I am getting the following error:

ERROR 1: TIFFOpen:/tmp/file.gtiff: No such file or directory
Traceback (most recent call last):
File "C:\regionator\tests\testextractor.py", line 36, in ?
ex.Extract(0,0,256,256,'0')
File "C:\regionator\kml\extractor.py", line 100, in Extract
o_ds.WriteRaster(0,0,twid,tht,i_data)
AttributeError: 'NoneType' object has no attribute 'WriteRaster'

can anyone help?

--------------------
-Pattt
http://adventuresforthecure.com


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: PatrickB]
      #658107 - 10/25/06 11:30 AM

oh nevermind. I simply had to create a C:\tmp directory on my system.


--------------------
-Pattt
http://adventuresforthecure.com


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: PatrickB]
      #658235 - 10/25/06 01:43 PM

Tnx for reporting this.

I just updated the code to use a safer and platform independent temp file method.

happy regionating...


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: regionator]
      #659080 - 10/26/06 05:34 AM

Awesome! Thanks Regionator... I just checked out the new code and it works great.

I am new to python (started using it 2 days ago when I checked out regionator).

when running the regionator code I am getting the following errors:

version 81
original dimensions (880, 880)
maxdepth 4
count 24
root region (28.828125, 28.125, -80.15625, -80.859375)
llb-3\4.kml
llb-3\5.kml
llb-3\6.kml
llb-3\7.kml
llb-3\3.kml
llb-3\9.kml
llb-3\10.kml
llb-3\11.kml
llb-3\12.kml
llb-3\8.kml
llb-3\2.kml
llb-3\15.kml
llb-3\16.kml
llb-3\14.kml
llb-3\13.kml
llb-3\18.kml
llb-3\20.kml
llb-3\21.kml
llb-3\22.kml
llb-3\23.kml
llb-3\19.kml
llb-3\17.kml
llb-3\24.kml
llb-3\1.kml
Extractor NASA_KSC.jpg 3 bands
1/24 llb-3\1.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpx-lf88GTiff failed.

2/24 llb-3\2.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmp__uo3bGTiff failed.

3/24 llb-3\3.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpudegm5GTiff failed.

4/24 llb-3\4.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmp78vghwGTiff failed.

5/24 llb-3\5.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpctoubgGTiff failed.

6/24 llb-3\6.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpl8odn2GTiff failed.

7/24 llb-3\7.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpungpbyGTiff failed.

8/24 llb-3\8.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpzaxovtGTiff failed.

9/24 llb-3\9.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpisjsccGTiff failed.

10/24 llb-3\10.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpan4qtcGTiff failed.

11/24 llb-3\11.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmp4qcwkyGTiff failed.

12/24 llb-3\12.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpo-ppxvGTiff failed.

13/24 llb-3\13.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpef8lb1GTiff failed.

14/24 llb-3\14.JPEG
15/24 llb-3\15.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpp7swwtGTiff failed.

ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpcdunluGTiff failed.

16/24 llb-3\16.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpxvz7h5GTiff failed.

17/24 llb-3\17.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpsf4jhcGTiff failed.

18/24 llb-3\18.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpffdsakGTiff failed.

19/24 llb-3\19.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpq5c5s3GTiff failed.

20/24 llb-3\20.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpcchkdmGTiff failed.

21/24 llb-3\21.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmppeoxfeGTiff failed.

22/24 llb-3\22.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpf3wcv4GTiff failed.

23/24 llb-3\23.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmpiqfgotGTiff failed.

24/24 llb-3\24.JPEG
ERROR 1: GTiff: Attempt to unlink c:\docume~1\admini~1\locals~1\temp\tmptfzq5sGTiff failed.

What does that mean and where is it comming from? The error message is not very descriptive.

Thanks!

--------------------
-Pattt
http://adventuresforthecure.com


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: bplewe]
      #659085 - 10/26/06 05:35 AM

I had to do the same thing on my Windows system. Has anyone figured out a better way to do this?

--------------------
-Pattt
http://adventuresforthecure.com


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: vestigialars]
      #659097 - 10/26/06 05:45 AM

Here are the steps that I followed to get it working on my windows machine.

1. Go to Google Earth Regionator Project Home and checkout the latest version of the code using svn (I used TortuseSVN )
2. Go to Python 2.4 and download Python 2.4
3. Go to UrbanSim's GDAL installation page and download/install GDAL (I followed the instructions for Quick Installation )
4. Go to NumPy and download/install NumPy from it’s Sourceforge download site (you should download numpy-1.0.win32-py2.4.exe)

Put all those pieces together in the same order as above and everything should work great (on windows).

For fun I also downloaded PyDev which is a super awesome extension to Eclipse 3.2 for python development!!

--------------------
-Pattt
http://adventuresforthecure.com


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: PatrickB]
      #659357 - 10/26/06 09:38 AM

So,
I have a ridiculously big jpg image ~ 20,000px x 20,000px. I tried running regionator on it and it quickly creates ~ 5,500.kml files. Then it starts making the .jpeg files. The first few take almos 1 minute each to create but it gets faster after that. I have not delved into the code yet and I am not saying that it runs too slow, but I am wondering if there is any easy way to make it faster? Or could someone at least point me in the right direction or have any ideas about this?

Thanks!

--------------------
-Pattt
http://adventuresforthecure.com


Post Extras: Print Post   Remind Me!   Report this Post  
Forkboy2
Cartographer


Reged: 07/16/05
Posts: 445
Re: A new tool for creating Region-based KML [Re: PatrickB]
      #659695 - 10/26/06 02:21 PM

I have a feeling you're going to start running into problems with a file that large even if you do get it to work. The more levels of nested KMLs you have, the more GE seems to choke trying to process all of them as you zoom in. Anything more than a 32x32 grid of tiles and things really start to slow down. At least that's been my experience. Might not be so bad if you're not planning on putting the files online.

Matt


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: PatrickB]
      #659889 - 10/26/06 06:30 PM

20k x 20k is entirely reasonable (and pretty much the whole point :-)
and we've done significantly larger with this exact software.

Extracting 5000+ tiles takes time indeed. Some will be faster than
others as the code is extracting and resampling the original at
each level of hierarchy. I would guess 10's of minutes, but it
obviously depends on your hardware and likely very much on
how much RAM you have.

We've created SuperOverlays upwards of 400,000 tiles and pretty
deep hierarchies.


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


Reged: 07/28/05
Posts: 17
Re: A new tool for creating Region-based KML [Re: regionator]
      #660352 - 10/27/06 05:23 AM

Thats good news.

Say I am running on a multiprocessor system does anyone have any suggestions on how I could better thread the program to make it run faster? Would adding threading even make a difference?

Or is the only solution to this problem (kinda slow with huge files) to throw more hardware at it?

--------------------
-Pattt
http://adventuresforthecure.com


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




Extra information
0 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, MarkAubin 

Print Topic

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

Rating: *****
Topic views: 56510

Rate this topic

Jump to

earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1