planetlabs / qgis-planet-plugin

Browse, filter, preview and download Planet Inc imagery in QGIS.
https://developers.planet.com/docs/integrations/qgis/
GNU General Public License v2.0
45 stars 12 forks source link

Update on the AOI text input #123

Open Samweli opened 1 year ago

Samweli commented 1 year ago

These changes update the AOI input to use QTextEdit instead of the current used QLineEdit for the geojson text inputs.

The QLineEdit has a limit of 32767 character making it unqualified to handle long geojson strings.

The QTextEdit doesn't have the textEdited signal which is available in QLineEdit, it is used to differentiate the source of the text input change, now that we will be using the QTextEdit we will be blocking the related signals manually when we are setting the text from the code since QTextEdit doesn't contain a designated function for such case.

Screenshot of the issue bug_in_geojson_input

Screenshot of the behaviour using this PR changes fixed_geojson_input

vermeulendivan commented 1 year ago

@Samweli Glad you found a fix for this issue. Did quick testing on my side, found the following. The text on the coordinates box is cut off, and there use to be a button you can click to clear the text box - this might have been part of the qlineedit. image

If you click "Search" the following error occurs. The coordinates format in the text box seems to differ as it use to be, not sure if that is the cause atm. image

Samweli commented 1 year ago

@Samweli Glad you found a fix for this issue

@vermeulendivan, I have pushed changes to fix the issues, thanks.

Samweli commented 1 year ago

@vermeulendivan I'm still looking at the best option to include the clear button for the QTextEdit, thanks.

john-dupuy commented 1 year ago

@Samweli checking locally and it looks like the button to remove all the text has been removed (as @vermeulendivan mentioned)? EDIT: just saw your note about this.

Also I noted the following: