Re: [Qgis-user] What QGIS plugin development should I work on this year?

2023-01-26 Thread Gabriel De Luca via QGIS-User
Case 1) would be welcome.

I do a little manually that transformation. I convert the values of
latitude, longitude and ellipsoidal height to geocentric Cartesian
coordinates. Then I find the transformation parameters between the local
system and the geocentric one.

The transformation pipeline is then made up of: a 3D affine transformation
from the local to the geocentric system, the conversion from the geocentric
to the geodetic or geographic system, and finally the projection to some
cartographic system (usually a custom one, but can be projected to any).

The geoscience plugin, on the other hand, is based on the construction of a
derived from a projected reference system. In other words, it calculates
the affine transformation parameters in 2D between a local system and a
projected one and uses them in the construction of a new derived system. The
derived from projected CRS is only compatible with the WKT2:2019 version,
and that limits it in some GDAL and QGIS functions.

I collaborated with the author in the construction of the WKT for derived
from projected CRSes and the calculation of parameters is done with a
script that I had written when I began to need to carry out this type of
transformation. It only requires numpy and is very efficient at finding
transformation parameters. The algorithm on which it is based is not mine.

You can use the script if you consider it convenient, I published it with a
MIT license at https://github.com/gabriel-de-luca/simil.

Regards,
Gabriel De Luca

El jue, 26 ene 2023 a la(s) 14:08, Greg Troxel via QGIS-User (
qgis-user@lists.osgeo.org) escribió:

> Great place to ask IMHO.
>
> These is a combination of a suggestion and a fish for an answer that
> tells me no work is needed.  I don't know how widespread the audience is
> relative to your standards.
>
> 1)
>
> Consider someone with a local coordinate system establish with a total
> station or similar classical methods.  No assumptions on orientation of
> axes, except up is up.  Let's assume there are perhaps hundreds of
> points.  Perhaps this is just a data collector dump and perhaps it is
> gama output.
>
> Further assume the person has absolute positions (lat/lon/HAE) probably
> via GPS RTK, and perhaps standard deviations.
>
> I want to be able to enter the correspondence, and compute a
> transformation that can be not only used in qgis but stored in a file to
> be used with proj/gdal.  And, I want to store the corresponding points
> so that I can re-open, change some, and add some, without starting over.
>
> There is a geoscience plugin that mostly does this but it seemed awkward
> for reasons I don't remember this minute.
>
>
> 2)
>
> Similar, but assume someone has a survey plan with angles and distances,
> and somehow (in a new plugin or separate) converts them to a local
> system (because one can ~never assume the angles are true to any
> particular geodetic coordinate system).  Given 1, this is about entering
> the angles/distances and turning it into a layer, I think.
>
> There is a cadastral plugin but it seems to be about taking a shape and
> producing documents, vs taking documents and producing a shape.
>
>
> 3)
>
> With RTK, one can take 30s, 60s, whatever position traces on a mark.
> Then one can average those.  Multiple such observations over multiple
> days can then be combined to form an estimate for the mark.  There are
> interesting questions here about finding the mark by being close, vs
> labeling, and not labeling is a faster workflow.   I'm doing this
> manually but it would be cool to be more automated.
>
>
> ___
> 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-user] [EXTERNAL] Re: Geopackage slow on NAS if not read-only

2023-03-16 Thread Gabriel De Luca via QGIS-User
Hi Árni,

You can try setting the SQLITE_USE_OGR_VFS=YES configuration option, as
mentioned at https://github.com/qgis/QGIS/issues/27899.
Be sure to read the implications of changing the default (NO) option:
https://gdal.org/drivers/vector/sqlite.html#configuration-options
You can change the config option in a environment variable or a config
file: https://gdal.org/user/configoptions.html#configuration-options

Regards,
Gabriel


El jue, 16 mar 2023 a la(s) 11:08, Árni Geirsson via QGIS-User (
qgis-user@lists.osgeo.org) escribió:

> I do appreciate the good advice to use DBMS, I am doing that too and
> understand the advantages. I would never consider using a geopackage if I
> thought that multiple people would want to edit them at the same time. But
> that is not the case and that is not my problem. Sometimes, I just want to
> keep geodata in a file on a network share and run the risk (in my case
> insignificant) that the file will be corrupted by multi user access. This I
> can do with shapefiles, but unlike the shapefiles, I have to set the
> read-only flag on the geopackages stored on the network to get decent
> rendering speed, without ever wanting to edit the files. I think wanting to
> use file based storage for geodata in a networked environment is not
> unreasonable, even if there is some danger of corruption. All file based
> formats are probably subject to that risk, but I repeat, that issue is not
> what I am talking about, just the rendering speed of data in a geopackage
> that is not set to read-only.
> I suspect that there is no solution and that I will just have to live with
> this - as I have done for years. It is just a bit annoying. And I am
> surprised how little it is discussed.
>
> Árni
>
>
> On Thu, 16 Mar 2023 at 13:46, Sadowski Jarosław via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> +1
>>
>>
>>
>> Don’t use file formats to edit by multiple users. I was occurring some
>> critical problems, as for example disappearing objects from database or
>> LONG read for first time ☹
>>
>>
>>
>> Use PostgreSQL or other solutions like:
>>
>> Mergin Maps: Collect, Store and Analyze your Geo-Data Easily
>> 
>>
>> GIS Support » GIS.Box (gis--support-pl.translate.goog)
>> 
>>
>>
>>
>>
>> *_*
>>
>> *Jarosław Sadowski*
>> Kierownik Zespołu ds. Ochrony Środowiska | *Biuro Strategii i
>> Planowania, Projektowania i Inżynierii Podprogramu Kolejowego*
>> *Environmental Protection Team Leader **| Railway Subprogramme Strategy
>> & Planning, Design & Engineering Department*
>> e: jaroslaw.sadow...@cpk.pl
>> m: +48 532 720 230
>>
>> *From:* QGIS-User  *On Behalf Of *Bo
>> Victor Thomsen via QGIS-User
>> *Sent:* Thursday, March 16, 2023 2:35 PM
>> *To:* qgis-user@lists.osgeo.org
>> *Subject:* Re: [Qgis-user] [EXTERNAL] Re: Geopackage slow on NAS if not
>> read-only
>>
>>
>>
>> UWAGA: Ta wiadomość pochodzi spoza CPK Sp. z o.o. Proszę pomóż zadbać o
>> bezpieczeństwo naszej organizacji. Zastanów się, zanim otworzysz link lub
>> załącznik.
>>
>>
>>
>> When any user on your network access the geopackage layer and (maybe
>> unnecessarily) puts the layer in edit mode, there will be created 2 extra
>> files in the same directory as the gpkg file resides in. And QGIS behaves
>> different regarding *both* read and write operations when these file are
>> present. This is probably the explanation of the longer reading times, even
>> if nobody actually is editing the layer. When the user stops the editing
>> mode for the layer, the 2 files disappear.
>>
>> You can check if this is the explanation:
>>
>>1. Open the gpkg layer in read mode on one computer, check the access
>>speed of the same layer on *another* computer.
>>2. Set the layer in edit mode on the first computer, check the access
>>speed to the layer on the second computer
>>3. Revert the edit mode on the first computer, check the access speed
>>to the layer on the second computer.
>>
>> I am guessing, that situations 1 and 3 are fast, while situation 2 is
>> slow.
>>
>> First of all: Never, ever try to implement some kind of multi-user
>> editing on a file based format, where the file resides on a networked
>> drive. It will never, ever work reliably. At some point 2 users will try to
>> edit the same layer at the same time and it will go kaboom (I can read from
>> your mails that you are aware about this). This goes for - probably - every
>> file based format on a network drive.
>>
>> Secondly: What about making the gpkg file read-only at the network share
>> level for most of the users. And only granting write access to the gpkg
>> file for certain users that are instructed in *not* setting the layer in
>> edit mode unless it's strictly necessary ?
>>
>> The best solution: Install Postgres/PostGIS on your NAS
>>
>> Med venlig hilsen / Best regards
>>
>>
>>
>> Bo Victo

Re: [Qgis-user] [QGIS-Developer] Call for co-maintainers of the QGIS hub

2023-04-05 Thread Gabriel De Luca via QGIS-User
Hi Tim,

  I could help keep an eye on new submissions and test them on my machine.
  My osgeo username is gabrieldeluca. Count on me if you think I can be of
help.

Regards,
Gabriel

El mar, 4 abr 2023 a la(s) 12:40, Tim Sutton via QGIS-Developer (
qgis-develo...@lists.osgeo.org) escribió:

> Dear QGIS enthusiasts
>
> As some of you may be aware, we have been developing a space for users to
> share their QML styles, processing models, 3D objects, etc.
>
> You can find already a rich collection of great resources here:
>
> https://plugins.qgis.org/ (open the 'Hub' menu up top).
>
> It would be really great to have co-reviewers help me to deal with the new
> submissions as they come in. If you are interested to help me, please let
> me know and I will give you the access needed (I'll need your OSGEO id).
>
> Thanks!
>
> Regards
>
> Tim
>
> --
>
> --
>
> Tim Sutton
> Kartoza Co-Founder
> Visit http://kartoza.com to find out about open source:
>  * Desktop GIS programming services
>  * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
>
> ---
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
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] python code generated during georeferencing in QGIS

2023-05-20 Thread Gabriel De Luca via QGIS-User
Hi,

  QGIS georeferencing is made in C++, so i think you can't get its workflow
in the Python console.
  You can see the code of the georeferencer in:
https://github.com/qgis/QGIS/tree/master/src/app/georeferencer

Regards,
Gabriel

El sáb, 20 may 2023 a la(s) 11:53, Mike Flannigan via QGIS-User (
qgis-user@lists.osgeo.org) escribió:

>
> Theoretically QGIS is open source code.  I have not proved that
> myself, but that is what I hear.  If that is the case, Yes,
> you can see the QGIS code used for georeferencing - if you can
> find it :-)
>
>
> Mike
>
>
> On 5/16/23 14:00, qgis-user-requ...@lists.osgeo.org wrote:
> > Message: 2
> > Date: Tue, 16 May 2023 12:55:48 +0200
> > From: Spaska Forteva
> > To:qgis-user@lists.osgeo.org
> > Subject: [Qgis-user] python code generated during georeferencing in
> >   QGIS
> > Message-ID:
> >   
> > Content-Type: text/plain; charset=UTF-8; format=flowed
> >
> > Hello,
> >
> > I have a problem and I hope for an answer here. I know how to
> > georeference a tif map with geopoints in QGIS. I have developed a shiny
> > app and want to automate/program the georeferencing for several maps
> > there (for loop). Unfortunately, I've tried a lot and can't get it
> > directly under python without errors. My question, is there any way I
> > can see the python code generated during georeferencing in QGIS? I can
> > develop something myself in the Python console, but not the steps that I
> > create with the QGIS program for georeferencing, right?
> > Is there a way to see the python code generated during georeferencing in
> > QGIS? -GPT says yes, but nothing happens to me in the console 🙁
> >
> > Best Regards,
> > Spaska Forteva
>
> ___
> 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-user] Planetary (Venus) coordinate reference systems

2023-11-10 Thread Gabriel De Luca via QGIS-User
Hi,

  I think that it is the main canvas trying to reproject all layers to a
common (but not related to any Earth's) CRS.  As if the datum
transformations between these systems were not defined, and the absence of
the WGS-84 pivot was insurmountable.

  In my opinion, the most convenient thing to do is to disable the
"on-the-fly" projection of the main map. In the project properties, CRS
tab, checking the option: "No CRS (or unknown/non-Earth projection)".

  In this way, the canvas becomes a kind of "universal-unitless 2D
Cartesian system". All the geometries of the layers will be displayed in
the coordinates that are stored in their vertices, and the rasters
according to their matrices of geotransform. In fact, it can contribute to
a better understanding of coordinate reference systems.

  The only things that are disabled are on-the-fly reprojection on the main
map and maybe ellipsoidal measurements. All other functionalities must be
available.


Regards,
Gabriel

El vie, 10 nov 2023 a la(s) 18:49, Diaz, Tony A. via QGIS-User (
qgis-user@lists.osgeo.org) escribió:

> I’m trying to help a student understand projections and trying to load in
> a Venus global map data. When they try to align different maps with the
> same projection, or even change projection, a consistent error message  "No
> transform available between  and Custom CRS” keeps occurring.
>
> Any tips or ideas would be helpful,
>
>
>
> Tony
>
> Caltech
>
> Pasadena, CA
>
>
>
>
> ___
> 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