simplexspatial / osm4scala

Scala and Spark library focused on reading OpenStreetMap Pbf files.
https://simplexspatial.github.io/osm4scala/
MIT License
81 stars 18 forks source link

Unify the schema naming #68

Closed ericsun95 closed 4 years ago

ericsun95 commented 4 years ago

To reduce redundant work, we'd better unify the naming to be the same as XML format data. Something like this (also for the common shared fields).

StructType(
StructField(id,LongType,false),
StructField(type,ByteType,false),
StructField(lat,DoubleType,true),
StructField(lon,DoubleType,true),
StructField(nd,ArrayType(LongType,true),true),
StructField(relations,ArrayType(StructType(
StructField(id,LongType,true),
StructField(type,ByteType,true),
StructField(role,StringType,true)
),true),true),
StructField(tags,MapType(StringType,StringType,true),true)
)