Skip to content

Translate to projected crs #30

@Robinlovelace

Description

@Robinlovelace

Currently the outputs are unprojected. You can set the centrepoint, e.g. as shown in the example:

let cp = Point::new(-1.5, 53.8);

That creates a distorted zoning system in unhelpful units of decimal degrees, which looks decidedly egg-like, as illustrated in the reproducible example below:

setwd("~/github-orgs/zonebuilders/zonebuilder-rust/")
system("cargo run --example clockboard-example > zones_uk.geojson")
zones = sf::read_sf("zones_uk.geojson")
plot(zones)

Created on 2021-05-01 by the reprex package (v2.0.0)

Here's the output with a base-map, even more egg-like.

library(tmap)
tmap_mode("view")
qtm(zones)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions