posm-gcpi icon indicating copy to clipboard operation
posm-gcpi copied to clipboard

Add GCP id/name column

Open ebrelsford opened this issue 7 years ago • 17 comments

Should add ID label to map to show which GCP is associated with which.

Does this get exported in GCP file? Not seeing it in the ODM documentation.

ebrelsford avatar Jan 25 '18 16:01 ebrelsford

This was a requested feature for GCPs but hasn't been implemented.

dakotabenjamin avatar Jan 25 '18 16:01 dakotabenjamin

This is more a requirement for tracking the GCPs in the GUI. There would be advantages if ODM also handled them so that errors could more accurately be calculated in the model, but this is not yet implemented in ODM.

smathermather avatar Jan 30 '18 03:01 smathermather

Got it, @smathermather, so we wouldn't export this data to a GCP file?

Could this be an auto-incrementing id (starting at 1) that we show when you hover overa point? Or does it need to be more configurable?

ebrelsford avatar Jan 30 '18 16:01 ebrelsford

  • [x] Allow id/name column on import of GCP file--ids will usually be associated with known map coordinates
  • [x] Display id/name on map points when available

ebrelsford avatar Feb 02 '18 19:02 ebrelsford

Lookin good.

smathermather avatar Feb 09 '18 19:02 smathermather

@smathermather this is implemented now with the noimg format.

ebrelsford avatar Feb 12 '18 17:02 ebrelsford

Looks great!

smathermather avatar Mar 16 '18 18:03 smathermather

We should also be able to export IDs too (I prematurely closed this issue). If I import e.g. https://github.com/OpenDroneMap/odm_data_copr/blob/master/gcp_list_noimg.txt, we should export those IDs with the file as the last column.

This is the (newly changed) spec example: https://github.com/OpenDroneMap/OpenDroneMap/pull/764/files#diff-46192065a3075a0beec5ebe9b52ae697

(Thanks for the tip @dakotabenjamin).

smathermather avatar Mar 23 '18 19:03 smathermather

@smathermather Sure that should be doable. Should we still allow input with this format? The only format I'm seeing in the ODM test data is this one, which has the idGCP column at the end of each row.

ebrelsford avatar Apr 03 '18 20:04 ebrelsford

I don't know... . GCPs are changing so quickly! @dakotabenjamin and @pierotofy—any insights you can bring here?

smathermather avatar Apr 06 '18 18:04 smathermather

I think the image field should always be required.

<geo_x> <geo_y> <geo_z> <im_x> <im_y> <image_name>

Optionally there could also be a label field after image_name:

<geo_x> <geo_y> <geo_z> <im_x> <im_y> <image_name> [label]

But I think we should stop here.

pierotofy avatar Apr 06 '18 18:04 pierotofy

I think we should allow id/labels at the beginning or end of the row

dakotabenjamin avatar Apr 06 '18 23:04 dakotabenjamin

@pierotofy — the use case for no image name and no image coordinates isn’t for ODM but for loading into GCPi, when the user has XYZ coordinates from gps or survey or otherwise but still needs to associate the GCP with the images and image positions using GCPi. The output from GCPi then is a complete GCP file.

smathermather avatar Apr 07 '18 15:04 smathermather

@smathermather ah, that makes sense. All for it then.

@dakotabenjamin that would complicate things a bit on the parser side. Figuring out if the first column is a label or geo_x would need a header. Unless there's a good way to do this that I'm missing?

pierotofy avatar Apr 07 '18 22:04 pierotofy

IMO the label should be first then. I think that is most intuitive.

On Sat, Apr 7, 2018 at 6:29 PM Piero Toffanin [email protected] wrote:

@smathermather https://github.com/smathermather ah, that makes sense. All for it then.

@dakotabenjamin https://github.com/dakotabenjamin that would complicate things a bit on the parser side. Figuring out if the first column is a label or geo_x would need a header.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/posm/posm-gcpi/issues/26#issuecomment-379503665, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwyCiZYvP4NVVbbG2CtWpPzFisiekBMks5tmT3LgaJpZM4RtHEJ .

--

Dakota Benjamin

dakotabenjamin avatar Apr 09 '18 14:04 dakotabenjamin

Okay, I think that what we're doing here complies with what's going on in ODM. Just to recap:

  • In GCPi we accept input like this one where there are no images, but the GCPs have labels
  • GCPi outputs like this, including labels if they exist at the end of the row, so it is still compatible with ODM

I believe this is how things work now and is deployed. @smathermather is there a nice way to test this from GCPi to ODM to confirm?

ebrelsford avatar Apr 09 '18 15:04 ebrelsford

I think that should work fine. For sure I can test, but first: @dakotabenjamin -- does the above referenced GCPi output work?

smathermather avatar Apr 10 '18 15:04 smathermather