jmarin/scale

f.geometry fails

jmarin opened this issue · 1 comments

    val p = Point(-77, 38)
    val schema = Schema(List(
      Field("geom", GeometryType()),
      Field("address", StringType())
    ))
    val values = Map("geom" -> p, "address" -> "address")
    val f = Feature(schema, values)
    f.geometry // <-- should be Point(POINT (-77, 38)) but is Point(POINT (0 0))

Error is caused by naming geometry field "geom", it needs to be "geometry". Not a bug, but also not ideal