[Qgis-user] calculate areas of polygons imported from a dxf file

Zoltán Siki siki1958 at gmail.com
Sat Mar 23 11:59:38 PDT 2024


Dear Jose,

I think you imported a line layer from the DXF file which has no area.
Convert the line layer to polygon one using Vector/Geometry tools/Lines to
Polygons from the menu.

Regards,
Zoltan


Jose Sanchez via QGIS-User <qgis-user at lists.osgeo.org> ezt írta (időpont:
2024. márc. 23., Szo, 19:30):

> Hi,
>
>
>
> I added a vector layer to QGIS 3.36.0 by importing a dxf file (it contains
> two polygons). I want to calculate the differentce in área of the polygons
> (considering the topography of a DEM file visualized in hillshade). So, I
> opened the attribute table, created a calculated field (ANRio)  with the
> $area expression, but I get a NULL value. I see that my attribute table has
> NULL values for Paper Space and Line Type (I do not know if that might be
> the problem). I am probably not importing the polygons properly. I also
> tried importing as shape file using “anotherDXFimport” plugin but still I
> get NULL values in the area calculated field.
>
>
>
> I would appreciate your help.
>
>
>
> Thanks,
>
>
>
> Jose
>
>
>
> Imported polygons
>
> [image: Mapa Descripción generada automáticamente]
>
>
>
> Attribute tables
>
> [image: Interfaz de usuario gráfica, Aplicación Descripción generada
> automáticamente]
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
> _______________________________________________
> 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/20240323/302f99e8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0CD2CF24B96C4BDD9971A94EDE0DBD69.png
Type: image/png
Size: 243782 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240323/302f99e8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E60D53B30A2D468EB6590611A0769048.png
Type: image/png
Size: 171778 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240323/302f99e8/attachment-0003.png>


More information about the QGIS-User mailing list