Skip to main content
qdread's user avatar
qdread's user avatar
qdread's user avatar
qdread
  • Member for 9 years, 2 months
  • Last seen more than a month ago
awarded
awarded
awarded
awarded
awarded
comment
comment
How to use gdal ogr2ogr to subset features by attributes stored in a csv?
I guess try replacing output with the desired name of your shapefile, with shp extension?
comment
How to use gdal ogr2ogr to subset features by attributes stored in a csv?
I think maybe the Feature_class_name was something specific to the .gdb file I was working with... you might need to replace it with a different name? Not sure as it's been a while.
awarded
awarded
awarded
awarded
asked
Loading…
comment
Attribute table in R terra package?
there is one other issue: if I want to go the rats(x) route, the Land.Cover.Class column is coerced from a factor to numeric. I worked around this by first coercing it to character before calling rats(x) <- lev but just wanted to call it to your attention.
comment
Attribute table in R terra package?
Thanks for the workaround. This may not be related, but I have not been able to write the raster to a GeoTIFF. I get a segfault error when I call writeRaster(x, 'test.tif'). I have tried it on GDAL 2.2.2 and 3.0.4 and get the same error: caught segfault, memory not mapped.
awarded
comment
Attribute table in R terra package?
Thanks, very helpful. The other piece of it is that the attribute table of the .grd raster also contains columns Red,Green,Blue, and Opacity that are used in the default plot() method to color the land cover classes appropriately. Is that feature implemented in terra?
comment
Attribute table in R terra package?
@Spacedman see my edit which also has some clarifications
revised
Attribute table in R terra package?
Added files to reproduce behavior and clarifications
Loading…
asked
Loading…