-
Notifications
You must be signed in to change notification settings - Fork 2
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
WP2 export #17
Comments
fikk følgende feilmelding:
Couldn't load plugin 'isurvey_tools-master' due to an error when calling its classFactory() method
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/kele/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\isurvey_tools-master\\export_dialog_box.ui'
mvh
Kenneth
…________________________________
Fra: danielskaare <notifications@github.com>
Sendt: søndag 22. mars 2020 22:02
Til: danielskaare/isurvey_tools <isurvey_tools@noreply.github.com>
Kopi: Kenneth Leverskjær <kenneth@leverskjaer.com>; Author <author@noreply.github.com>
Emne: Re: [danielskaare/isurvey_tools] WP2 export (#17)
Implemented this code with a new icon and dialog box :
[image]<https://user-images.githubusercontent.com/60060543/77260474-8de26d00-6c88-11ea-82fa-be82ac3b0a0b.png>
Choose a layer from drop-down box. It looks for Name/Easting/Northing attribute names and should work for waypoint imports and MF Events.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#17 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOLTRZ2MREAPLHL5Y63VYKLRIZ4IFANCNFSM4LMWPZXQ>.
|
Ja riktig, sikkert ui fila som ikkje har blitt pusha opp. Ordner det imorgen 👍 |
Hei Daniel,
har lastet ned og den funket fint I kveld 👍
Men jeg ha ret forslag til forbedring av export feature.
Det gir ikke helt mening at man ikke kan eksportere data uavhengig av type, fikk beskjed at det manglet attributer.
Ville det ikke være bedre å kunne velge hviket format man skal eksportere til, f.eks:
*
WP2, i utgangpunktet kan både linje (vertex) og punkter eksporters til waypoint
*
RLN, både linjer og punkt kan brukes for å generer RLN, og det er mulig med og uten KP - som kanskje kan være en valgmulighet, hvis de eksisterer
*
Kongsberg WP file, samme som ovenfor, men filen må bygges opp separate og man må kjøre en projisering av punktene - skal se litt på det.
Det er vel I grunnen bare å lage forskjellige DEF for hver eksport. Kan kanskje hjelpe litt til med det da, men du er jo så rask at jeg ikke får gjort noe før du er ferdig😊
…-kenneth
________________________________
Fra: danielskaare <notifications@github.com>
Sendt: mandag 23. mars 2020 00:03
Til: danielskaare/isurvey_tools <isurvey_tools@noreply.github.com>
Kopi: Kenneth Leverskjær <kenneth@leverskjaer.com>; Author <author@noreply.github.com>
Emne: Re: [danielskaare/isurvey_tools] WP2 export (#17)
Ja riktig, sikkert ui fila som ikkje har blitt pusha opp. Ordner det imorgen 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#17 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOLTRZ7RDTYGA22YY6ZFUWLRI2KLXANCNFSM4LMWPZXQ>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Veldig enkel kodesnutt som funker, mne må nok lage ne QT dialog for eksport.
`import pandas as pd
import csv
data = [
['Black',499000,6007000],
['White',499000,6006900],
['Red',499000,6006800],
['Light Red',499000,6006700],
['Green',499000,6006600],
['Light Green',499000,6006500],
['Blue',499000,6006400],
['Light Blue',499000,6006300],
['Cyan',499000,6006200],
['Light Cyan',499000,6006100],
['Dark Yellow',499000,6006000],
['Yellow',499000,6005900],
['Buff',499000,6005800],
['Brown',499000,6005700],
['Magenta',499000,6005600],
['Light Magenta',499000,6005500],
['Beige',499000,6005400],
['Orange',499000,6005300],
['Dark Grey',499000,6005200],
['Grey',499000,6005100],
['Light Grey',499000,6005000]
]
depth = 0
fg_color = 0
bg_color = 0
#todo: Not really needed to include all parameters, pos + depth is good enough
#todo: consider including color-palette for forgeground/background
extra_param = [depth, fg_color, bg_color, 0.1, "Arial", 0.00, -10.1, "", 0.00, "", 1, 0.000, 0.000, 0.000, 0.05]
column_names = ['name', 'easting', 'northing', 'altitude', 'fgcolor.palette',
'bgcolor.palette', 'textcolor.palette', 'fontname', 'fontsize',
'symbol.filled', 'symbolfont', 'symbolfontsize', 'note', 'titleformat',
'radius', 'extra circles', 'radiusinc', 'state']
new_list = []
for lin in data:
lin = lin + extra_param
new_list.append(lin)
df = pd.DataFrame(new_list, columns=column_names)
#print(df.head(5))
df.to_csv('df.wp2', index=False, header=False, quoting=csv.QUOTE_NONNUMERIC)`
The text was updated successfully, but these errors were encountered: