Re: [Qgis-user] QGIS and historical battle

2023-02-03 Thread Shinoto, PD Dr. Maria via QGIS-User
Hi Ciprian, 

Another archaeologist here. 

I encourage you to test both paths. (1) Maps from modern to ancient to 
understand the history of the landscape and the position of the battlefield in 
that context or (2) Geomorphology from DTM, Hydrology, and additional 
historical information. 

We had positive results with LiDAR data in densely forested, mountainous areas 
that had experienced many changes -- paddy rice fields, buildings, paths -- 
over the centuries before being abandoned after World War II. With Lidar data, 
we could create a DTM that revealed small hollows from tunnel kilns that 
crashed about 1200 years ago. You cannot spot them during field walks, but with 
the DTM at hand, no problem. A battlefield with digs and earthen barriers 
should also present some patterns in the DTM that might help you find real 
places. 

Of course, this only applies to certain types of battle (though one day with 
digs may be enough) and whether you have a decent DTM. We used a 20cm grid, but 
1m might have been sufficient. The official DTMs from the Japanese government 
are useless in such research, but I do not know whether you have access to 
good-quality data in your country.

To encourage you!

Maria



> Am 2023-02-04 um 02:06 schrieb Madry, Scott via QGIS-User 
> :
> 
> Hi Ciprian. 
> 
> There are many examples of such historical/archaeological research. I would 
> suggest that you get a decent DEM (and generate slope and aspect) and vector 
> hydrology, as Bernd suggested, but I think the most important will be to find 
> a series of historical maps of the area. Scan these, or get them in digital 
> format already if you can, and then georeference the maps to the modern 
> landscape using either current imagery or you can use Openstreetmap or the 
> most detailed current governmental data. You don’t say where you are… Once 
> you have the maps georeferenced, vector digitize the old roadways, bridges, 
> and other relevant features, so you are working back in time. Start with the 
> most recent maps and work backwards, and go back as far as you can to the 
> time of the battle. Then you can start looking at the intervisibility, time 
> and movement along the roads, and see what locations might best fit your 
> historical documentary data for what happened. Then you can look on Google 
> Earth and other imagery (quickmapservices plugin) for vestiges on the 
> landscape.
> 
> You don’t say what your position is, if you are a professional archaeologist 
> or simply interested in the history, but do be aware that it is generally 
> illegal to conduct excavations or ground surveys without proper 
> archaeological permits and without the permission of the land owner. Cultural 
> resources laws vary, but it is best to consult the local museum or 
> archaeologists before any digging.
> 
> Feel free to contact me,
> 
> Scott
> 
> Scott Madry, Ph.D.
> Research Associate Professor of Archaeology
> The University of North Carolina at Chapel Hill
> 
> Tel 1-919-448-4493
> Email:mad...@email.unc.edu
> https://scottmadry.web.unc.edu
> Skype:   scott madry
> 
> 
> 
> 
>> On Feb 3, 2023, at 9:32 AM, Bernd Vogelgesang via QGIS-User 
>>  wrote:
>> 
>> Hi,
>> I'm no archaeologist, but I know that there are quite some of them
>> around on this list.
>> 
>> First short answer: yes, of course!
>> 
>> First counter-question: What kind of geodata is already available to you?
>> 
>> Actually, I think you just need 3 data-sets:
>> a digital terrain model to find observation spots and valleys
>> a vector of rivers to find the confluences
>> a point vector of (historic) towns
>> 
>> Unfortunately you did not mention how big the possible region for this
>> battle is, so it is hard to guess if it makes sense to create a real
>> simulation model, or if places can be identified in a semi-manual way.
>> 
>> I think it would be useful to keep the discussion on the list, so others
>> can learn from the example as well.
>> Though this is not my business, I am always interested in such kind of
>> "riddles".
>> 
>> For a starter: There is the great Visibility Analysis Plugin of Zoran
>> Čučković, where you can create a Visibility Index on a terrain data-set
>> which I think is exactly meant to identify outlook spots in the
>> landscape for a given radius.
>> 
>> Cheers,
>> Bernd
>> 
>> 
>> Am 03.02.23 um 09:20 schrieb Lazanu Ciprian-Cătălin via QGIS-User:
>>> Hello,
>>> I want to start a project with a great challenge:
>>> 
>>>  * first an introduction - a battle between two armies in the medieval
>>>period. we have a few pieces of information regarding this battle:
>>>the number of soldiers from both armies (army A with ~ 25.000/30.000
>>>soldiers and army B between 50.000 and 100.000 - medieval chronicles
>>>have different numbers) and incomplete information regarding the
>>>exact place of the battle. all we know is that it was on a river
>>>valley and the main battle was regarding controlling a bridge 

Re: [Qgis-user] use Binary (Blob) in writeAsVectorFormat

2023-02-03 Thread Hugh Kelley via QGIS-User
Hi Chris, thanks for that!

It would not have surprised me if the attribute datatype was simply not
compatible with shapefile, plenty of other things are not.

What I'm seeing in QGIS is that the gui interface for exporting a layer has
an option for handling a binary blob attribute type and indeed when the
option is checked, the new shape file is created without a warning or
error.

What I'm trying to figure out, I think, is how to put that option to work
via pyqgis.

Is there perhaps a way to see the exact command that the export data
interface is running successfully? I think ive seen the processing plugins
show the command to be run, or at least all the parameters in the interface
while a process is going, but the export data utility just closes and shows
progress in the bottom of the main qgis window as it works.

Alternatively, If there is an example somewhere of how to exclude
attributes by type when exporting with pyqgis I could just exclude
attributes that are causing problems for now. I've searched around for that
a bit but haven't turned up an exact example of it. It's straightforward to
get and check the types of a layers attributes but I haven't figured out
how to pass a subset of attributes to the writeasvector function.

Thanks!


On Fri, Feb 3, 2023, 5:13 PM chris hermansen  wrote:

> Hugh and list;
>
> On Fri, Feb 3, 2023 at 11:41 AM Hugh Kelley via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> to follow up as I continue to work on this,
>>
>> I mistakenly understood the attribute type "binary" as a Boolean, but I
>> think it's in fact an arbitrary value stored as binary. That is to say, not
>> necessarily True/False or 0/1 but a series of 0/1's storing a value.
>>
>> If I can save it to the shapefile that would be great but I'm going to
>> work on filtering those attributes out of what's saved as that's an
>> acceptable solution too I think.
>>
>> On Fri, Feb 3, 2023 at 2:24 PM Hugh Kelley  wrote:
>>
>>> Hi,
>>>
>>> I'm attempting to use pyqgis to export a few things to shapefile.
>>>
>>> the code below is working well except that a few of the attributes are
>>> incompatible with shapefiles (amazing) lack of a binary datatype.
>>>
>>> ```py
>>> pathToFile = "C:/Users/hkelley/Downloads/test_exports/
>>>
>>> layers = QgsProject.instance().mapLayers()
>>>
>>> for layer_id, layer in layers.items():
>>> print(layer.name())
>>> QgsVectorFileWriter.writeAsVectorFormat( layer,  pathToFile+
>>> layer.name() + ".shp", "utf-8", layer.crs(), driverName="ESRI
>>> Shapefile" )
>>> ```
>>>
>>> I see in the manual export options that I can check a box telling the
>>> export process to use "Use Binary (BLOB)". Image linked below for clarity
>>> [0]
>>>
>>> I haven't yet figured out how to pass that option to
>>> writeAsVectorFormat.
>>>
>>> any suggestions?
>>>
>>> Iv'e had a pretty thorough look through the docs for writeAsVctorFormat,
>>> is the solution related to
>>> QgsVectorFileWriter.BoolOption(QgsVectorFileWriter.BoolOption)?
>>>
>>>
> Have you looked at this https://en.wikipedia.org/wiki/.dbf to understand
> how attributes are stored in .dbf files?
>
> In particular there you will see this comment:
>
> *All field data is ASCII. Depending on the field's type, the application
> imposes further restrictions: *
>
> Does this help?
> --
> Chris Hermansen · clhermansen "at" gmail "dot" com
>
> C'est ma façon de parler.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] use Binary (Blob) in writeAsVectorFormat

2023-02-03 Thread chris hermansen via QGIS-User
Hugh and list;

On Fri, Feb 3, 2023 at 11:41 AM Hugh Kelley via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> to follow up as I continue to work on this,
>
> I mistakenly understood the attribute type "binary" as a Boolean, but I
> think it's in fact an arbitrary value stored as binary. That is to say, not
> necessarily True/False or 0/1 but a series of 0/1's storing a value.
>
> If I can save it to the shapefile that would be great but I'm going to
> work on filtering those attributes out of what's saved as that's an
> acceptable solution too I think.
>
> On Fri, Feb 3, 2023 at 2:24 PM Hugh Kelley  wrote:
>
>> Hi,
>>
>> I'm attempting to use pyqgis to export a few things to shapefile.
>>
>> the code below is working well except that a few of the attributes are
>> incompatible with shapefiles (amazing) lack of a binary datatype.
>>
>> ```py
>> pathToFile = "C:/Users/hkelley/Downloads/test_exports/
>>
>> layers = QgsProject.instance().mapLayers()
>>
>> for layer_id, layer in layers.items():
>> print(layer.name())
>> QgsVectorFileWriter.writeAsVectorFormat( layer,  pathToFile+
>> layer.name() + ".shp", "utf-8", layer.crs(), driverName="ESRI Shapefile"
>> )
>> ```
>>
>> I see in the manual export options that I can check a box telling the
>> export process to use "Use Binary (BLOB)". Image linked below for clarity
>> [0]
>>
>> I haven't yet figured out how to pass that option to writeAsVectorFormat.
>>
>> any suggestions?
>>
>> Iv'e had a pretty thorough look through the docs for writeAsVctorFormat,
>> is the solution related to
>> QgsVectorFileWriter.BoolOption(QgsVectorFileWriter.BoolOption)?
>>
>>
Have you looked at this https://en.wikipedia.org/wiki/.dbf to understand
how attributes are stored in .dbf files?

In particular there you will see this comment:

*All field data is ASCII. Depending on the field's type, the application
imposes further restrictions: *

Does this help?
-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[QGIS-it-user] Disiscrizione

2023-02-03 Thread Lorenzo Tortoioli
Chiedo disiscrizione della seguente email /
loren...@hotmail.it

Inviato da Outlook per Android
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] QGIS for Windows with GSS/Kerberos/Active Directory

2023-02-03 Thread Tomas Pospisek via QGIS-User

On 03.02.23 20:06, chris hermansen wrote:

On Fri, Feb 3, 2023 at 9:25 AM Tomas Pospisek via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:


On 03.02.23 18:02, chris hermansen wrote:

>  >

 > On Fri, Feb 3, 2023 at 8:11 AM Tomas Pospisek via QGIS-User
 > mailto:qgis-user@lists.osgeo.org>
>> wrote:
 >
 >     When I try to set up a connection to a Postgres/Postgis DB server 
with
 >     Active Directory/Kerberos/GSS authentication the QGIS DB setup dialog
 >     displays this message:
 >
 >           gssencmode value "require" invalid when GSSAPI support is not 
compiled in
 >
 >     When I check the Postgres source code [1] I see that apparently this
 >     gets displayed when GSS support is not compiled in.
 >
 >     So it seems QGIS as shipped by qgis.org does not ship with GSS 
support?
 >     Is that correct?
 >
 >     Does anybody use QGIS on Windows with GSS? How did you do it?
 >
 >     I could go ahead and download the EDB Postgres ZIP [3] and exctract
 >     libpq.dll from it and replace the libqq.dll shipped by the QGIS
 >     installer with it, but I'm not sure if that would work at all, if 
that
 >     would be robust and it'll certainly be a pain to maintain.
 >
 >     Any pointers/suggestions/help?
 >
 >
 > Maybe this is the proverbial dumb question... but why not install your
 > EDB PostgreSQL on your windows machine and run it on a different port?
 > And then connect to it from your QGIS instance, on that different port
 > of course?

Thanks for your answer Chris, but I can't see how you your reply relates
to my question. I need QGIS to authenticate users with Active
Directory/Kerberos. That QGIS/libpq fails to do so doesn't have anything
to do with ports but with the fact that GSS support is not compiled into
the libpq that is furnished with QGIS.


Sorry I was somehow thinking that by using a different PostgreSQL 
installation "in its entirety" you could avoid using the libqq.dll (or 
is it libpq.dll) that QGIS installs.


Yeah, that's kinda what I have in mind, however I fear DLL hell and I am 
not knowledgeable how to do it "right". So that's why I am asking for 
advice from people who might have travelled this path before...


My apologies for contributing nothing useful to the solution of your 
problem.


Ah, I'm sorry for making it sound like that :-(. I'm very glad you tried 
to help...! Thank you :-)!

*t

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] use Binary (Blob) in writeAsVectorFormat

2023-02-03 Thread Hugh Kelley via QGIS-User
to follow up as I continue to work on this,

I mistakenly understood the attribute type "binary" as a Boolean, but I
think it's in fact an arbitrary value stored as binary. That is to say, not
necessarily True/False or 0/1 but a series of 0/1's storing a value.

If I can save it to the shapefile that would be great but I'm going to work
on filtering those attributes out of what's saved as that's an acceptable
solution too I think.

On Fri, Feb 3, 2023 at 2:24 PM Hugh Kelley  wrote:

> Hi,
>
> I'm attempting to use pyqgis to export a few things to shapefile.
>
> the code below is working well except that a few of the attributes are
> incompatible with shapefiles (amazing) lack of a binary datatype.
>
> ```py
> pathToFile = "C:/Users/hkelley/Downloads/test_exports/
>
> layers = QgsProject.instance().mapLayers()
>
> for layer_id, layer in layers.items():
> print(layer.name())
> QgsVectorFileWriter.writeAsVectorFormat( layer,  pathToFile+
> layer.name() + ".shp", "utf-8", layer.crs(), driverName="ESRI Shapefile" )
> ```
>
> I see in the manual export options that I can check a box telling the
> export process to use "Use Binary (BLOB)". Image linked below for clarity
> [0]
>
> I haven't yet figured out how to pass that option to writeAsVectorFormat.
>
> any suggestions?
>
> Iv'e had a pretty thorough look through the docs for writeAsVctorFormat,
> is the solution related to
> QgsVectorFileWriter.BoolOption(QgsVectorFileWriter.BoolOption)?
>
>
>
> [0] https://imgur.com/a/9zSMHKq
>
> --
> Hugh Kelley
>
>

-- 
Hugh Kelley
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] use Binary (Blob) in writeAsVectorFormat

2023-02-03 Thread Hugh Kelley via QGIS-User
Hi,

I'm attempting to use pyqgis to export a few things to shapefile.

the code below is working well except that a few of the attributes are
incompatible with shapefiles (amazing) lack of a binary datatype.

```py
pathToFile = "C:/Users/hkelley/Downloads/test_exports/

layers = QgsProject.instance().mapLayers()

for layer_id, layer in layers.items():
print(layer.name())
QgsVectorFileWriter.writeAsVectorFormat( layer,  pathToFile+ layer.name()
+ ".shp", "utf-8", layer.crs(), driverName="ESRI Shapefile" )
```

I see in the manual export options that I can check a box telling the
export process to use "Use Binary (BLOB)". Image linked below for clarity
[0]

I haven't yet figured out how to pass that option to writeAsVectorFormat.

any suggestions?

Iv'e had a pretty thorough look through the docs for writeAsVctorFormat, is
the solution related to
QgsVectorFileWriter.BoolOption(QgsVectorFileWriter.BoolOption)?



[0] https://imgur.com/a/9zSMHKq

-- 
Hugh Kelley
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS for Windows with GSS/Kerberos/Active Directory

2023-02-03 Thread chris hermansen via QGIS-User
Tomas and list,

On Fri, Feb 3, 2023 at 9:25 AM Tomas Pospisek via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> On 03.02.23 18:02, chris hermansen wrote:
> > Tomas and list,
> >
> > On Fri, Feb 3, 2023 at 8:11 AM Tomas Pospisek via QGIS-User
> > mailto:qgis-user@lists.osgeo.org>> wrote:
> >
> > When I try to set up a connection to a Postgres/Postgis DB server
> with
> > Active Directory/Kerberos/GSS authentication the QGIS DB setup dialog
> > displays this message:
> >
> >   gssencmode value "require" invalid when GSSAPI support is not
> > compiled in
> >
> > When I check the Postgres source code [1] I see that apparently this
> > gets displayed when GSS support is not compiled in.
> >
> > So it seems QGIS as shipped by qgis.org  does not
> > ship with GSS support?
> > Is that correct?
> >
> > Does anybody use QGIS on Windows with GSS? How did you do it?
> >
> > I could go ahead and download the EDB Postgres ZIP [3] and exctract
> > libpq.dll from it and replace the libqq.dll shipped by the QGIS
> > installer with it, but I'm not sure if that would work at all, if
> that
> > would be robust and it'll certainly be a pain to maintain.
> >
> > Any pointers/suggestions/help?
> >
> >
> > Maybe this is the proverbial dumb question... but why not install your
> > EDB PostgreSQL on your windows machine and run it on a different port?
> > And then connect to it from your QGIS instance, on that different port
> > of course?
>
> Thanks for your answer Chris, but I can't see how you your reply relates
> to my question. I need QGIS to authenticate users with Active
> Directory/Kerberos. That QGIS/libpq fails to do so doesn't have anything
> to do with ports but with the fact that GSS support is not compiled into
> the libpq that is furnished with QGIS.
>
>
Sorry I was somehow thinking that by using a different PostgreSQL
installation "in its entirety" you could avoid using the libqq.dll (or is
it libpq.dll) that QGIS installs.  I guess I'm too used to (spoiled by?)
apt based installations on Linux where applications tend to use what's in
the distro's repositories for this kind of stuff.

My apologies for contributing nothing useful to the solution of your
problem.


-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS for Windows with GSS/Kerberos/Active Directory

2023-02-03 Thread Tomas Pospisek via QGIS-User

On 03.02.23 18:02, chris hermansen wrote:

Tomas and list,

On Fri, Feb 3, 2023 at 8:11 AM Tomas Pospisek via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:


When I try to set up a connection to a Postgres/Postgis DB server with
Active Directory/Kerberos/GSS authentication the QGIS DB setup dialog
displays this message:

      gssencmode value "require" invalid when GSSAPI support is not
compiled in

When I check the Postgres source code [1] I see that apparently this
gets displayed when GSS support is not compiled in.

So it seems QGIS as shipped by qgis.org  does not
ship with GSS support?
Is that correct?

Does anybody use QGIS on Windows with GSS? How did you do it?

I could go ahead and download the EDB Postgres ZIP [3] and exctract
libpq.dll from it and replace the libqq.dll shipped by the QGIS
installer with it, but I'm not sure if that would work at all, if that
would be robust and it'll certainly be a pain to maintain.

Any pointers/suggestions/help?


Maybe this is the proverbial dumb question... but why not install your 
EDB PostgreSQL on your windows machine and run it on a different port?  
And then connect to it from your QGIS instance, on that different port 
of course?


Thanks for your answer Chris, but I can't see how you your reply relates 
to my question. I need QGIS to authenticate users with Active 
Directory/Kerberos. That QGIS/libpq fails to do so doesn't have anything 
to do with ports but with the fact that GSS support is not compiled into 
the libpq that is furnished with QGIS.

*t

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis Server: how to log database queries

2023-02-03 Thread Alessandro Pasotti via QGIS-User
No, there is no (easy) way to log the SQL in QGIS server.

You may try with a server plugin that uses the new debugging panel
query logger but I'm not sure if that will work (I didn't try).

Kind regards.


On Fri, Feb 3, 2023 at 5:38 PM Tommaso via QGIS-User
 wrote:
>
> Hello,
> my WFS service - based on docker-qgis-server/  3.28.0 (the camptocamp image) 
> -  is not returning all features I expect, when I use a spatial query.
> To debug the problem, I would like to see the queries, which Qgis send to the 
> database. But it seems that the maximal log level is INFO, which logs only 
> the HTTP requests:
>
> QGIS_SERVER_LOG_LEVEL=0
>
> https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/config.html#logging
>
>
> There is way to see database queries? Unfortunately I don't have access to 
> the machine, where the database is running, so I cannot check the queries on 
> that machine.
>
> Best regards, Tommaso
>
> --
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS and historical battle

2023-02-03 Thread Madry, Scott via QGIS-User
Hi Ciprian.

There are many examples of such historical/archaeological research. I would 
suggest that you get a decent DEM (and generate slope and aspect) and vector 
hydrology, as Bernd suggested, but I think the most important will be to find a 
series of historical maps of the area. Scan these, or get them in digital 
format already if you can, and then georeference the maps to the modern 
landscape using either current imagery or you can use Openstreetmap or the most 
detailed current governmental data. You don’t say where you are… Once you have 
the maps georeferenced, vector digitize the old roadways, bridges, and other 
relevant features, so you are working back in time. Start with the most recent 
maps and work backwards, and go back as far as you can to the time of the 
battle. Then you can start looking at the intervisibility, time and movement 
along the roads, and see what locations might best fit your historical 
documentary data for what happened. Then you can look on Google Earth and other 
imagery (quickmapservices plugin) for vestiges on the landscape.

You don’t say what your position is, if you are a professional archaeologist or 
simply interested in the history, but do be aware that it is generally illegal 
to conduct excavations or ground surveys without proper archaeological permits 
and without the permission of the land owner. Cultural resources laws vary, but 
it is best to consult the local museum or archaeologists before any digging.

Feel free to contact me,

Scott

Scott Madry, Ph.D.
Research Associate Professor of Archaeology
The University of North Carolina at Chapel Hill

Tel 1-919-448-4493
Email:mad...@email.unc.edu
https://scottmadry.web.unc.edu
Skype:   scott madry




On Feb 3, 2023, at 9:32 AM, Bernd Vogelgesang via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:

Hi,
I'm no archaeologist, but I know that there are quite some of them
around on this list.

First short answer: yes, of course!

First counter-question: What kind of geodata is already available to you?

Actually, I think you just need 3 data-sets:
a digital terrain model to find observation spots and valleys
a vector of rivers to find the confluences
a point vector of (historic) towns

Unfortunately you did not mention how big the possible region for this
battle is, so it is hard to guess if it makes sense to create a real
simulation model, or if places can be identified in a semi-manual way.

I think it would be useful to keep the discussion on the list, so others
can learn from the example as well.
Though this is not my business, I am always interested in such kind of
"riddles".

For a starter: There is the great Visibility Analysis Plugin of Zoran
Čučković, where you can create a Visibility Index on a terrain data-set
which I think is exactly meant to identify outlook spots in the
landscape for a given radius.

Cheers,
Bernd


Am 03.02.23 um 09:20 schrieb Lazanu Ciprian-Cătălin via QGIS-User:
Hello,
I want to start a project with a great challenge:

 * first an introduction - a battle between two armies in the medieval
   period. we have a few pieces of information regarding this battle:
   the number of soldiers from both armies (army A with ~ 25.000/30.000
   soldiers and army B between 50.000 and 100.000 - medieval chronicles
   have different numbers) and incomplete information regarding the
   exact place of the battle. all we know is that it was on a river
   valley and the main battle was regarding controlling a bridge at the
   confluence of 2 rivers. another clue is that the battle was at a
   short distance from an important city (name Town) which is located
   in that river valley. Army B was marching on the river valley to
   take the city Town and met army A at a short distance from the city.
   The battle was around a bridge on the river. That is all we know.
   (Army A won that battle).
 * what I want ... I want to see if I could locate that battle (so l
   could make some archaeological investigation after that) using some
   simulators ... for example: to see how long the marching formation
   of army B (50.000 to 80.000/90.000 soldiers) was to see the
   distribution on the field/road to city Town.
 * another clue ... we know that the commander of army A (the defender)
   had a small base fortification from where he could see and command
   the army and make orders. such a place is visible now on a hill from
   where you could see at 15 - 20 km down the river valley. (I know
   that l could use visibility analysis). On the ground, the surface is
   no visible traces of that battle.

This battle is an important historical moment in the history of my
country and has an important local value.
So, is there anything in QGIS or other GIS software something to work so
l can make a simulation or something like that regarding this kind of
activity?
Thank you in advance ... and any suggestions could be sent via email in
private too.
Ciprian


Re: [Qgis-user] QGIS for Windows with GSS/Kerberos/Active Directory

2023-02-03 Thread chris hermansen via QGIS-User
Tomas and list,

On Fri, Feb 3, 2023 at 8:11 AM Tomas Pospisek via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> When I try to set up a connection to a Postgres/Postgis DB server with
> Active Directory/Kerberos/GSS authentication the QGIS DB setup dialog
> displays this message:
>
>  gssencmode value "require" invalid when GSSAPI support is not
> compiled in
>
> When I check the Postgres source code [1] I see that apparently this
> gets displayed when GSS support is not compiled in.
>
> So it seems QGIS as shipped by qgis.org does not ship with GSS support?
> Is that correct?
>
> Does anybody use QGIS on Windows with GSS? How did you do it?
>
> I could go ahead and download the EDB Postgres ZIP [3] and exctract
> libpq.dll from it and replace the libqq.dll shipped by the QGIS
> installer with it, but I'm not sure if that would work at all, if that
> would be robust and it'll certainly be a pain to maintain.
>
> Any pointers/suggestions/help?
>

Maybe this is the proverbial dumb question... but why not install your EDB
PostgreSQL on your windows machine and run it on a different port?  And
then connect to it from your QGIS instance, on that different port of
course?


-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis Server: how to log database queries

2023-02-03 Thread Tommaso via QGIS-User

Hello,

my WFS service - based on docker-qgis-server/  3.28.0 (the camptocamp 
image) -  is not returning all features I expect, when I use a spatial 
query. 
To debug the problem, I would like to see the queries, which Qgis send to 
the database. But it seems that the maximal log level is INFO, which logs 
only the HTTP requests:



QGIS_SERVER_LOG_LEVEL=0
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/config.html#logging





There is way to see database queries? Unfortunately I don't have access to 
the machine, where the database is running, so I cannot check the queries 
on that machine.



Best regards, Tommaso

--
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS for Windows with GSS/Kerberos/Active Directory

2023-02-03 Thread Tomas Pospisek via QGIS-User
When I try to set up a connection to a Postgres/Postgis DB server with 
Active Directory/Kerberos/GSS authentication the QGIS DB setup dialog 
displays this message:


gssencmode value "require" invalid when GSSAPI support is not 
compiled in


When I check the Postgres source code [1] I see that apparently this 
gets displayed when GSS support is not compiled in.


So it seems QGIS as shipped by qgis.org does not ship with GSS support? 
Is that correct?


Does anybody use QGIS on Windows with GSS? How did you do it?

I could go ahead and download the EDB Postgres ZIP [3] and exctract 
libpq.dll from it and replace the libqq.dll shipped by the QGIS 
installer with it, but I'm not sure if that would work at all, if that 
would be robust and it'll certainly be a pain to maintain.


Any pointers/suggestions/help?
*t

[1] https://doxygen.postgresql.org/fe-connect_8c_source.html#l01357
[2] https://qgis.org/de/site/forusers/download.html#windows
[3] https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[QGIS-it-user] Regole mailing list

2023-02-03 Thread Stefano Campus
Ciao a tutti,
vi ricordo che questa è una mailing list e per non appesantire le caselle
di posta degli iscritti la dimensione consentita delle mail e relativi
allegati è ridotta.
Capita quindi che inserendo immagini o altro, i messaggi siano respinti.
In questo caso, anziché allegare l'immagine poteste utilizzare servizi di
condivisione ed inserire il link

Grazie mille e felice serata a tutti

s.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] QGIS and historical battle

2023-02-03 Thread Bernd Vogelgesang via QGIS-User

Hi,
I'm no archaeologist, but I know that there are quite some of them
around on this list.

First short answer: yes, of course!

First counter-question: What kind of geodata is already available to you?

Actually, I think you just need 3 data-sets:
a digital terrain model to find observation spots and valleys
a vector of rivers to find the confluences
a point vector of (historic) towns

Unfortunately you did not mention how big the possible region for this
battle is, so it is hard to guess if it makes sense to create a real
simulation model, or if places can be identified in a semi-manual way.

I think it would be useful to keep the discussion on the list, so others
can learn from the example as well.
Though this is not my business, I am always interested in such kind of
"riddles".

For a starter: There is the great Visibility Analysis Plugin of Zoran
Čučković, where you can create a Visibility Index on a terrain data-set
which I think is exactly meant to identify outlook spots in the
landscape for a given radius.

Cheers,
Bernd


Am 03.02.23 um 09:20 schrieb Lazanu Ciprian-Cătălin via QGIS-User:

Hello,
I want to start a project with a great challenge:

  * first an introduction - a battle between two armies in the medieval
period. we have a few pieces of information regarding this battle:
the number of soldiers from both armies (army A with ~ 25.000/30.000
soldiers and army B between 50.000 and 100.000 - medieval chronicles
have different numbers) and incomplete information regarding the
exact place of the battle. all we know is that it was on a river
valley and the main battle was regarding controlling a bridge at the
confluence of 2 rivers. another clue is that the battle was at a
short distance from an important city (name Town) which is located
in that river valley. Army B was marching on the river valley to
take the city Town and met army A at a short distance from the city.
The battle was around a bridge on the river. That is all we know.
(Army A won that battle).
  * what I want ... I want to see if I could locate that battle (so l
could make some archaeological investigation after that) using some
simulators ... for example: to see how long the marching formation
of army B (50.000 to 80.000/90.000 soldiers) was to see the
distribution on the field/road to city Town.
  * another clue ... we know that the commander of army A (the defender)
had a small base fortification from where he could see and command
the army and make orders. such a place is visible now on a hill from
where you could see at 15 - 20 km down the river valley. (I know
that l could use visibility analysis). On the ground, the surface is
no visible traces of that battle.

This battle is an important historical moment in the history of my
country and has an important local value.
So, is there anything in QGIS or other GIS software something to work so
l can make a simulation or something like that regarding this kind of
activity?
Thank you in advance ... and any suggestions could be sent via email in
private too.
Ciprian

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [QGIS-it-user] QGIS - Crowd-Funding Call 2023

2023-02-03 Thread Totò Fiandaca
Ciao,
ho fatto dei test e funziona.
controlla se hai uBlock attivo oppure pulisci la cache.

saluti

Il giorno ven 3 feb 2023 alle ore 10:31 girarsi AT posteo DOT eu <
gira...@posteo.eu> ha scritto:

> Il 24/01/23 09:10, Totò Fiandaca ha scritto:
> > Buongiorno,
> > ho appena inviato questa mail all'azienda dove collaboro e invito tutti a
> > fare lo stesso oltre che a partecipare in prima persona.
> >
> > Sintesi
> >
>
> Vorrei fare una donazione tramite stripe, come suggerito nella pagina
> delle donazioni, ma come funziona visto non è necessario essere registrati?
>
> Scelgo il valore donazione dal menu a tendina, poi in teoria dovrei
> cliccare checkout, ma tale pulsante risulta disattivato, è possibile?
>
> --
> Simone Girardelli
> _|_|_|_|_|_|_|_|_|_
> |_|_|_|_|_|_|_|_|_|_|
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>


-- 
*Ing. Salvatore Fiandaca*
*mobile*.:+39 327.493.8955
*m*: *pigrecoinfin...@gmail.com *
*C.F*.: FNDSVT71E29Z103G
*P.IVA*: 06597870820
*membro QGIS Italia - http://qgis.it/ *
*socio GFOSS.it - *http://gfoss.it/
*member OSGeo* - *https://www.osgeo.org/member/fiandaca/*

*blog:*
* https://pigrecoinfinito.com/  FB: Co-admin
- https://www.facebook.com/qgis.it/ **
 *
*TW:  **https://twitter.com/totofiandaca
*

43°51'0.54"N  10°34'27.62"E - EPSG:4326

“Se la conoscenza deve essere aperta a tutti,
perchè mai limitarne l’accesso?”
R. Stallman

Questo documento, allegati inclusi, contiene informazioni di proprietà di
FIANDACA SALVATORE e deve essere utilizzato esclusivamente dal destinatario
in relazione alle finalità per le quali è stato ricevuto. E' vietata
qualsiasi forma di riproduzione o divulgazione senza l'esplicito consenso
di FIANDACA SALVATORE. Qualora fosse stato ricevuto per errore si prega di
informare tempestivamente il mittente e distruggere la copia in proprio
possesso.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS - Crowd-Funding Call 2023

2023-02-03 Thread girarsi AT posteo DOT eu

Il 24/01/23 09:10, Totò Fiandaca ha scritto:

Buongiorno,
ho appena inviato questa mail all'azienda dove collaboro e invito tutti a
fare lo stesso oltre che a partecipare in prima persona.

Sintesi



Vorrei fare una donazione tramite stripe, come suggerito nella pagina 
delle donazioni, ma come funziona visto non è necessario essere registrati?


Scelgo il valore donazione dal menu a tendina, poi in teoria dovrei 
cliccare checkout, ma tale pulsante risulta disattivato, è possibile?


--
Simone Girardelli
_|_|_|_|_|_|_|_|_|_
|_|_|_|_|_|_|_|_|_|_|

___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] QGIS and historical battle

2023-02-03 Thread Lazanu Ciprian-Cătălin via QGIS-User
Hello,
I want to start a project with a great challenge:

  *   first an introduction - a battle between two armies in the medieval 
period. we have a few pieces of information regarding this battle: the number 
of soldiers from both armies (army A with ~ 25.000/30.000 soldiers and army B 
between 50.000 and 100.000 - medieval chronicles have different numbers) and 
incomplete information regarding the exact place of the battle. all we know is 
that it was on a river valley and the main battle was regarding controlling a 
bridge at the confluence of 2 rivers. another clue is that the battle was at a 
short distance from an important city (name Town) which is located in that 
river valley. Army B was marching on the river valley to take the city Town and 
met army A at a short distance from the city. The battle was around a bridge on 
the river. That is all we know. (Army A won that battle).
  *   what I want ... I want to see if I could locate that battle (so l could 
make some archaeological investigation after that) using some simulators ... 
for example: to see how long the marching formation of army B (50.000 to 
80.000/90.000 soldiers) was to see the distribution on the field/road to city 
Town.
  *   another clue ... we know that the commander of army A (the defender) had 
a small base fortification from where he could see and command the army and 
make orders. such a place is visible now on a hill from where you could see at 
15 - 20 km down the river valley. (I know that l could use visibility 
analysis). On the ground, the surface is no visible traces of that battle.

This battle is an important historical moment in the history of my country and 
has an important local value.
So, is there anything in QGIS or other GIS software something to work so l can 
make a simulation or something like that regarding this kind of activity?
Thank you in advance ... and any suggestions could be sent via email in private 
too.
Ciprian
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user