[gdal-dev] Converting OBJ to Geojson files with ogr2ogr

Andrew C Aitchison andrew at aitchison.me.uk
Tue Dec 1 12:09:07 PST 2020


On Tue, 1 Dec 2020, Brandon Biggs wrote:

> Hello,
> I am wondering how to convert an obj file to a geojson file? I am using ogr2ogr with the command:
> Ogr2ogr -f geojson output.geojson input.obj
> But get the error that ogr2ogr does not have an OBJ driver. I looked on:
> the vector drivers page<https://gdal.org/drivers/vector/index.html>
> but am unable to find a simple obj converter. I am wondering if there is such a thing? I am probably going to write my own that does what I want, because OBJ is so simple, I was just wondering if GDAL could already do it.

I've never heard of OBJ, but that doesn't mean much.

If you only want a read-only ogr driver you might want to look at
 	https://gdal.org/tutorials/vector_python_driver.html
if you would find a quick-n-dirty python quicker to write than C++.

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list