I want to import a large amount of ASTER DEM data into PostGIS (covering Europe). I use this script: https://wiki.openstreetmap.org/wiki/Contour_relief_maps_using_mapnik#Importing_ASTER_GDEMv2_data
The script creates the contour lines (gdal_contour) for every DEM tile in the form of a shapefile, then appends the data (shp2pgsql) to the contour table in postgis. The only thing I added is
-s 4326:900913 to the shp2pgsql command.
The DEM tiles overlap by one pixel. I also tried to crop it, then there is no overlap like in the picture, but an offset between the contour lines.
How is it possible to import the DEM data and get continuous contour lines at the borders of the DEM tiles?
PS: I tried to merge all DEM tiles and generate one big shapefile. But gdal_contour aborts at the file size of 4GB.