Hi I can update new column with area of a polygon object, but don't know, how to update new column in polyline layer with length of polyline.
This works very well for AREA:
for %%f in (*.tab) do (
ogrinfo %%f -sql "ALTER TABLE %%~nf DROP COLUMN PLO1"
ogr2ogr %%~nf_new%%~xf %%f -sql "SELECT *, OGR_GEOM_AREA AS PLO1 FROM %%~nf" -f "MapInfo file"
del %%~nf.* /Q
ren %%~nf_new.* %%~nf.*
)
How to update Object LENGTH the same way, please?
I can do it in MapInfo:
Update tblnm Set Plo1 = ObjectLen(obj, "m")
But update with OGR would be more usefull for me in this case.