Closed stdmn closed 4 years ago
I haven't tried this at all so I'm not sure, the errors indicate that you don't have the gdal libraries installed on the system or container.
Closing due to age, reopen if issue persists.
@wavded I am actually trying to do this same thing as well. Do you know how I can install GDAL on an AWS Lambda function?
I tried to do the .command('docker run -v /home/:/home --rm osgeo/gdal:alpine-small-latest ogr2ogr')
but it didn't work for me.
@stdmn did you manage to figure out how to run ogr2ogr on a lambda?
I am unfamiliar with AWS Lambda unfortunately. However, this could make a great wiki entry if you guys figure it out for anybody wanting to do this in the future.
Sure, we can do that. I'm currently trying to figure out how to run the ogr2ogr function on a AWS Lambda. Actually quick question for you @wavded
When I tried to run the ogr2ogr function in my code, I get a Error: ogr2ogr: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
-- not sure what that means?
Haven't seen that error, seems like the environment is missing some libraries or a library isn't linked properly. May have luck googling for that sort of thing.
I've been trying to run a AWS Lambda function that allows me to use ogr2ogr to post to an AWS RDS Postgres DB and am running up against some problems. Body being passed is a simple geoJSON for testing purposes.
I'm guessing it has to do with this:
ogr2ogr requires the command line tool ogr2ogr
Any hack-y way that I can get it running on a Lambda server? Example express "POST" function below:
Lambda log:
One additional note: I also am using the GDAL Lambda layer from Geolambda, but not sure if there's anything else I need to do to add other than connecting to the layer to the function