Closed GoogleCodeExporter closed 9 years ago
The FetchKmlLocal method is not designed to work with kmz files. It is a basic
method to load kml files from the local file system.
To use kmz files, or complex networklink chains you should use the built in
server class. This allows you to work with local files of any type without
restriction.
See these two wiki pages for notes on the server class and an example of using
it:
http://code.google.com/p/winforms-geplugin-control-library/wiki/Server
http://code.google.com/p/winforms-geplugin-control-library/wiki/usingTheServer
Original comment by fraser.c...@gmail.com
on 5 Apr 2011 at 2:18
ok thanks i will look at this but i'd like not to add a server to my
application which is huge and i would like to load kmz as simply as kml
--
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message
electronique est susceptible d'alteration.
This message and any attachments ( the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible
to alteration.
Original comment by nicolas....@gmail.com
on 5 Apr 2011 at 4:14
Hi Nicolas,
Yes it would be nice, but I fear it is impossible to get it to work like that.
Really, the simple server included in the control library is probably the only
way to support kmz files (well that or some other server implementation...)
The only other possible option, which I considered, is supporting decompression
of zip archives (kmz files are essentially zip files) this would be a much
bigger implementation in managed code, and would require and overhead of
unpacking the files and writing them to disk, then loading them.
I thought about including a 3rd party library to handle the unpacking, but
again this would be much bigger and slower than the simple Server class (The
entire Server class is 620 lines of code - basically a TcpListener, Socket and
Task...).
Most importantly, even if it supported unpacking - things like styles, images,
etc will not work as relative paths in the kmz file will not be correct.
In essence the plug-in is designed to sit in a browser window and connect over
http(s) to receive files from a web server. This is exactly what the
GEWebBrowser and Server class allow you to do locally.
Cheers,
F.
Original comment by fraser.c...@gmail.com
on 5 Apr 2011 at 6:06
Thank you very much for this answer.
The I would like to tell saying that my application is huge and don't need
more code was not in the quantity of code but interm of complexity.
When we introduce server, socket listener and more we have problems with
windows firewall, network problems and more over, so if i can easily bypass
this source of potential problem i will do that. For the moment I make a kml
that I load with the fetchkmllocal function and I map jpg and dae files
through the internet on my server. Use of local kmz (or you server
componnent) could help me to remove these files from the server and
distribuate these files into incorporated ressources of my app.
So thank you again for your answers.
Best regards and congratulations for you library.
Nicolas
--
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message
electronique est susceptible d'alteration.
This message and any attachments ( the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible
to alteration.
Original comment by nicolas....@gmail.com
on 5 Apr 2011 at 7:39
Original issue reported on code.google.com by
nicolas....@gmail.com
on 5 Apr 2011 at 1:37