Issue displaying KML Polygons

Started by tralam, September 26, 2019, 05:27:30 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

tralam

I've been trying to load a kml overlay in Oruxmaps that shows land ownership, but it doesn't seem to show properly when there are holes in the polygon. I've created a simple test kml to show the issue.

Here is a picture of how the kml appears in google earth and QGIS:



https://fgky1q.dm.files.1drv.com/y4mYZUEY_k9emBWlvq3FwN3-3042FOWoTgIBPbI_EHW_7T63elddJUJN00LOIBI2GaNcvhF0ORSWD19QivinTUXFeA2iqcdn2zW-Bz1lG8IcRJL6sj10EOJbEzKONi1WcI7HUkbgHVU0IfXNjopgPbldvqO9Y7vKI30uXiTsEmt3f3Xae7lRKl2QpaqxMofDDGekUkUut2Jg-JG2H11HLwasg?width=660&height=378&cropmode=none">



And here is the same kml in Oruxmaps:



https://fwky1q.dm.files.1drv.com/y4msDafcpBn57-ZE0B4h_XY2HtKU6xxRF-dd-DLf3NDgnuCi-ZF2Wa5bOt0N-hXgNp7TbwXoz-8RhahsbSTAWeZt3mteSx5b6RxgNvupPKRz80ESAW_igvekzlflqKjmnndijBKsII8Mf-v8LkAanq1lEvCdBfOiW5qS4m3urTmt6XZ5wRbXA8A9P0Ch6O5SkTip2RvOtTVLQMv7SCPZhOxzw?width=371&height=660&cropmode=none">



Here is the kml file: https://1drv.ms/u/s!Algt_lCcpSx7mi8Gl6ws81ZbUNH1">//https://1drv.ms/u/s!Algt_lCcpSx7mi8Gl6ws81ZbUNH1



<?xml version="1.0" encoding="UTF-8"?>

<kml xmlns="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">http://www.w3.org/2005/Atom">

<Document id="root_doc">

   <name>test.kml</name>

   <StyleMap id="m_ylw-pushpin">

      <Pair>

         <key>normal</key>

         <styleUrl>#s_ylw-pushpin</styleUrl>

      </Pair>

      <Pair>

         <key>highlight</key>

         <styleUrl>#s_ylw-pushpin_hl</styleUrl>

      </Pair>

   </StyleMap>

   <Style id="s_ylw-pushpin">

      <IconStyle>

         <scale>1.1</scale>

         <Icon>

            <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png%3C/href">http://maps.google.com/mapfiles/kml/pus ... .png</href">http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>

         </Icon>

         <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>

      </IconStyle>

      <PolyStyle>

         <color>ff7fff00</color>

      </PolyStyle>

   </Style>

   <Style id="s_ylw-pushpin_hl">

      <IconStyle>

         <scale>1.3</scale>

         <Icon>

            <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png%3C/href">http://maps.google.com/mapfiles/kml/pus ... .png</href">http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>

         </Icon>

         <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>

      </IconStyle>

      <PolyStyle>

         <color>ff7fff00</color>

      </PolyStyle>

   </Style>

   <Folder>

      <name>test</name>

      <Placemark>

         <styleUrl>#m_ylw-pushpin</styleUrl>

         <MultiGeometry>

            <Polygon>

               <outerBoundaryIs>

                  <LinearRing>

                     <coordinates>

                        -122.266848316874,46.52103347782341,0 -122.255195696854,46.52152900511809,0 -122.255056435868,46.51005241386699,0 -122.266964429884,46.50972316057629,0 -122.266848316874,46.52103347782341,0

                     </coordinates>

                  </LinearRing>

               </outerBoundaryIs>

               <innerBoundaryIs>

                  <LinearRing>

                     <coordinates>

                        -122.263093735146,46.517837928142,0 -122.263077322552,46.5143628814202,0 -122.257776400494,46.51447038926339,0 -122.25780291442,46.518086195574,0 -122.263088622448,46.5180061017693,0 -122.263093735146,46.517837928142,0

                     </coordinates>

                  </LinearRing>

               </innerBoundaryIs>

            </Polygon>

         </MultiGeometry>

      </Placemark>

   </Folder>

</Document>

</kml>

orux

#1
Thanks;



It is a bug that has been there for quite some time. If you want to try the latest beta version, it must be corrected.





orux

tralam

#2
I tried the new beta, it's working great. Thank you!