tilezen / joerd

Joerd can be used to download, merge and generate tiles from digital elevation data
MIT License
323 stars 49 forks source link

Gulf of Mexico bathymetry #145

Open nvkelso opened 7 years ago

nvkelso commented 7 years ago

Looks like 40 feet x 40 feet cells which is in the 10 meter range, which would be good for zoom 15.

01_map_blog_gulf_of_mexico_seafloor adapt 1900 1

nvkelso commented 7 years ago

In meters:

iandees commented 7 years ago

Mirroring data

curl -s https://www.boem.gov/webteam/bathymetry/BOEM_Bathymetry_East_meters_tiff.zip | \
    AWS_DEFAULT_PROFILE=openterrain aws s3 cp - s3://elevation-sources-prod/boem_gom_bathy/BOEM_Bathymetry_East_meters_tiff.zip
curl https://www.boem.gov/webteam/bathymetry/BOEM_Bathymetry_West_meters_tiff.zip | \
    AWS_DEFAULT_PROFILE=openterrain aws s3 cp - s3://elevation-sources-prod/boem_gom_bathy/BOEM_Bathymetry_West_meters_tiff.zip

Transcode data

Note that I'm transcoding these two images with the Docker image locally since they're pretty small.

docker run \
  -e DATABASE_URL=redacted \
  -e AWS_ACCESS_KEY_ID=redacted \
  -e AWS_SECRET_ACCESS_KEY=redacted \
  quay.io/mojodna/mapzen-dynamic-tiler-batch process.sh \
  s3://elevation-sources-prod/boem_gom_bathy/BOEM_Bathymetry_East_meters_tiff.zip \
  s3://elevation-sources-transcoded/boem_gom_bathy/BOEM_Bathymetry_East_meters
iandees commented 7 years ago

These both failed during the rio shapes call with the following error:

CPLE_AppDefinedError: Full reprojection failed, but partial is possible if you define OGR_ENABLE_PARTIAL_REPROJECTION configuration option to TRUE
iandees commented 7 years ago

I tried running rio shapes on these images locally (outside of Docker) and it failed again. I'm going to double-check that they're out of the footprints database and move on.

iandees commented 7 years ago

Nothing in the footprints database, so closing this:

footprints=> select id,filename,resolution,source,url,min_zoom,max_zoom,priority,approximate_zoom from footprints where source='boem_gom_bathy';
 id | filename | resolution | source | url | min_zoom | max_zoom | priority | approximate_zoom
----+----------+------------+--------+-----+----------+----------+----------+------------------
(0 rows)
nvkelso commented 7 years ago

Re-opening for a rainy day.