Skip to content

add optional override "degrees" projection instead of hardwired to EPSG:4326 #358

@thareUSGS

Description

@thareUSGS

Instead of hard-wiring EPSG:4326, perhaps it can still be the default, but allow for other off-Earth bodies (e.g. "IAU" codes).

Recommendations:


  1. to
def densify_reproject_simplify(
    polygon: Polygon,
    crs: CRS,
    crs_deg: str = "EPSG:4326",
    densification_factor: Optional[int] = None,
    precision: int = DEFAULT_PRECISION,
    simplify_tolerance: Optional[float] = None,
) -> Polygon:
  1. polygon = shape(transform_geom(crs, "EPSG:4326", polygon, precision=precision))

    to
    polygon = shape(transform_geom(crs, crs_deg, polygon, precision=precision))

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