Skip to content

juliarize #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

juliarize #2

wants to merge 11 commits into from

Conversation

rafaqz
Copy link
Member

@rafaqz rafaqz commented Apr 16, 2025

I juliarized this a bit while getting my head around how it works.

But I find the layout and naming (of the original pyproj) quite unintuitive - CoordinateOperation and Conversion are really opaque names.

We also still have un-julian type syntax function calls like AzimuthalEquidistantConversion.

To fix both confusion things at once they should probably be _azimuthal_equidistant__to_proj_json_dict to match the opposite function _azimuthal_equidistant__to_cf.

Then ProjJSONCoordinateOperation can just be ProjJSONDict as we are directly converting it to ProjJSON with JSON3.write(operation.dict) anyway, there is no operation (well the operation is that later Proj.jl conversions know this is a converted crs, and process it accordingly. But it's valid ProjJSON in the Dictionary, it could hold other ProjJSON classes and work for them too)

@asinghvi17
Copy link
Member

Let's make this public as well?

@rafaqz
Copy link
Member Author

rafaqz commented Apr 27, 2025

Make what public?

@asinghvi17
Copy link
Member

The repo, it's currently private

@rafaqz
Copy link
Member Author

rafaqz commented Apr 28, 2025

Haha totally I didn't know that

@rafaqz
Copy link
Member Author

rafaqz commented May 11, 2025

Ok this is now a huge refactor.

  • most code is in the Proj extension, as we only need it if you need to convert
  • I've tested a few crs conversions, but we need to test the full set

@rafaqz rafaqz requested a review from asinghvi17 May 11, 2025 22:10
Copy link
Member

@asinghvi17 asinghvi17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't gone through the changes yet...9n mobile but had a thought

"direction" => "east",
"unit" => UNIT_DEGREE,
),
OrderedDict(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make these LittleDicts (basically vectors) instead, apparently they are a lot faster

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are they ordered? I just wanted to keep the output organised and non random

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants