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
                        [email protected]
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to