Re: [Qgis-user] Polygon from 4 points

2020-11-28 Thread Grant Boxer
I am playing around with data entry options and wondered if I can use the
graphical modeller to add data, e.g. x y coordinates as live input not from
a file. Can the data entry be saved as variable which can then be used in
the make polygon expression?

Cheers Grant



--
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] Polygon from 4 points

2020-11-28 Thread Richard Duivenvoorde
As a variation on this...

You can create 'virtual layers' in QGIS, see:

https://docs.qgis.org/3.16/en/docs/user_manual/managing_data_source/create_layers.html?highlight=virtual#creating-virtual-layers

In attached zip file (a csv+a project file), 
I created a csv with 4 records with (just) 2 coordinates x1,y1,x2,y2.
Loaded it (as table) in QGIS (named it xyxy
Then created a Virtual Layer using one of the following 'Queries':

# a point:
SELECT make_point(x2, y2, 4326) as geometry, x1 as x1, y1 as y1, x2 as x2, y2 
as y2 FROM xyxy

# a polygon, one of these:

select geom_from_wkt( 'POLYGON(('||x1||' '||y1||',  '||x2||' '||y1||',   
'||x2||' '||y2||',  '||x1||' '||y2||',  '||x1||' '||y1||'))'  ) as geometry, x1 
as x1, y1 as y1, x2 as x2, y2 as y2  from xyxy


select st_geomfromtext( 'POLYGON(('||x1||' '||y1||',  '||x2||' '||y1||',   
'||x2||' '||y2||',  '||x1||' '||y2||',  '||x1||' '||y1||'))'  ) as geometry, x1 
as x1, y1 as y1, x2 as x2, y2 as y2  from xyxy

(in the dialog I selected 
Geometry column 'geometry'
Type 'Polygon'
CRS 'EPSG:4326'

In this way, you can just load the QGIS project, and the virtual layer will do 
the magic for you to create a polygon layer from your csv.

You can probably even use the project file as an input for QGIS-Server to serve 
it as WMS to you clients. 
(but you can also just share the project file).

Regards,

Richard Duivenvoorde


PS it took me some puzzling to get the query/expression right. At first I used 
concatting with '+' but you have to use the '||' as in expressions

PS2 you have to update the queries to reflect your 8 columns




On 11/26/20 4:02 PM, Totò Fiandaca wrote:
> From Processing:
> 
> search for Geometry by Expression:
> 1. as input layer put your file with the coordinates
> 2. and write this expression:
> 
>   make_polygon (
>   make_line (
>   make_point ("x1", "y1"),
>   make_point ("x2", "y2"),
>   make_point ("x3", "y3"),
>   make_point ("x4", "y4")
>   ))
> 
> and launch the geoprocess.
> 
> I used QGIS 3.16 Hannover
> 
> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel  > ha scritto:
> 
> I have a csv/table that has a single row that contains some metadata as 
> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal 
> degree coordinates.
> 
> I want to import all of this data into QGIS and create a polygon from the 
> four points as a vector layer.  
> 
> What is the best way to do this?  I'm not a programmer or scripter really 
> and fairly new to QGIS.  
> 
> Thanks!
> 
> 
> *Ryan Peel*
> 
> ___
> 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 
> 
> 
> 
> 
> -- 
> *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/ 
> *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-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] Polygon from 4 points

2020-11-27 Thread Raymond Nijssen

Hi Ryan,

I think you could create a python QgsVectorDataProvider for your data 
and setup a QGIS server for hosting a wms.


https://www.itopen.it/qgis-vector-data-provider-python/

But I would probably just go for a simple script that converts the csv 
file into a polygon dataset (gpkg, shp, postgis, ..) and create a wms 
based on that.


Kind regards,
Raymond

On 26-11-2020 19:10, Ryan Peel wrote:
Extending this thought a little.  Is there a way to create a WMS service 
from this so that the WMS reads a csv file, automatically creates the 
polygons using the expression that Toto recommended, so that it (on the 
fly) creates the polygons from adding the WMS to a map so I can share 
with my co-workers so that we are all using the updated data (rather 
than having to share a shp file).


Long question, hoping for maybe an easy solution.

Ryan
VB Fiber

On Thu, Nov 26, 2020 at 12:59 PM Ujaval Gandhi 
mailto:uja...@spatialthoughts.com>> wrote:


Totò - really great solution! Didn't know about Geometry by
Expression and it will come in handy for sure.
Logo    
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com 
LinkedIn icon  Twitter
icon 




On Thu, Nov 26, 2020 at 8:33 PM Totò Fiandaca
mailto:pigrecoinfin...@gmail.com>> wrote:

 From Processing:

search for Geometry by Expression:
1. as input layer put your file with the coordinates
2. and write this expression:

   make_polygon (
   make_line (
   make_point ("x1", "y1"),
   make_point ("x2", "y2"),
   make_point ("x3", "y3"),
   make_point ("x4", "y4")
   ))

and launch the geoprocess.

I used QGIS 3.16 Hannover

Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel
mailto:ryanp...@gmail.com>> ha scritto:

I have a csv/table that has a single row that contains some
metadata as well as four SEPARATE columns, x1, y1, x2, y2,
x3, y3, x4, y4 of decimal degree coordinates.

I want to import all of this data into QGIS and create a
polygon from the four points as a vector layer.

What is the best way to do this?  I'm not a programmer or
scripter really and fairly new to QGIS.

Thanks!


*Ryan Peel*

___
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



-- 
*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/
*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-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 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] Polygon from 4 points

2020-11-26 Thread Ryan Peel
Extending this thought a little.  Is there a way to create a WMS service
from this so that the WMS reads a csv file, automatically creates the
polygons using the expression that Toto recommended, so that it (on the
fly) creates the polygons from adding the WMS to a map so I can share with
my co-workers so that we are all using the updated data (rather than having
to share a shp file).

Long question, hoping for maybe an easy solution.

Ryan
VB Fiber

On Thu, Nov 26, 2020 at 12:59 PM Ujaval Gandhi 
wrote:

> Totò - really great solution! Didn't know about Geometry by Expression and
> it will come in handy for sure.
> [image: Logo] 
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon]   [image:
> Twitter icon] 
>
>
>
> On Thu, Nov 26, 2020 at 8:33 PM Totò Fiandaca 
> wrote:
>
>> From Processing:
>>
>> search for Geometry by Expression:
>> 1. as input layer put your file with the coordinates
>> 2. and write this expression:
>>
>>   make_polygon (
>>   make_line (
>>   make_point ("x1", "y1"),
>>   make_point ("x2", "y2"),
>>   make_point ("x3", "y3"),
>>   make_point ("x4", "y4")
>>   ))
>>
>> and launch the geoprocess.
>>
>> I used QGIS 3.16 Hannover
>>
>> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel 
>> ha scritto:
>>
>>> I have a csv/table that has a single row that contains some metadata as
>>> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
>>> degree coordinates.
>>>
>>> I want to import all of this data into QGIS and create a polygon from
>>> the four points as a vector layer.
>>>
>>> What is the best way to do this?  I'm not a programmer or scripter
>>> really and fairly new to QGIS.
>>>
>>> Thanks!
>>>
>>>
>>> *Ryan Peel*
>>>
>>> ___
>>> 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
>>>
>>
>>
>> --
>> *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/
>> *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-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] Polygon from 4 points

2020-11-26 Thread Ujaval Gandhi
Totò - really great solution! Didn't know about Geometry by Expression and
it will come in handy for sure.
[image: Logo] 
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon]   [image:
Twitter icon] 



On Thu, Nov 26, 2020 at 8:33 PM Totò Fiandaca 
wrote:

> From Processing:
>
> search for Geometry by Expression:
> 1. as input layer put your file with the coordinates
> 2. and write this expression:
>
>   make_polygon (
>   make_line (
>   make_point ("x1", "y1"),
>   make_point ("x2", "y2"),
>   make_point ("x3", "y3"),
>   make_point ("x4", "y4")
>   ))
>
> and launch the geoprocess.
>
> I used QGIS 3.16 Hannover
>
> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel 
> ha scritto:
>
>> I have a csv/table that has a single row that contains some metadata as
>> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
>> degree coordinates.
>>
>> I want to import all of this data into QGIS and create a polygon from the
>> four points as a vector layer.
>>
>> What is the best way to do this?  I'm not a programmer or scripter really
>> and fairly new to QGIS.
>>
>> Thanks!
>>
>>
>> *Ryan Peel*
>>
>> ___
>> 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
>>
>
>
> --
> *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/
> *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-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] Polygon from 4 points

2020-11-26 Thread qgis-user

  
  
Another common solution to this type of problem is to open the .csv
file in a spreadsheet program (eg, Excel) and use string functions
to write a new text field containing a WKT representation of your
desired geometry. Save the edited file back as a .csv file, then
open it in QGIS as a delimited text layer, selecting Well known text
in the Geometry section.

On 11/26/2020 7:48 AM, Ryan Peel wrote:

  
  
I have a csv/table that
  has a single row that contains some metadata as well as four
  SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
  degree coordinates.


I want to import all of
  this data into QGIS and create a polygon from the four points
  as a vector layer.  


What is the best way to
  do this?  I'm not a programmer or scripter really and fairly
  new to QGIS.  


Thanks!




  

  
Ryan Peel

  

  

  
  
  
  ___
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] Polygon from 4 points

2020-11-26 Thread Nicolas Cadieux
Hi,

I’m the field calculator, you could also update the  field using wkt. 
 If this was a line, you would use 
> 
> Geom_from_wkt('LINESTRING (' ||  "x1"  || ' ' ||  "y1"  || ',' ||  "x2"  || ' 
> ' ||  "y2"  || ')')
> 


Google wiki and WKT geometry and you will see how you could make a point, line, 
polygon...  you could also use this same syntax in a csv and import the csv.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 26 nov. 2020 à 10:03, Totò Fiandaca  a écrit :
> 
> From Processing:
> 
> search for Geometry by Expression:
> 1. as input layer put your file with the coordinates
> 2. and write this expression:
> 
>   make_polygon (
>   make_line (
>   make_point ("x1", "y1"),
>   make_point ("x2", "y2"),
>   make_point ("x3", "y3"),
>   make_point ("x4", "y4")
>   ))
> 
> and launch the geoprocess.
> 
> I used QGIS 3.16 Hannover
> 
> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel  ha 
> scritto:
>> I have a csv/table that has a single row that contains some metadata as well 
>> as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal degree 
>> coordinates.
>> 
>> I want to import all of this data into QGIS and create a polygon from the 
>> four points as a vector layer.  
>> 
>> What is the best way to do this?  I'm not a programmer or scripter really 
>> and fairly new to QGIS.  
>> 
>> Thanks!
>> 
>> 
>> Ryan Peel
>> 
>> ___
>> 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
> 
> 
> -- 
> 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/
> 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-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] Polygon from 4 points

2020-11-26 Thread Ryan Peel
Thank you!  Worked PERFECT!

On Thu, Nov 26, 2020 at 10:02 AM Totò Fiandaca 
wrote:

> From Processing:
>
> search for Geometry by Expression:
> 1. as input layer put your file with the coordinates
> 2. and write this expression:
>
>   make_polygon (
>   make_line (
>   make_point ("x1", "y1"),
>   make_point ("x2", "y2"),
>   make_point ("x3", "y3"),
>   make_point ("x4", "y4")
>   ))
>
> and launch the geoprocess.
>
> I used QGIS 3.16 Hannover
>
> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel 
> ha scritto:
>
>> I have a csv/table that has a single row that contains some metadata as
>> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
>> degree coordinates.
>>
>> I want to import all of this data into QGIS and create a polygon from the
>> four points as a vector layer.
>>
>> What is the best way to do this?  I'm not a programmer or scripter really
>> and fairly new to QGIS.
>>
>> Thanks!
>>
>>
>> *Ryan Peel*
>>
>> ___
>> 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
>>
>
>
> --
> *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/
> *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.
>
>
>

-- 
*Ryan Peel*



*President, Vergennes Broadband LLCRural Fiber and Wireless
Broadbandwww.vergennesbroadband.com
**616-897-3107
(o)  616-821-3766 (m)*
___
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] Polygon from 4 points

2020-11-26 Thread Totò Fiandaca
>From Processing:

search for Geometry by Expression:
1. as input layer put your file with the coordinates
2. and write this expression:

  make_polygon (
  make_line (
  make_point ("x1", "y1"),
  make_point ("x2", "y2"),
  make_point ("x3", "y3"),
  make_point ("x4", "y4")
  ))

and launch the geoprocess.

I used QGIS 3.16 Hannover

Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel  ha
scritto:

> I have a csv/table that has a single row that contains some metadata as
> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
> degree coordinates.
>
> I want to import all of this data into QGIS and create a polygon from the
> four points as a vector layer.
>
> What is the best way to do this?  I'm not a programmer or scripter really
> and fairly new to QGIS.
>
> Thanks!
>
>
> *Ryan Peel*
>
> ___
> 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
>


-- 
*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/
*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-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