fixed projection problems in export

added cell -> geojson export
added a QGIS example style
This commit is contained in:
Tom Vogt 2019-09-01 20:26:33 +02:00
parent 2df9f02440
commit a0df54bb21
8 changed files with 623 additions and 151 deletions

View file

@ -265,8 +265,8 @@ function editBurgs() {
data += b.port ? "port," : ",";
// add geography data
data += (b.x / graphWidth) * mapCoordinates.lonT + mapCoordinates.lonW + ",";
data += (b.y / graphHeight) * mapCoordinates.latT + mapCoordinates.latS + ",";
data += mapCoordinates.lonW + (b.x / graphWidth) * mapCoordinates.lonT + ",";
data += mapCoordinates.latN - (b.y / graphHeight) * mapCoordinates.latT + ","; // this is inverted in QGIS otherwise
data += parseInt(getFriendlyHeight(pack.cells.h[b.cell])) + "\n";
});