Macaw.Frame.Transforms.Projection (macaw_frame v0.1.0)

Copy Markdown View Source

The projection step (spec/04 §7.2): positions through the frame's projection (needs: [:projection]), by Macaw.Draw.Geo.Path.

fields: [longitude, latitude] adds x and y; field, a GeoJSON geometry (or a {longitude, latitude} point), adds its projected path and its centroid as x, y. A row the projection clips keeps its place with nils (visualize D-130), so a scale inferring its domain sees every row whatever the viewpoint. Bad data (a missing or non-numeric coordinate, a geometry that is no map) is dropped. Neither option is {"fields", :required}.