Giter VIP home page Giter VIP logo

magic-gdal's Introduction

Tim Martins's header

Hi ๐Ÿ‘‹,

I have a background in Geospatial Information Science (GIS) and love to solve spatial challenges using my knowledge of spatial data combined with the right tools for the job. I have worked for over 15 years at Ordnance Survey, Great Britain's National Mapping Agency, where I provide customers with all levels of expertise and consultancy to maximise their return on investment when using our Open and Premium data. Over the years I have worked on some amazing projects like the Olympics 2012, launched an AWARD winning product OS Open Zoomstack and talked at a number of global conferences.


magic-gdal's People

Contributors

timjmartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

magic-gdal's Issues

Inclusion of ogrinfo and gdalinfo examples

@TimJMartin Would there be value in including an ogrinfo and gdalinfo example at the start of sections 3. Vector Data and 4. Raster Data respectively to demonstrate how users can return a file summary and associated metadata?

For ogrinfo:

Usage

ogrinfo <file>

ogrinfo <file> <layer-name> -so

The -so option provides a summary only and suppresses listing individual features.

Example

Acquire list of layer names within file:

ogrinfo OSOpenGreenspace_SU.gml

INFO: Open of 'OSOpenGreenspace_SU.gml'
      using driver 'GML' successful.
Metadata:
  DESCRIPTION=Ordnance Survey Crown Copyright 2019
1: AccessPoint (Point)
2: GreenspaceSite (Multi Polygon)

Return summary of layer within file:

ogrinfo OSOpenGreenspace_SU.gml GreenspaceSite -so

    INFO: Open of `OSOpenGreenspace_SU.gml'
          using driver `GML' successful.
    Metadata:
      DESCRIPTION=Ordnance Survey Crown Copyright 2019

Layer name: GreenspaceSite
Geometry: Multi Polygon
Feature Count: 9580
Extent: (399639.800000, 99369.630000) - (502044.190000, 201257.950000)
Layer SRS WKT:
PROJCS["OSGB 1936 / British National Grid",
    GEOGCS["OSGB 1936",
        DATUM["OSGB_1936",
            SPHEROID["Airy 1830",6377563.396,299.3249646,
                AUTHORITY["EPSG","7001"]],
            TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
            AUTHORITY["EPSG","6277"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AXIS["Latitude",NORTH],
        AXIS["Longitude",EAST],
        AUTHORITY["EPSG","4277"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",49],
    PARAMETER["central_meridian",-2],
    PARAMETER["scale_factor",0.9996012717],
    PARAMETER["false_easting",400000],
    PARAMETER["false_northing",-100000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AXIS["Easting",EAST],
    AXIS["Northing",NORTH],
    AUTHORITY["EPSG","27700"]]
Geometry Column = geometry
gml_id: String (0.0) NOT NULL
function: String (38.0)
distinctiveName1: String (69.0)
distinctiveName2: String (27.0)

For gdalinfo:

Usage

gdalinfo <file> -noct

The -noct option suppresses the printing of the colour table. In the example below this corresponds to all 256 RGB entries.

Example

gdalinfo HP.tif -noct

Driver: GTiff/GeoTIFF
Files: HP.tif
Size is 4000, 4000
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
    GEOGCS["OSGB 1936",
        DATUM["OSGB_1936",
            SPHEROID["Airy 1830",6377563.396,299.3249612664951,
                AUTHORITY["EPSG","7001"]],
            AUTHORITY["EPSG","6277"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4277"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",49],
    PARAMETER["central_meridian",-2],
    PARAMETER["scale_factor",0.9996012717],
    PARAMETER["false_easting",400000],
    PARAMETER["false_northing",-100000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","27700"]]
Origin = (400000.000000000000000,1300000.000000000000000)
Pixel Size = (25.000000000000000,-25.000000000000000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2019
  TIFFTAG_DATETIME=2019:05:08 12:01:31
  TIFFTAG_IMAGEDESCRIPTION=1:250 000 TILE HP.TIF
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_XRESOLUTION=254
  TIFFTAG_YRESOLUTION=254
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  400000.000, 1300000.000) (  2d 0' 0.00"W, 61d34'54.05"N)
Lower Left  (  400000.000, 1200000.000) (  2d 0' 0.00"W, 60d41' 1.76"N)
Upper Right (  500000.000, 1300000.000) (  0d 7' 1.08"W, 61d34' 7.33"N)
Lower Right (  500000.000, 1200000.000) (  0d10'10.65"W, 60d40'16.74"N)
Center      (  450000.000, 1250000.000) (  1d 4'17.93"W, 61d 7'46.49"N)
Band 1 Block=4000x263 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.