nwh
10/13/2019, 8:31 PMscreen
and france
?
val franceMercator = Geo.Projections.Mercator {
fixExtend(screen, france)
}
I have the entire world as a GeoJsonObject
so I'm not sure if I should be passing just a GeoJsonObject
representing France or not (and if so, how would go about obtaining an object representing just France)
EDIT: Okay, something I've noticed that is slightly related:
When a JacksonFeature
is converted to a Feature
(that is, a GeoJson one), all property and id information is lost.
// toGeoJsonObject.kt line 47
private fun JacksonFeature.toFeature() = Feature(this.geometry!!.toGeoJsonObject() as Geometry)
Oddly, the Feature
constructor has an id
field, but it's not used. This applies to other JacksonXYZ
-> XYZ
conversions as well. This is kind of annoying because it would be trivial to preserve the information. Should I PR a fix for this?gaetan
10/14/2019, 10:10 AM