-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add epsg service #961
base: main
Are you sure you want to change the base?
Add epsg service #961
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 377 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
313 | 2 | 62 | 0 |
Click to see the invalid file list
- shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/ProjectionController.java
- shogun-boot/src/main/java/de/terrestris/shogun/boot/service/ProjectionService.java
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/ProjectionController.java
Show resolved
Hide resolved
shogun-boot/src/main/java/de/terrestris/shogun/boot/service/ProjectionService.java
Show resolved
Hide resolved
0f6718a
to
7de899b
Compare
Looks great, can you add some tests maybe? |
6bc8c4c
to
3770f62
Compare
Done, I've also added another endpoint to transform WKT geometries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's awesome @hwbllmnn!
shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/ProjectionController.java
Show resolved
Hide resolved
shogun-boot/src/main/java/de/terrestris/shogun/boot/service/ProjectionService.java
Show resolved
Hide resolved
3770f62
to
8ba1606
Compare
Description
This adds an
/epsg
endpoint that can be used as an alternative to the https://epsg.io API. Example:/epsg?q=EPSG:25832
. Please note that this adds a dependency to GeoTools33-SNAPSHOT
as it needs unreleased functionality to produce the proj string of the coordinate system.Also adds an
/epsg/transform
endpoint that can be used to transform WKT geometries from one crs to another. Example:/epsg/transform?source=EPSG:4326&target=EPSG:25832&wkt=POINT(45%207)
Related issues or pull requests
See https://github.com/terrestris/react-util/blob/main/src/Hooks/useProjFromEpsgIO/useProjFromEpsgIO.ts
Pull request type
Do you introduce a breaking change?
Checklist
Apache Licence Version 2.0.
mvn test
locally).