wikimaps-dev / mapwarper

Wikimedia Commons map georectifier and warper. See wikimaps_new branch.
http://warper.wmflabs.org
11 stars 1 forks source link

Upload .points files #86

Open batje opened 8 years ago

batje commented 8 years ago

When georeferencing using QGIS, QGIS generates a .points file (and a .wld file as well). The .points file contains control points.

In some scenarios, georeferencing offline and then uploading the .tiff and .points file might be useful. For example when georeferencing maps so old, that there are no current geographic reference points, you might want to use other, more recent, historical maps to georeference against.

timwaters commented 8 years ago

Many thanks! Wikimaps warper has a way to upload points in CSV form to a map.

  #x,y,lon,lat
  #1.1,2.1,3.2,3.2
  #1.1,2.1,3.2,3.2

currently I think this may be restricted to "editor" users. Additionally an "editor" user can import a CSV of points to many maps at once specifying either the wiki page_id (from commons) or the map id (from the warper) mapid,pageid,x,y,lon,lat

Any user should be able to download the CSV of the points.

Could you provide a .points file and we can see if it's in the same format?

batje commented 8 years ago

The format is:

mapX,mapY,pixelX,pixelY,enable 39.18655805910000112,-6.16453676801999961,256.90932060728152919,-930.5426591227442259,1 39.18550937340000218,-6.16270591355999997,111.41136519242866143,-655.13581494462960109,1 39.19423490129999976,-6.16087216217999956,925.50706810886936182,-577.19048168667268328,1 39.2002373229000014,-6.16038547934000036,1445.14262316191593527,-613.56497054038595707,1 39.19997659999999939,-6.15701925642999992,1446.87474167875916464,-338.1581263622713891,1 39.20407879329999901,-6.15741306819000034,1866.04742275488297309,-377.99685224967157637,1 39.20356896060000196,-6.16573450171000026,1672.05014886841217958,-1159.18230334608460907,1 39.20191149019999699,-6.1725382755,1523.08795641987217095,-1732.51353242127925114,1 39.19516522509999845,-6.17258464158000031,875.27563112040775195,-1654.56819916332233333,1

(and for reference the QGIS page about georeferencing https://docs.qgis.org/2.6/en/docs/training_manual/forestry/map_georeferencing.html )