Skip to content
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

apply on a Matrix returns a Vector #138

Open
asinghvi17 opened this issue May 11, 2024 · 2 comments
Open

apply on a Matrix returns a Vector #138

asinghvi17 opened this issue May 11, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers juliacon To be implemented for JuliaCon

Comments

@asinghvi17
Copy link
Member

asinghvi17 commented May 11, 2024

mwe:

using Proj, GeometryBasics
import GeometryOps as GO
point_grid = Point2d.(-180:180, (-90:90)') # matrix
GO.reproject(point_grid, source_crs="+proj=longlat +type=crs", target_crs="+proj=wintri +type=crs") # vector
@asinghvi17
Copy link
Member Author

One thing we could do here is to explicitly document that one should use broadcasting on vectors of geometries when you want shape preservation. Broadcasting semantics like similar may also help here.

@asinghvi17 asinghvi17 added enhancement New feature or request good first issue Good for newcomers labels May 11, 2024
@rafaqz
Copy link
Member

rafaqz commented May 12, 2024

We could maintain shape through apply fairly easily.

@asinghvi17 asinghvi17 added the juliacon To be implemented for JuliaCon label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers juliacon To be implemented for JuliaCon
Projects
Status: Todo
Development

No branches or pull requests

2 participants