[Qgis-user] Polygon from 4 points

Ryan Peel ryanpeel at gmail.com
Thu Nov 26 10:10:44 PST 2020


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 <ujaval at spatialthoughts.com>
wrote:

> Totò - really great solution! Didn't know about Geometry by Expression and
> it will come in handy for sure.
> [image: Logo] <https://spatialthoughts.com/>
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: ujaval at spatialthoughts.com
> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
> Twitter icon] <https://twitter.com/spatialthoughts>
>
>
>
> On Thu, Nov 26, 2020 at 8:33 PM Totò Fiandaca <pigrecoinfinito at 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 <ryanpeel at 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 at 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*: *pigrecoinfinito at gmail.com <pigrecoinfinito at gmail.com>*
>> *C.F*.: FNDSVT71E29Z103G
>> *P.IVA*: 06597870820
>> *membro QGIS Italia - http://qgis.it/ <http://qgis.it/>*
>> *socio GFOSS.it - *http://gfoss.it/
>> *blog:*
>> * https://pigrecoinfinito.com/ <https://pigrecoinfinito.com/> FB:
>> Co-admin - https://www.facebook.com/qgis.it/
>> <https://www.facebook.com/qgis.it/>**
>> <https://www.facebook.com/qgis.it/> *
>> *TW:  <http://goog_95411464>**https://twitter.com/totofiandaca
>> <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 at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201126/3cd1c7ff/attachment.html>


More information about the Qgis-user mailing list