You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Try to parse geojson with nested "properties" section like
{"features":[{"geometry":{"coordinates":[36.8,
55.9],"type":"Point"},"properties":{"address":"Ставропольская
улица, дом 37, корпус
1","id":1,"layer":2,"name":"Психоневрологический
интернат № 11"},"type":"Feature"},{"geometry":{"coordinates":[37.8,
56.9],"type":"Point"},"properties":{"count":4,"extent":{"bottom":1,"left":2,"rig
ht":3,"top":4},"layer":-1,"objects":{"0":{"count":4,"id":1,"layer":2}}},"type":"
Feature"}],"type":"FeatureCollection"}
What is the expected output? What do you see instead?
Parsing excepted.
Actualy UnsupportedOperationException throwed in KmlPlacemark line 97
String value = entry.getValue().getAsString();
What version of the products are you using (Android SDK, osmdroid,
OSMBonusPack)?
compile 'org.osmdroid:osmdroid-android:4.2'
compile 'org.slf4j:slf4j-simple:1.6.1'
compile 'com.google.code.gson:gson:2.3';
compile 'org.apache.commons:commons-lang3:3.3.2';
OSMBonusPack - 5.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 9 Feb 2015 at 6:38
The text was updated successfully, but these errors were encountered:
Effectively, properties values which are not String are not supported, as
stated in https://code.google.com/p/osmbonuspack/wiki/GeoJSON
For nested properties, would you like to have the whole value converted as a
String?
In your extent exemple, a String containing this:
{"bottom":1,"left":2,"right":3,"top":4}
I think if I get String I have to wrap it in JsonElement again to parse and
extract data, so it is a little redundant. It's better to have method returned
nested properties as JsonElement.
Not so simple: those properties are stored in KML Placemark Extended Data.
Which are not coming from JSON but from XML.
Convert nested properties as a String is the best I can reasonably do.
Original issue reported on code.google.com by
[email protected]
on 9 Feb 2015 at 6:38The text was updated successfully, but these errors were encountered: