Re: [Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Per discussione Jorge Gustavo Rocha
Oi Rodrigo,

Can you run ogrinfo in the command line? Like:

ogrinfo -al -so yourshape.shp

This will tell you the CRS detected by ogr.

ogr (and QGIS) uses the *.prj file. But there are known problems with
the WKT representation of CRS. Sometimes it is hard to know if two
different strings represents the same EPSG code.

For that reason, QGIS also writes and additional *.qpj. When it is
present, QGIS uses this textual representation to compare it against its
database and it always work.

But if you just have the *.prj along with the shapefile, both ogr and
QGIS might fail to detect the exact CRS.

Please share one *.prj that ogr fails to associate with a known EPSG.

Abraço,

Jorge

Às 13:27 de 25/10/18, Rodrigo Mariano escreveu:
> Hello everyone,
> 
> I would like to know: how does QGIS generate the EPSG from a Shapefile?
> 
> I ask this question, because I'm trying to upload a Shapefile by OGR,
> but the OGR doesn't
> insert the correct EPSG. So I need always open the Shapefile in QGIS to
> discover the
> EPSG before uploading it with OGR.
> 
> Thanks in advance.
> 
> Best Regards,
> 
> Rodrigo
> 
> ___
> 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

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
___
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] 3d color ramp

2018-10-25 Per discussione Emanuele Mele
Hi everbody!
I would like to know if exist a way to use a categorized color ramp (like
normal visualization) by using the new 3d viewer in Qgis 3.2

Kind regards

Emanuele Mele
___
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] Importare stili di ArcGIS in QGIS

2018-10-25 Per discussione Federico Gianoli
Ciao Carlo,

sni. Dipende da quanto complesse sono le tue simbologie.
Qui, nel canale youtube di Totò Fiandaca, trovi un video che può aiutarti
https://www.youtube.com/watch?v=kfjsa_Jb6u4=3=0s=PLqDFjeQq7NBhCAsALWJOoMu7pdom14D55

L'idea comunque è di passare attraverso il formato SLD e di importarlo su
QGIS e da lì poi eventualmente risalvarlo nel formato di QGIS.
Esiste se no un'estensione per ArcGIS sviluppata da Geocat che fa questo
lavoro, ma anche lì se le simbologie sono troppo complesse non ce la fa (
https://www.geocat.net/it/home/bridge/)

Federico


Il giorno gio 25 ott 2018 alle ore 16:18 Carlo Nardi  ha
scritto:

>  Ciao a tutti
>
> Per esigenze lavorative dovrei importare degli stili creati in ArcGIS
> all'interno di QGIS.
> E' possibile farlo e con quali estensione salvare lo stile?
>
> Grazie
> Carlo
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[QGIS-it-user] Importare stili di ArcGIS in QGIS

2018-10-25 Per discussione Carlo Nardi
 Ciao a tutti
Per esigenze lavorative dovrei importare degli stili creati in ArcGIS 
all'interno di QGIS.E' possibile farlo e con quali estensione salvare lo stile?
GrazieCarlo___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Per discussione Andre Joost

Am 25.10.18 um 16:00 schrieb ralfwessels:

Hi Rodrigo,

Only if the shapefiles contain a prj-file (with the right informations about
the coordinate system) QGIS opens it automatically correct.



Not necessarily with the correct EPSG code. If there are several EPSG 
codes with (almost) similar parameters, QGIS takes the first it finds.


Especially EPSG:3857 is a candidate for false detection.

If the shapefile was created with QGIS, it has a .qpj file with the EPSG 
code number stored inside. If the shapefile was created with some other 
software, QGIS has to guess.


Greetings,
andre Joost


___
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] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Per discussione ralfwessels
Hi Rodrigo,

Only if the shapefiles contain a prj-file (with the right informations about
the coordinate system) QGIS opens it automatically correct.

If you use shapefiles with OGR you either need to specify the EPSG Code like

   ogr2ogr -a_srs EPSG:2066 output.shp input.shp

or - if you have - the prf-file like

   ogr2ogr -a_srs input.prj output.shp input.shp







--
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: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Per discussione Raymond Nijssen
As far as I know, qgis cannot discover it. If the shapefile is missing 
the projection info, it will either:

1. Ask you to select it
2. Select the one your current map is set to
3. Select a predefined epsg
depending on your settings.

If your settings are 2. or 3. you might not notice this, and think qgis 
is selecting the right one for you.




On 25-10-18 14:27, Rodrigo Mariano wrote:

Hello everyone,

I would like to know: how does QGIS generate the EPSG from a Shapefile?

I ask this question, because I'm trying to upload a Shapefile by OGR, 
but the OGR doesn't
insert the correct EPSG. So I need always open the Shapefile in QGIS to 
discover the

EPSG before uploading it with OGR.

Thanks in advance.

Best Regards,

Rodrigo

___
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

[Qgis-user] how does QGIS generate the EPSG from a Shapefile?

2018-10-25 Per discussione Rodrigo Mariano

Hello everyone,

I would like to know: how does QGIS generate the EPSG from a Shapefile?

I ask this question, because I'm trying to upload a Shapefile by OGR, 
but the OGR doesn't
insert the correct EPSG. So I need always open the Shapefile in QGIS to 
discover the

EPSG before uploading it with OGR.

Thanks in advance.

Best Regards,

Rodrigo

___
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 Live GPS Tracking Settings (QGIS 2.14)

2018-10-25 Per discussione Brent Wood
Hi Malhar,


I'm currently looking to fund a QGIS developer to add the ability to 
(optionally) save the GPS timestamp along with the point feature.


If you also have work you'd like done in the GPS panel, I think we could 
perhaps save costs by collaborating on a single upgrade for all our desired 
functionality? Please contact me if you are interested.




Note that you can sort of achieve your goals by recording the GPS data directly 
into a database (rather than a shapefile or non-RDBMS dataset). Then plot the 
data from this table instead of using the live GPS display.


You can then open a layer which has a SQL something like:


select * from table where timestamp > now - interval('10 minutes');


Then use the capability described here for that layer: 
https://github.com/qgis/QGIS-Documentation/issues/1683

This gives you the last 10 minutes data - or any interval you want, refreshed 
automatically as required



To use an SVG symbol such as an airplane for the current position, you can 
create a new point layer with a query like:

select * from table where timestamp = (select max(timestamp) from table);

This will always return just the latest point feature... and if the timestamp 
is indexed, it can do it pretty quickly.
Assign a suitable airplane symbol to the layer and set this layer also to 
redraw automatically.

Then assign the label for this point layer to be built up as a string with 
deg/dec min, then the latest position will always be written on the map in the 
format you want.


This would work with any of the 3 main open source spatial SQL databases 
(Postgis, MySQL/MariaDB/Spatialite) as it uses very standard SQL statements. I 
have done similar things in the past  with Postgis & Spatialite.


A lot of these sorts of issues can be treated as layers plotting subsets of 
data filtered & reformatted as required - so they become data management 
problems rather than live GPS data problems, and normal database functionality 
can be used to provide the required capabilities.



Hope this helps!!

Brent Wood

Programme leader: Environmental Information Delivery
NIWA
DDI:  +64 (4) 3860529


[cid:image23e6c9.PNG@6908ca10.46bab324]


Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
T +64-4-386-0529

National Institute of Water & Atmospheric Research Ltd (NIWA)
301 Evans Bay Parade, Greta Point, Wellington
Connect with NIWA: niwa.co.nz 
Facebook Twitter 
LinkedIn 
Instagram

To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems.



From: Qgis-user  on behalf of Phil Wyatt 

Sent: Thursday, October 25, 2018 13:25
To: 'malhar'; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Live GPS Tracking Settings (QGIS 2.14)

Hi Malhar,

No, I don’t believe there are any ways to edit the GPS information as per your 
requests. If these features are a high priority for you then maybe consider 
supporting a developer to make some changes to the base code to allow changes 
to the GPS and the trail. I suspect Lat/Lon is the standard for most GPS’s but 
again a developer may be able to set options for other NMEA sentences.

Cheers - Phil

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of malhar
Sent: Wednesday, 24 October 2018 11:26 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] QGIS Live GPS Tracking Settings (QGIS 2.14)

Hello all,

I am currently using the QGIS (2.14) live GPS tracker for a project. I have a 
few questions regarding the settings for the live tracking feature.

1) Is there a way to change the latitude and longitude units from decimal 
degrees to degrees and decimal minutes in the "GPS Information Panel?"

2) Is there a way to change the symbol of a cross within a circle to an 
airplane?

3) Is there a way to change the trail of the aircraft so it only shows the 
previous 10 minutes of flight, yet have the log file show the entire flight 
route?

Thank you very much for your help.

Sincerely,
Malhar



___
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