Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 airspace definition from KMZ/KML file #161

Open
iagoccampos opened this issue Nov 25, 2023 · 0 comments
Open

0 airspace definition from KMZ/KML file #161

iagoccampos opened this issue Nov 25, 2023 · 0 comments

Comments

@iagoccampos
Copy link

Hi. I'm trying to convert a KMZ file to OpenAir, but I'm getting the following error:

Opened KMZ file: periquito.kmz
Extracted KML file: doc.kml
Reading KML file: doc.kml
Read 0 airspace definition(s) from 1 file(s).
ERROR: no usable data found in the input files specified.

I also tried with KML, exported from Google Earth, but I got the same result.

Here the content of the KML:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
	<name>FPDF - Polígono Periquito _ Abril 2020.kmz</name>
	<Style id="sh_ylw-pushpin4">
		<IconStyle>
			<scale>1.3</scale>
			<Icon>
				<href>https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
		<LineStyle>
			<color>ff00ffff</color>
			<width>2</width>
		</LineStyle>
		<PolyStyle>
			<fill>0</fill>
		</PolyStyle>
	</Style>
	<Style id="sn_ylw-pushpin5">
		<IconStyle>
			<scale>1.1</scale>
			<Icon>
				<href>https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
		<LineStyle>
			<color>ff00ffff</color>
			<width>2</width>
		</LineStyle>
		<PolyStyle>
			<fill>0</fill>
		</PolyStyle>
	</Style>
	<StyleMap id="msn_ylw-pushpin4">
		<Pair>
			<key>normal</key>
			<styleUrl>#sn_ylw-pushpin5</styleUrl>
		</Pair>
		<Pair>
			<key>highlight</key>
			<styleUrl>#sh_ylw-pushpin4</styleUrl>
		</Pair>
	</StyleMap>
	<Placemark id="0E7E74F3682D3D408FC2">
		<name>Polígono Periquito _ Agosto 05 2019</name>
		<styleUrl>#msn_ylw-pushpin4</styleUrl>
		<Polygon>
			<tessellate>1</tessellate>
			<outerBoundaryIs>
				<LinearRing>
					<coordinates>
						-48.01934468411552,-15.96639390111093,0 -48.00079060809834,-15.98255821182861,0 -48.06010915501377,-16.04400672587261,0 -48.09262437703172,-16.02434397475724,0 -48.07423640743645,-15.95472303745267,0 -48.13791689960137,-15.95610684895288,0 -48.13197857798446,-16.03263686461199,0 -48.07720888802517,-16.0579266656326,0 -48.17334028188205,-16.15716778098539,0 -48.16542266055748,-16.15635689821436,0 -47.98915323221161,-15.98295534473295,0 -47.99599603544508,-15.94808946730208,0 -48.01934468411552,-15.96639390111093,0 
					</coordinates>
				</LinearRing>
			</outerBoundaryIs>
		</Polygon>
	</Placemark>
</Document>
</kml>

I tried with many files but all of them gets the same result. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant