Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diameter and lon/lat elements don't work correctly in a projected CRS. #23

Open
rbeyer opened this issue Aug 25, 2021 · 3 comments
Open

Comments

@rbeyer
Copy link

rbeyer commented Aug 25, 2021

I'm using circle-craters in QGIS 3.18 on a lunar polar stereographic projection map. The three-point clicking for selecting craters is very nice, but the reported values for diameter, center_lon, and center_lat are bogus.

I'm not sure if it is something I'm doing wrong (highly likely) or if there is something about QGIS that has changed in recent versions that used to allow this plugin to work properly for maps in a projected CRS.

For example, for a crater that should be between 4 and 5 m in diameter (because I can count the LROC pixels) it is reported as being 39301.81753860782 in diameter in the circle-craters reported diameter column, and similarly, the center_lon, and center_lat columns are the center X and Y coordinates in the projected CRS, not actually those coordinates converted to lon and lat, as the column headers might indicate. If I open the QGIS measure tool in its default "Ellipsoidal" setting and draw a diameter, I get a similar bogus value (so clearly circle-craters is relying on the same mechanism to gather a "diameter" that the Measure tool is), but if I change it to "Cartesian" then I get a diameter of 4.6 m, which is what I expect.

Is circle-craters only meant to operate on data with geographic coordinate systems and not on projected coordinate systems? Or is there something newly broken in QGIS that has inadvertently broken the mechanism by which the "diameter", "center_lon," and "center_lat" columns are computed?

I suppose I can always write something that just processes the geometry of the resulting GeoPackage or ShapeFile directly to calculate my own correct diameters and center lon/lat in order to create a file for craterstats, but I sure would like to just use the "Export Data" button that circle-craters provides.

@sbraden
Copy link
Owner

sbraden commented Sep 2, 2021 via email

@BerginJay
Copy link
Contributor

Hi there, I have fixed this issue in #22. @rbeyer you can test this on my branch, and hopefully Sarah would merge this PR after her PTO.

@sbraden
Copy link
Owner

sbraden commented Oct 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants