rolandhill / geoscience

QGIS plugin for geology and exploration. Drill hole desurvey/display and other utilities.
GNU General Public License v3.0
40 stars 11 forks source link

Local Grid: Having error AttributeError: type object 'QgsCoordinateReferenceSystem' has no attribute 'WktVariant' #14

Closed jfpalomeque closed 10 months ago

jfpalomeque commented 1 year ago

Hi, I am trying to use Local Grid, to transform some local coordinates into wgs 84, but whatever the projected CRS I am choosing, I am having an error: AttributeError: type object 'QgsCoordinateReferenceSystem' has no attribute 'WktVariant'

rolandhill commented 1 year ago

Hi,

I haven't seen that error before. Are you referencing your local grid to a Projected coordinate system or latitude/longitude. You will need to use a projected system.

Regards, Roland

On Tue, 7 Mar 2023 at 11:29, Juan Frco. Palomeque Gonzalez < @.***> wrote:

Hi, I am trying to use Local Grid, to transform some local coordinates into wgs 84, but whatever the projected CRS I am choosing, I am having an error: AttributeError: type object 'QgsCoordinateReferenceSystem' has no attribute 'WktVariant'

— Reply to this email directly, view it on GitHub https://github.com/rolandhill/geoscience/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPOEQ4U7P7OVA2Y267EB5LW25O47ANCNFSM6AAAAAAVSWHUYI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jfpalomeque commented 1 year ago

Hi Roland, Thank you so much for answering so fast. I think I can attach the screenshots. I have tried a bunch of projected crs, like EPSG:32420, EPSG:32230 and EPSG:28355 (I tried the last one, even when the coordinates are in the UK, because I saw was used on your website. And I am always having the same error. I am using Qgis 3.8.3-Zanzibar. Thank you so much again

image image

rolandhill commented 1 year ago

Hi Juan,

From the screen shot it looks like you are trying to put latitude and longitude in where they should be UTM coordinates. Most UTM have 6 digits for the easting and 7 for the northing.

Regards, Roland

On Tue, 7 Mar 2023, 13:47 Juan Frco. Palomeque Gonzalez, < @.***> wrote:

Hi Roland, Thank you so much for answering so fast. I think I can attach the screenshots. I have tried a bunch of projected crs, like EPSG:32420, EPSG:32230 and EPSG:28355 (I tried the last one, even when the coordinates are in the UK, because I saw was used on your website. And I am always having the same error. I am using Qgis 3.8.3-Zanzibar. Thank you so much again

[image: image] https://user-images.githubusercontent.com/7852637/223519388-d953ce7b-e2f9-4303-b899-0f9dfba63496.png [image: image] https://user-images.githubusercontent.com/7852637/223519446-3d764d36-a529-4b11-97fd-3a9dd3141964.png

— Reply to this email directly, view it on GitHub https://github.com/rolandhill/geoscience/issues/14#issuecomment-1458658299, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPOEQ3EBX7HAEBCJ4JM44TW257CTANCNFSM6AAAAAAVSWHUYI . You are receiving this because you commented.Message ID: @.***>

jfpalomeque commented 1 year ago

Hi Roland,

I have converted the coordinates to UTM, and I am having the same error.

Could be an issue with my QGis installation?

Thankn you so much!

image image

image

rolandhill commented 1 year ago

Hi Juan,

It is possible that something has changed in the QGIS API. I'm travelling now, so will need to look at it when I get home. Remind me next week if I don't get back to you.

Regards, Roland

On Wed, 8 Mar 2023 at 06:36, Juan Frco. Palomeque Gonzalez < @.***> wrote:

Hi Roland,

I have converted the coordinates to UTM, and I am having the same error.

Could be an issue with my QGis installation?

Thankn you so much!

[image: image] https://user-images.githubusercontent.com/7852637/223703220-c08e59ac-e2ed-4d07-ba32-497ea8763126.png [image: image] https://user-images.githubusercontent.com/7852637/223703381-d865a962-c0c5-472f-810c-69216ec5fa44.png

[image: image] https://user-images.githubusercontent.com/7852637/223703287-4a7f69c5-5935-4b2d-adaa-ee880151ad24.png

— Reply to this email directly, view it on GitHub https://github.com/rolandhill/geoscience/issues/14#issuecomment-1460028058, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPOEQ7BYLO2FVPFRJI33UDW3BVM5ANCNFSM6AAAAAAVSWHUYI . You are receiving this because you commented.Message ID: @.***>