<div dir="ltr"><div dir="ltr"><div>Dear Jose,</div><div><br></div><div>I think you imported a line layer from the DXF file which has no area.</div><div>Convert the line layer to polygon one using Vector/Geometry tools/Lines to Polygons from the menu.</div><div><br></div><div>Regards,</div><div>Zoltan<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Jose Sanchez via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> ezt írta (időpont: 2024. márc. 23., Szo, 19:30):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg5426854801401005769"><div lang="ES-MX" style="overflow-wrap: break-word;"><div class="m_5426854801401005769WordSection1"><p class="MsoNormal">Hi,</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I would appreciate your help.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Jose</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Imported polygons</p><p class="MsoNormal"><img width="624" height="351" style="width: 6.5in; height: 3.6562in;" id="m_5426854801401005769_x0000_i1026" src="cid:ii_18e6ca82131b18185b01" alt="Mapa

Descripción generada automáticamente"></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Attribute tables</p><p class="MsoNormal"><img width="624" height="351" style="width: 6.5in; height: 3.6562in;" id="m_5426854801401005769Imagen_x0020_1" src="cid:ii_18e6ca821327263f6282" alt="Interfaz de usuario gráfica, Aplicación

Descripción generada automáticamente"></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows</p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></blockquote></div><br clear="all"><br></div>