Re: [Qgis-user] Kmz rendering very slow
Agreed. Google Earth simply cannot handle large amounts of data. Calvin On Fri, Feb 23, 2024 at 8:38 AM Kobben, Barend (UT-ITC) via QGIS-User < qgis-user@lists.osgeo.org> wrote: > Not really. KMZ/KML is a simple dataformat not suitable for such large > amounts of data. It eg does not support spatial or other indexing (even if > it would, Google Earth renderering porbbably cannot use the indexes > anyway)... > > *-- * > > *Barend Köbben* > > > > > > On 23/02/2024, 14:07, "QGIS-User" > wrote: > > > > Hello, > > I am reposting this question. > > I have a geopackage file of about 30MB size. I have converted it into kmz > which resulted in 13MB size. When I open this kmz in google earth, it is > very slow and takes about 10 to 15 minutes to load and open. Even after > opening, I cannot zoom-in or zoom-out quickly. Is there a fix for this such > that I can open the file in google earth quickly? > > > > Regards. > ___ > QGIS-User mailing list > QGIS-User@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Kmz rendering very slow
Not really. KMZ/KML is a simple dataformat not suitable for such large amounts of data. It eg does not support spatial or other indexing (even if it would, Google Earth renderering porbbably cannot use the indexes anyway)... -- Barend Köbben On 23/02/2024, 14:07, "QGIS-User" wrote: Hello, I am reposting this question. I have a geopackage file of about 30MB size. I have converted it into kmz which resulted in 13MB size. When I open this kmz in google earth, it is very slow and takes about 10 to 15 minutes to load and open. Even after opening, I cannot zoom-in or zoom-out quickly. Is there a fix for this such that I can open the file in google earth quickly? Regards. ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Kmz rendering very slow
Hello, I am reposting this question. I have a geopackage file of about 30MB size. I have converted it into kmz which resulted in 13MB size. When I open this kmz in google earth, it is very slow and takes about 10 to 15 minutes to load and open. Even after opening, I cannot zoom-in or zoom-out quickly. Is there a fix for this such that I can open the file in google earth quickly? Regards. ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Kmz rendering very slow
Hello, I have a geopackage file of about 30MB size. I have converted it into kmz which resulted in 13MB size. When I open this kmz in google earth, it is very slow and takes about 10 to 15 minutes to load and open. Even after opening, I cannot zoom-in or zoom-out quickly. Is there a fix for this such that I can open the file in google earth quickly? Regards. ___ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] KMZ
You have to use a compatible CRS such as EPSG:3857 when importing from Google Earth On 20/05/19 1:45 PM, Lukas Sadler wrote: Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] KMZ
Hi Lukas, Make sure that on-the-fly CRS is enabled in QGIS, then set your KMZ layer CRS to EPSG: 4326 first. Let’s see if it’s projected to the correct location. Muhammad Iqnaul GIS Specialist Jakarta, Indonesia From: Qgis-user On Behalf Of Lukas Sadler Sent: Monday, 20 May 2019 9:45 AM To: qgis-user@lists.osgeo.org Subject: [Qgis-user] KMZ[External Sender] ** [EXTERNAL SENDER] Do not click links or open attachments unless you recognize the sender. ** Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location *** Advisian Notice *** "This email is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this email in error, please notify us immediately by return email and delete the email and any attachments. Any personal views or opinions expressed by the writer may not necessarily reflect the views or opinions of any company in the WorleyParsons Group of Companies. How we use your personal data: http://www.advisian.com/en-us/who-we-are/privacy-policy /SPAN> ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] KMZ
thanks guys but still not doing the trick I've got everything in 4326 and the KMZ is still not sitting in the correct location the location is in New Zealnd but if i use 4326 it looks like it sits on the opposite longitude On Monday, May 20, 2019, 2:14:17 PM GMT+12, Brent Wood wrote: #yiv2895247679 P.yiv2895247679ImprintUniqueID {MARGIN:0cm 0cm 0pt;}#yiv2895247679 LI.yiv2895247679ImprintUniqueID {MARGIN:0cm 0cm 0pt;}#yiv2895247679 DIV.yiv2895247679ImprintUniqueID {MARGIN:0cm 0cm 0pt;}#yiv2895247679 TABLE.yiv2895247679ImprintUniqueIDTable {MARGIN:0cm 0cm 0pt;}#yiv2895247679 DIV.yiv2895247679Section1 {}#yiv2895247679 .yiv2895247679ExternalClass * {LINE-HEIGHT:100%;}#yiv2895247679 #yiv2895247679 --P{margin-top:0;margin-bottom:0;}#yiv2895247679 I think KMZ supports lat/long coords only... Google doesn't really understand projections... Make sure your KMZ layer has EPSG:4326 as its projection HTH Brent Wood Programme leader: Environmental Information Delivery NIWA DDI: +64 (4) 3860529 | | | Brent Wood | | Principal Technician - GIS and Spatial Data Management | | Programme Leader - Environmental Information Delivery | | | T+64-4-386-0529 | | | | | National Institute of Water & Atmospheric Research Ltd (NIWA) | | 301 Evans Bay Parade, Greta Point, Wellington | | Connect with NIWA:niwa.co.nz Facebook Twitter LinkedIn Instagram | | | | To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems. | | From: Qgis-user on behalf of Lukas Sadler Sent: Monday, May 20, 2019 13:45 To: qgis-user@lists.osgeo.org Subject: [Qgis-user] KMZ Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] KMZ
Hi Lukas, It is my understanding that KMZ files should always be projected in WGS84, even if your QGIS project is in a different projection. Hopefully that solves your issue. Stefan Berger MIEAust Environmental Engineer From: Qgis-user On Behalf Of Lukas Sadler Sent: Monday, 20 May 2019 9:45 AM To: qgis-user@lists.osgeo.org Subject: [Qgis-user] KMZ[External Sender] ** [EXTERNAL SENDER] Do not click links or open attachments unless you recognize the sender. ** Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location *** Advisian Notice *** "This email is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this email in error, please notify us immediately by return email and delete the email and any attachments. Any personal views or opinions expressed by the writer may not necessarily reflect the views or opinions of any company in the WorleyParsons Group of Companies. How we use your personal data: http://www.advisian.com/en-us/who-we-are/privacy-policy /SPAN> ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] KMZ
I think KMZ supports lat/long coords only... Google doesn't really understand projections... Make sure your KMZ layer has EPSG:4326 as its projection HTH Brent Wood Programme leader: Environmental Information Delivery NIWA DDI: +64 (4) 3860529 [cid:imagef39a2d.PNG@780f91f3.4bbb007d]<http://www.niwa.co.nz> Brent Wood Principal Technician - GIS and Spatial Data Management Programme Leader - Environmental Information Delivery T +64-4-386-0529 National Institute of Water & Atmospheric Research Ltd (NIWA) 301 Evans Bay Parade, Greta Point, Wellington Connect with NIWA: niwa.co.nz<https://www.niwa.co.nz> Facebook<https://www.facebook.com/nzniwa> Twitter<https://twitter.com/niwa_nz> LinkedIn<https://www.linkedin.com/company/niwa> Instagram<https://www.instagram.com/niwa_science> To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems. From: Qgis-user on behalf of Lukas Sadler Sent: Monday, May 20, 2019 13:45 To: qgis-user@lists.osgeo.org Subject: [Qgis-user] KMZ Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] KMZ
Hi, I've tried importing KMZ files from google earth into a project on QGIS (3.6.3 Noosa) but the files don't project in the same location even if i set it to the project's CRS what should i do to have the KMZ files projecting in the correct location ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] kmz export sed script
Hi! As I said in a previous message, I use qgis to put together many geographic information sources prior to downloading the data as kmz to my mobile. That's the reason I wrote a small script to generate kmz icons from a qgis-generated kml. That script is a sed script, meaning it has to be processed with the sed utility included in Linux. If you have a Windows version of qgis bundled with Msys (such as osgeo4win), you could probably execute it from the msys command line. Someone could try to adapt it to python, but I don't know how to make python scripts. Please note: Lines are long and they could be wrapped when sendind as email. I will use an empty line (two carriage returns) to mark new line. --- SCRIPT 1 Generate icons from name field This script takes a qgis-generated kml file, and adds an icon (called Cueva.png) to every feature with a name containing Cueva or Sima, another icon (called .Icnitas.png) to every feature with a name containing icnita or Icnita, another icon (called Fosil.png) to every feature with a name like Fosil, Fósil, fosil or fósil, and another icon (called Mina.png) to every feature with a name containing Mina. The icons should be placed in a folder called images, and zipped along with the modified kml file in a file with kmz extension. The script should be invoked like this: sed mykmlfile.kml -f kmzfromname.sed newkmlfile.kml After that, you should use your preferred zip manager to zip together the files. I use this: 7z -a -tzip newkmlfile.kmz newkmlfilekml images/*.png but the syntax would be different if you use a different zip manager. kmziconfromname.sed--CUT HERE-- #!/bin/sed #Replace name tag with Cueva or cueva with icon and name tag /name[^]*[Cc]ueva/{;s/name/iconhrefimages\/Cueva.png\/href\/iconname/;}; #Replace name tag with Sima or sima with icon and name tag /name[^]*[Ss]ima/{;s/name/iconhrefimages\/Cueva.png\/href\/iconname/;}; #Replace name tag with Icnita or icnita with icon and name tag /name[^]*[Ii]cnita/{;s/name/iconhrefimages\/Icnitas.png\/href\/iconname/;} #Replace name tag with F?sil or f?sil (probably, fosil or fósil) with icon and name tag /name[^]*[Ff].sil/{;s/name/iconhrefimages\/Fosil.png\/href\/iconname/;} #Replace name tag with Mina or mina with icon and name tag /name[^]*[Mm]ina/{;s/name/iconhrefimages\/Mina.png\/href\/iconname/;} #Previous code for icons was a pseudocode. Replace it with the real code. s!icon!StyleIconStylescale1.0/scaleIcon!; s!/icon!/Icon/IconStyleLabelStylescale1.0/scale/LabelStyleLineStylewidth1,0/width/LineStyle/Style! #I don't know why, but replacing folder with document allows oruxmaps put a name (instead of a date) to this layer. s!Folder!Document! kmziconfromname.sed---END OF FILE--- SCRIPT 2 - Generate icons from a custom field (not name) This is a skeleton script. In the previous sample, I used the name to detect the class of each feature, but my kml file has a field caled T006_006_C that stores the actual feature class. So I could use that field instead. But, in order to do that, I have to read the field inside the ExtendedData tag and, after that, put a new flag outside that tag. Doing that with SED is tricky, because SED uses to read one line at a time. We have to tell it to group the whole ExtendedData group in a single line. Please notice you should adapt this script to your needs, i.e., replace T006_006_C with the field name you want, add code to replace the !---icon -- tags with your preferred icon, and so on. The usage would be again, sed mykmlfile.kml -f kmzfromfield.sed newkmlfile.kml After that, you should use your preferred zip manager to zip together the files. I use this: 7z -a -tzip newkmlfile.kmz newkmlfilekml images/*.png but the syntax would be different if you use a different zip manager. ---kmziconfromfield.sed--CUT HERE-- #!/usr/bin/sed #Example: how to make icon from field using SED #Replace T006_006_C with fieldname :a N #Do not put spaces after the backslash in the next line: s/\ / /g /\/ExtendedData/!ba s/\(ExtendedData.*SimpleData name=.T006_006_C.\)\([^]*\)\(.*\/ExtendedData\)/\1\2\3!-- Icon_For:\2 --/ #Step 2: Replace !-- Icon_For:\2 -- with code for icon (StyleIconStyle... etc) (See script 1) #Now you have to change all categories with their icon #This is an example on how to change Icon fror:Modelado K* to the Cueva.png icon: s/!-- Icon for:Modelado [Kk].*--/iconCueva.png\/icon/ #Now we change Icon pseudocode with real icon code. s!icon!StyleIconStylescale1.0/scaleIcon!; s!/icon!/Icon/IconStyleLabelStylescale1.0/scale/LabelStyleLineStylewidth1,0/width/LineStyle/Style! #Last of all, we change the Folder
[Qgis-user] kmz in qgis
Is not possible to open a kmz file in qgis? or am I not seeing an obvious option? I've tried with OGR converter also. Thanks Agus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] kmz in qgis
No it's not. kmz as well as kmls containing a mixture of placemarks, lines and polygons. In order to load kmls in QGIS or use ogr, you should create separate files for each vector type. hope that helps. On Wed, Jan 13, 2010 at 5:25 PM, Agustin Lobo alobolis...@gmail.com wrote: Is not possible to open a kmz file in qgis? or am I not seeing an obvious option? I've tried with OGR converter also. Thanks Agus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ -- ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] kmz in qgis
I've found the following solution that works with my fiel, not sure if it would work in general: 1. Uncompress as if the *.kmz file were a compressed file (may be you have to rename it to *.zip in windows). You'll get a *.kml file 2. Open the *.kml file with Qgis Hope this work for other people as well. Agus maning sambale wrote: No it's not. kmz as well as kmls containing a mixture of placemarks, lines and polygons. In order to load kmls in QGIS or use ogr, you should create separate files for each vector type. hope that helps. On Wed, Jan 13, 2010 at 5:25 PM, Agustin Lobo alobolis...@gmail.com wrote: Is not possible to open a kmz file in qgis? or am I not seeing an obvious option? I've tried with OGR converter also. Thanks Agus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] kmz in qgis
Yes, it works. I tested it in QGIS. You also use Winrar to open renamed zip file. Noli On 1/13/10, Agustin Lobo alobolis...@gmail.com wrote: I've found the following solution that works with my fiel, not sure if it would work in general: 1. Uncompress as if the *.kmz file were a compressed file (may be you have to rename it to *.zip in windows). You'll get a *.kml file 2. Open the *.kml file with Qgis Hope this work for other people as well. Agus maning sambale wrote: No it's not. kmz as well as kmls containing a mixture of placemarks, lines and polygons. In order to load kmls in QGIS or use ogr, you should create separate files for each vector type. hope that helps. On Wed, Jan 13, 2010 at 5:25 PM, Agustin Lobo alobolis...@gmail.com wrote: Is not possible to open a kmz file in qgis? or am I not seeing an obvious option? I've tried with OGR converter also. Thanks Agus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user