-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
priority: p4An issue that should be addressed eventually.An issue that should be addressed eventually.staletype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Hello. I have a kml file that uses the xmlns:gx="http://www.google.com/kml/ext/2.2"
namespace and uses the gx:LatLonQuad
node with the coordinates
defining the lat/lon coordinates of the box, instead of LatLonBox
When loading this kml file to KmlLayer
, it throws an exception because I believe it doesn't read the gx:LatLonQuad
node, but instead is looking for LatLonBox
to parse the north
, south
, east
, and west
nodes. The following exception trace is as follows:
java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
at com.google.maps.android.data.kml.KmlFeatureParser.createLatLngBounds(KmlFeatureParser.java:452)
at com.google.maps.android.data.kml.KmlFeatureParser.createGroundOverlay(KmlFeatureParser.java:150)
at com.google.maps.android.data.kml.KmlContainerParser.assignPropertiesToContainer(KmlContainerParser.java:113)
at com.google.maps.android.data.kml.KmlContainerParser.createContainer(KmlContainerParser.java:67)
at com.google.maps.android.data.kml.KmlParser.parseKml(KmlParser.java:89)
at com.google.maps.android.data.kml.KmlLayer.parseKml(KmlLayer.java:189)
at com.google.maps.android.data.kml.KmlLayer.<init>(KmlLayer.java:156)
at com.google.maps.android.data.kml.KmlLayer.<init>(KmlLayer.java:79)
This kml file works when loading to Google Earth by the way.
Is there plans to support gx:LatLonQuad
in later releases?
Metadata
Metadata
Assignees
Labels
priority: p4An issue that should be addressed eventually.An issue that should be addressed eventually.staletype: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.