Skip to content

Gismo Location to XY generated inappropriate value #14

@yiqiaowang-arch

Description

@yiqiaowang-arch

Issue

I am using a .shp file that describes an area in Zurich, Switzerland and I used Gismo in Rhino 7.34 to import the geometry into grasshopper. The SHP to Location battery generates location which is roughly 47.38N, 8.48E.
When I use LocationToXY (ver 0.0.3, Jan_29_2019) however, the location was translated into point (294608, 5248100).
image

Expected Behaviour

According to the geo location of Zurich, EPSG 32632 should be an appropriate coordination system, which will translate 47.38N, 8.48E into (460629, 5214800).

Possible location of issue

I looked into the code of LocationToXY, and found that the output EPSG was determined by latitude and longitude automatically.

def main(requiredLocation, anchorLocation, anchorOrigin):
    ...
    # inputCRS
    EPSGcode = 4326
    inputCRS = gismo_gis.CRS_from_EPSGcode(EPSGcode)
    # outputCRS
    outputCRS = gismo_gis.UTM_CRS_from_latitude(required_locationLatitudeD, required_locationLongitudeD)

I tried to modify the output CRS to:

    # outputCRS
    outputCRS = gismo_gis.CRS_from_EPSGcode(32632)

But the output stays the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions