I have multiple shapefiles. When it becomes one layer (one shapefile) the volume of shapefile gets over the limit of its capacity (I believe 4GB? is the limit of *.shp can have)
Therefore, I need to save them into FGDB using ogr2ogr
this is the code I came out with so far.
for %f in (*disp_line.shp) do (if not exist test.gdb (ogr2ogr -progress --config shape_encoding "UTF-8" -f "filegdb" test.gdb %f -lco encoding="UTF-8") Else (ogr2ogr --config shape_encoding "UTF-8" -progress -f "filegdb" -update -append test.gdb %f -nln test_layer -lco encoding="UTF-8"))
t_sc1disp_line feture class has 20 rows and test_line has 286 rows it is supposed to be 306 rows (20+286)..
What it means is that I have to merge the layers once again using QGIS or ArcGIS GUI tools.
Could you fix my weird OGR2OGR command?