Re: [Qgis-user] [QGIS-Developer] CAD and QGIS - Working with archaeological sites

2018-08-09 Thread Nyall Dawson
On Fri, 10 Aug 2018 at 11:11, C Hamilton wrote: > > Thanks!!! That is a good idea to use the layout panel. > > The advanced digitizing panel was the piece that I was missing. Yes the tools > in QGIS 3 are much better. This is certainly a novel task to do in QGIS. I'd love to see a write up/case

Re: [Qgis-user] [QGIS-Developer] CAD and QGIS - Working with archaeological sites

2018-08-09 Thread C Hamilton
Thanks!!! That is a good idea to use the layout panel. The advanced digitizing panel was the piece that I was missing. Yes the tools in QGIS 3 are much better. On Thu, Aug 9, 2018 at 7:49 PM, Nyall Dawson wrote: > On Fri, 10 Aug 2018 at 08:01, Alexandre Neto > wrote: > > > > Hi, > > > > On

Re: [Qgis-user] [QGIS-Developer] CAD and QGIS - Working with archaeological sites

2018-08-09 Thread Nyall Dawson
On Fri, 10 Aug 2018 at 08:01, Alexandre Neto wrote: > > Hi, > > On Thu, Aug 9, 2018, 22:27 C Hamilton wrote: >> >> >> Also is there a way a non georegistered image be imported, make it somewhat >> transparent, and then interactively drag and resize it on the map somewhat >> like Google Earth?

Re: [Qgis-user] CAD and QGIS - Working with archaeological sites

2018-08-09 Thread Alexandre Neto
Hi, On Thu, Aug 9, 2018, 22:27 C Hamilton wrote: > > Also is there a way a non georegistered image be imported, make it > somewhat transparent, and then interactively drag and resize it on the map > somewhat like Google Earth? When you don't really have anything to > reference the image to you

[Qgis-user] CAD and QGIS - Working with archaeological sites

2018-08-09 Thread C Hamilton
I need to be able to trace out some old surveys of ancient Indian earthworks such as: http://scienceviews.com/squier/ancientmonuments3-19.html I would like to have them properly scaled and then somehow import them into QGIS. Because many of these sites have been destroyed we don't know precisely

Re: [Qgis-user] Categorized Symbology

2018-08-09 Thread Jean-Baptiste Desbas
Hi, What appened if you type " to_string(YOURFIELD) " instead of juste " YOURFIELD " as categorized field ? 2018-08-09 11:11 GMT+02:00 GILLEN Finbar : > Hi, > > > > I have added delimited text layer to QGIS 3.2 which I have converted to > point layer. When I add it in I am able to style the

Re: [Qgis-user] QGIS SCCM package

2018-08-09 Thread Stefan Blumentrath
Dear Anna, For QGIS 2 we had a similar approach. Instead of using global settings, we added a section to the start-up batch that copies default settings from some network drive to users %HOME% (while replacing some user related paths strings...) utilizing the --confgpath option. See e.g.:

Re: [Qgis-user] QGIS SCCM package

2018-08-09 Thread Bugey, Anna
Dear Stefan and other list members, thanks for your response. Unfortunately I am supposed to use QGIS version 2.18, so I guess I can´t use the global settings solution. I think it will take some time until we´re switching to QGIS 3. Does anyone else have any suggestions for 2.18? Best, Anna

[Qgis-user] Categorized Symbology

2018-08-09 Thread GILLEN Finbar
Hi, I have added delimited text layer to QGIS 3.2 which I have converted to point layer. When I add it in I am able to style the layer using a string field within the attribute table. When I save the file as a geopackage layer and bring it into QGIS I am not able to style it the way I did

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Frank Broniewski
My take on getting the locale from Qt and setting it in Python: import locale def get_qgis_locale(): loc = QLocale() for lang in loc.uiLanguages(): if lang.startswith(loc.bcp47Name()): return '%s.UTF-8' % lang.replace('-', '_') return

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Frank Broniewski
Hi Reginald, I couldn’t find the post where you describe your problem. I just tried your code, this is the result from QGIS 3.2 (Windows) Python console, auto-locale German Germany (de_DE): import datetime vandaag = datetime.datetime.now() dag = vandaag.day maand =

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Alessandro Pasotti
On Thu, Aug 9, 2018 at 9:23 AM, Reginald Carlier < reginald.carl...@ingelmunster.be> wrote: > Thanks a lot Alessandro, > > > > That works perfectly. > Glad it helped. btw, this is a side-effect of the recent changes in QGIS locale: we are now using setting a "default locale" (from QGIS

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
Thanks a lot Alessandro, That works perfectly. Reginald Carlier Deskundige GIS Gemeente Ingelmunster, Oostrozebekestraat 4, 8770 Ingelmunster T+32 51 33 74 39www.ingelmunster.be Raadpleeg onze disclaimer Van: Alessandro Pasotti [mailto:apaso...@gmail.com] Verzonden: donderdag 9 augustus 2018

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Alessandro Pasotti
Reginald, Using QT: locale = QLocale(QLocale.Japanese) locale.toString(QDate.currentDate()) And, if you want to use the same settings that you set in QGIS, just use the default locale: locale = QLocale() # Default locale from QGIS options/settings locale.toString(QDate.currentDate())

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
I forgot to mention that I import datetime as follows: from datetime import datetime In the console I get the same result as from my script. Maybe I should use QCoreApplication.translate or some other explicit way to tell python to translate a string from English to Dutch? Regards, Reginald

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Nyall Dawson
On Thu, 9 Aug 2018 at 16:39, Reginald Carlier wrote: > > Hi Nyall, > > Somehow my post shows the code but my previous post doesn't. > Anyway this is how the code looks: > > vandaag = datetime.now() > dag = vandaag.day > maand = vandaag.strftime("%B") > jaar = vandaag.year > datum = str(dag) + " "

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald Carlier
Hi Nyall, Somehow my post shows the code but my previous post doesn't. Anyway this is how the code looks: vandaag = datetime.now() dag = vandaag.day maand = vandaag.strftime("%B") jaar = vandaag.year datum = str(dag) + " " + maand + " " + str(jaar) I suspect that maybe strftime changed in

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Nyall Dawson
On Mon, 30 Jul 2018 at 19:22, Reginald wrote: > > Hi, > > I have a script that was adapted to python 3.6 and runs fine on QGIS 3.2. > The problem I'm having is that the date shows up in english. > Under Extra > Options > Algemeen i have: > Vertaling gebruikers-interface --> Nederlands > Locale

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Andreas Neumann
Hi Reginald, Perhaps ask the same question in the qgis-developer mailing list? You are more likely to get an answer. There have been quite some changes (with some side effects) on localization introduced in QGIS 3.2. Maybe this issue is related? Andreas On 2018-08-09 08:14, Reginald wrote:

Re: [Qgis-user] localisation of date fails in QGIS 3.2

2018-08-09 Thread Reginald
nobody has issues with localisation in QGIS 3.2? -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: