Creating georeferenced images in C #

I want to create some heatmap style tiles to overlay on our base maps using Open Layers. Basically, I want to divide some bounding rectangle into a grid and display each grid square using a different color based on how many points of the pattern fall into this grid square.

Technologies include C #, OpenLayers, SQL Server 2008, and GeoServer.

My question mainly relates to the general approach, I'm not quite sure where to put the tip of the bit on this one.

My ultimate goal is to be able to use any arbitrary bounding box, calculate the x-mile from the x-mile grid that fits inside this bounding box, iterate over a set of individual points and assign them to one grid square or another so that I can calculate density of dots per square grid, then color the grid according to the densities, and then overlay it on the CloudMade base map using Open Layers.

Any help in general will be appreciated, in whole or in any part thereof.

+3
source share
3 answers

, . . - 6 , ( x y, ).

, , .

------ -------

, 203732x598374, 200 300 .

, , , 6 :

200
0
0
-300
203632
598524

:

200 == size of one pixel in X
0 == shear1
0 == shear2
-300 == size of one pixel in Y (from top down)
203632 == left edge - 1/2 pixel size (to center on pixel instead of edge of box)
598524 == top edge - 1/2 pixel size (to center on pixel instead of edge of box)

.png-, , .pgw. .jpg, .jgw ..

. : Wiki

+4

" , , ". , GeoServer , .. , , #.

GeoServer:

- , , ( , ). , , / , , .

2.5D- .

, ​​ Grass , ( ), .

EDIT: GDAL, . #.

+2

I think the formulas for calculating the center of the top left pixel are wrong. In this example, the center of the top left pixel will be below and to the right of (203732, 5998374). So shouldn't this be next?

203832 == left edge + 1/2 pixel size (to center on pixel instead of edge of box)
598224 == top edge - 1/2 pixel size (to center on pixel instead of edge of box)
0
source

Source: https://habr.com/ru/post/1704534/


All Articles