Geotools create CRS from polygon and sizes

I have some grid data (2d array) that have some geospatial metadata associated with it. The boundaries are in the jts polygon with the coordinates WSG84 lon lat. A polygon is a rectangle but does not align (not a bounding rectangle).

I am trying to create a geotools CoordinateReferenceSystem object that describes this scope. I want to use CRS to repurpose coverage, but I also need to use CRS as-is, so skipping the CRS creation step is not worth it.

Rejected: How do you go from the polygon WSG84, dx, dy, nx, ny to the CoordinateReferenceSystem object that describes the grid using geotexts?

Thank you in advance

+3
source share
2 answers

So you know the latton rectangle that your coordinates fit into? It looks like you could do an affine conversion to convert your coordinates to lat / lon; and then continue normally?

So, first process your geometry to β€œalign” your rectangle; they will then be in WGS84, and you can continue life.

For the affinity conversion background, check the documents:

If your data is actually a grid (as in the grid coverage), you can look at the moasic code image; It supports recording lattices in all directions and builds them into a seamless result.

, ; ; ( ).

+1

- WGS86, EPSG: 4326 CRS. - , , .

, , , .

0

All Articles