-
Notifications
You must be signed in to change notification settings - Fork 92
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
Broken 1.0.0 #394
Comments
Your KML does not validate against the XML Schema. from fastkml.kml import KML
doc = KML.parse('path/to/your/file.kml', strict=False)
# or
doc = KML.parse('path/to/your/file.kml', validate=False) |
@cleder Thanks but I've already tried all of these. postcode_kml.from_string("<KML string>" strict=False)
postcode_kml.parse('path/to/your/file.kml', strict=False)
postcode_kml.parse('path/to/your/file.kml', validate=False) All of them return an empty
For reference, we are reading this KML file: https://www.doogal.co.uk/kml/PostcodeDistricts.kml |
@cleder I think I found the issue now. With this version, we can no longer create an instance like this as postcode_kml = kml.KML()
postcode_kml.from_string(kml_file.read()) Instead: postcode_kml = kml.KML.from_string(kml_file.read()) |
Thanks, I added this to the documentation: |
@roniemartinez when you find other issues migrating to 1.0, please open an issue or add your findings here ;-) |
@cleder Sure thanks 🙇 |
Just updated from 0.12 to 1.0.0 and now getting the following errors when using
parse()
When using
from_string()
,features
is empty.The text was updated successfully, but these errors were encountered: