Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. gdal_translate -of GTiff -a_srs EPSG:4326 -a_ullr -180 90 180 -90 world.topo.bathy.200407.3x5400x2700.jpg world.topo.bathy.200407.3x5400x2700.tif
  2.  
  3. $ gdalinfo world.topo.bathy.200407.3x5400x2700.tif
  4. Driver: GTiff/GeoTIFF
  5. Files: world.topo.bathy.200407.3x5400x2700.tif
  6. Size is 5400, 2700
  7. Coordinate System is:
  8. GEOGCS["WGS 84",
  9. DATUM["WGS_1984",
  10. SPHEROID["WGS 84",6378137,298.257223563,
  11. AUTHORITY["EPSG","7030"]],
  12. AUTHORITY["EPSG","6326"]],
  13. PRIMEM["Greenwich",0],
  14. UNIT["degree",0.0174532925199433],
  15. AUTHORITY["EPSG","4326"]]
  16. Origin = (-180.000000000000000,90.000000000000000)
  17. Pixel Size = (0.066666666666667,-0.066666666666667)
  18. Metadata:
  19. AREA_OR_POINT=Area
  20. Image Structure Metadata:
  21. INTERLEAVE=PIXEL
  22. Corner Coordinates:
  23. Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
  24. Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
  25. Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
  26. Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
  27. Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
  28. Band 1 Block=5400x1 Type=Byte, ColorInterp=Red
  29. Band 2 Block=5400x1 Type=Byte, ColorInterp=Green
  30. Band 3 Block=5400x1 Type=Byte, ColorInterp=Blue
  31.  
  32. gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 world.topo.bathy.200407.3x5400x2700.tif Marble_3857.tif
  33.  
  34. gdal2tiles.py --s_srs EPSG:3857 --zoom 0-3 -p 'raster' Marble_3857.tif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement