Comments (5)
Hi @groengpx, welcome to the project!!
Yes, Fields2Cover works on local coordinates. Fortunately, the library provides the class Transform to transform the coordinate system safely.
As an example:
F2CField field = ...; // Import your field
field.setEPSGCoordSystem(4326); // WGS84 is EPSG:4326
f2c::Transform::transform(field, "EPSG:28992"); // Transform the field to a coordinate system that works in meters (28992 is from NL)
// ... Compute the path ...
auto returned_path2 = f2c::Transform::transformPathWithFieldRef(path2, field, "EPSG:4326"); // Return the path to WGS84
Remember that this is an example to show the conversion between WGS84 to any EPSG coordinate system. If you were really working on NL, coordinate values should be recorded and saved on ETRS89 (EPSG:4258).
from fields2cover.
Ah, thanks.
But then I need to know the local system of each country. Do you think I can get away with UTM zones? For example, when starting with a transformation, I check in which UTM zone the first coordinate is (let's say N31 (epsg:32631)) and then use that zone for the transformations (instead of epsg:28992 in your example).
from fields2cover.
This should work f2c::Transform::transform(field, "UTM:31N datum:WGS84")
, but I haven't tested in depth
from fields2cover.
@groengpx Did it solved your problem? :)
from fields2cover.
Haven't got time yet, but it seems to be a good solution. I will close this for now. If it won't work, I will reopen.
from fields2cover.
Related Issues (20)
- [Noetic] Fields2Cover failing to build on all platforms HOT 3
- a) how to launch the ros2 interface and b) how to import a field from a .shp format HOT 7
- Create Pypi package for the python interface
- Planning of Loops HOT 1
- Option to have turns happen inside the polygon when leaving the polygon shape is not permissible HOT 3
- Compilation steps are not rendered HOT 4
- Does not compile with clang HOT 1
- Is it possible to use this library to plan a coverage path connecting multiple convex polygons? HOT 4
- AerialmapDisplay HOT 3
- Headland width is not constant HOT 2
- questions about headland generator HOT 7
- Connecting between two fields HOT 5
- Deactivate headland HOT 2
- ROS2 support HOT 2
- Exported path discritization HOT 4
- New discretize_swath() function import issue to cpp/ROS2 package HOT 2
- LineString() Points with wgs84 coordinates instead of X, Y ? HOT 6
- Docker Build Issue HOT 1
- Map API: AerialmapDisplay && Path sequences HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fields2cover.