Skip to content

jacekmlk/ScrapImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ScrapImage

Simple script designed to scrap images from WMS servers.
https://docs.geoserver.org/main/en/user/services/wfs/reference.html
Support only 1.3.0 WMS version.

Check in GetCapabilities if downloading is allowed.
Use on your own responsibility.

Warning! There's no errorhandling

Usage:

  1. Check GetCapabilities of server:
    https://docs.geoserver.org/main/en/user/services/wfs/reference.html#getfeature

  2. Insert data to script based on above:

format = ""                     # <----- Define format
layername = ""                  # <----- Insert layername
servername = ""                 # <----- Insert servername
crs = ""                        # <----- Insert crs

def main():
    """INPUT"""
    width = 2000                # <----- Height of tile in px
    height = 2000               # <----- Width of tile in px

    resolution = 5              # <----- Resolution

    start_x = 360240            # <----- X coordinate of startpoint (center of area)
    start_y = 4732060           # <----- Y coordinate of startpount (center of area)

    tile_x = 1                  # <----- Number of tiles in x direction
    tile_y = 1                  # <----- Number of tiles in y direction
  1. Run script
  2. Program will generate set of images and worldfiles.
  3. Open and merge images in prorgram like QGis.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages