Hi
After your suggestions,I find I actually open the kmz file by Google Earth software or by the IE that is installed the google earth plugin tool. That is, I just open the kmz file from my local hard drive. To find the root reason:
1,Firstly, I unintalled the Google earth software in my server.As expected, I can't open the kmz file in the /tmp/ folder.
2,Secondly, I check the TME_ExtForm.js file.I find I have modified the baseURL. In my TME_ExtForm.js file.
TME.google = {
earth: null, // Google Earth instance
baseURL: '
http://localhost/thematicmapping/tme/', // Local URL
networkLink: null // Link to KMZ file
}
--------------------------------------------------------------------------------------------------------------------
3,For find the reason,I modify the kmlfile link as the following:
var kmzlink ="
http://kml-samples.googlecode.com/svn/trunk/kml/NetworkLink/placemark.kml";
excute the url:
http://localhost/thematicmapping/tme/
I can get the correct preview on the webpage ,like pic3. it is right.
But use the former sentence:
the var kmzlink = TME.google.baseURL + action.result.file;
I just get the result like pic4
I again click the button of "download" and download the kmz file. But I can't unzip it. If I use the Google eaarth software ,I can open it but meet the error as the former mail i wrote.
So I think maybe the problem is in the process of creating the kmz file.not the google earth.
What do you think about that ?
------------------
Chunjing Han
2009-01-07
-------------------------------------------------------------
发件人:
thematicmapping.org
发送日期:2009-01-06 23:02:41
收件人:Thematic Mapping Engine
抄送:
主题:Re: the problem in my thematic map System
Bj鴕n
> I磎 trying 爐o implement the fantastic TME in my localhost, windows xp apache v2 and mysql, and php, everything looks fine.
> But I meet some trouble.
> Firstly,I use thehttp://localhost/thematicmapping/tme/and can get the select form page.When i submit the selected items, I can't get the information on the google Earth. like the pic1 in the attachment.
> Secondly,I use the example program to test and usehttp://localhost/thematicmapping/tme/TME_Example.php,I can get
> the kmz file link.after i click the link and open the kmz file.I find the error log from google Earth.please check pic2.But to my surprise I can find the Polygon on the Google earth.
> Thirdly, For finding the reason about the second step, I add the debug sentence in the TME_engine.php.like the following
> -----------------------------------------------------------------------------------------------------------
> ..........
> .........
> $kml .= " ?/Document>" . PHP_EOL
> ???????. "</kml>" . PHP_EOL;
> ????echo($kml);
> ............
> ............
>
> I excuted the 爃ttp://localhost/thematicmapping/tme/TME_Example.phpagain after adding the echo sentences, then I got the content of kmz on the webpage.
> the content of kmz file is enclosed the attachment kmz.xml
>
> The problem is where is the reason of the error message when I open the kmz file?
> How to solove this problem?
>
> --------------
> Chunjing Han
> 2009-01-06
>
> 爌ic2.bmp
> 2217KViewDownload
>
> 爌ic1.bmp
> 1987KViewDownload
>
> 爇mz.xml
> 329KViewDownload