OpenDroneMap / posm-gcpi

Ground Control Point interface (GCPi) for OpenDroneMap
15 stars 8 forks source link

Reprojection of non-angular coordinates #40

Closed smathermather closed 6 years ago

smathermather commented 6 years ago

If I input a valid proj string in my gcp_list_noimage.txt and it is a planar coordinate system, I want to keep working in that coordinate system through to export. For angular coordinates, it's ideal to switch to UTM. For planar coordinates, we should not.

For example, here's my input ground control:

+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +to_meter=0.3048006096012192 +no_defs      
GCP01   2235498.309 687742.941  857.817
GCP02   2235375.538 687898.159  850.729
GCP03   2235316.44  687888.66   852.831
GCP04   2235448.914 687630.781  858.101
GCP05   2235411.479 687813.864  871.643
GCP06   2235202.193 687819.215  878.784

But, once I set all the ground control, I get this:

+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs  
456255.07   4599976.78  0   2437.94 564.76  IMG_2041.JPG    GCP01
456255.07   4599976.78  0   317.76  446.83  IMG_2042.JPG    GCP01
456255.07   4599976.78  0   1053.95 2634.87 IMG_2059.JPG    GCP01
456255.07   4599976.78  0   2270.51 2130.29 IMG_2170.JPG    GCP01
456255.07   4599976.78  0   2966.04 1633.46 IMG_2202.JPG    GCP01
456228.99   4599998.84  0   2064.31 2077.06 IMG_2064.JPG    GCP05
456228.99   4599998.84  0   1507.09 1442.74 IMG_2066.JPG    GCP05
456228.99   4599998.84  0   1570.56 2296.35 IMG_2109.JPG    GCP05
456228.99   4599998.84  0   2523.55 1905.51 IMG_2108.JPG    GCP05
456228.99   4599998.84  0   442.05  573.50  IMG_2110.JPG    GCP05
456218.49   4600024.71  0   2316.11 2322.91 IMG_2055.JPG    GCP02
456218.49   4600024.71  0   2699.43 1097.07 IMG_2110.JPG    GCP02
456239.43   4599942.87  0   2892.79 1872.50 IMG_2059.JPG    GCP04
456239.43   4599942.87  0   2529.00 1288.85 IMG_2083.JPG    GCP04
456239.43   4599942.87  0   1672.16 201.69  IMG_2109.JPG    GCP04
456239.43   4599942.87  0   845.58  279.56  IMG_2060.JPG    GCP04
456239.43   4599942.87  0   422.70  1518.00 IMG_2170.JPG    GCP04
456165.26   4600001.57  0   2494.04 175.58  IMG_2341.JPG    GCP06
456165.26   4600001.57  0   1925.75 2444.25 IMG_2364.JPG    GCP06
456165.26   4600001.57  0   534.62  2026.53 IMG_2358.JPG    GCP06
456165.26   4600001.57  0   2414.36 891.57  IMG_2365.JPG    GCP06
456165.26   4600001.57  0   1816.00 2859.75 IMG_2492.JPG    GCP06
456165.26   4600001.57  0   3007.88 575.45  IMG_2562.JPG    GCP06
456200.43   4600022.13  0   2065.22 991.91  IMG_2492.JPG    GCP03
456200.43   4600022.13  0   1221.14 1890.75 IMG_2562.JPG    GCP03
ebrelsford commented 6 years ago

Deployed a fix to this, @smathermather give it a test and close if it looks good?

smathermather commented 6 years ago

Looks good! Thanks!