11# mapservice-clientlib
22
3- [ ![ Build Status ] ( https://api.travis-ci. com/consbio/mapservice-clientlib.png?branch=main )] ( https://app.travis-ci.com/github/consbio/mapservice-clientlib )
3+ ![ Published ] ( https://github. com/consbio/mapservice-clientlib/actions/workflows/publish.yml/badge.svg )
44[ ![ Coverage Status] ( https://coveralls.io/repos/github/consbio/mapservice-clientlib/badge.svg?branch=main )] ( https://coveralls.io/github/consbio/mapservice-clientlib?branch=main )
55
6-
76A library to make web service calls to map service REST APIs easier. Currently supported:
87
9- * ArcGIS (version 10.1 and greater)
10- * THREDDS
11- * WMS / NcWMS (versions 1.1.1 and 1.3.0)
12- * ScienceBase
8+ - ArcGIS (version 10.1 and greater)
9+ - THREDDS
10+ - WMS / NcWMS (versions 1.1.1 and 1.3.0)
11+ - ScienceBase
1312
1413Each leverages the [ restle] ( https://github.com/consbio/restle ) library to represent queried map service data as Python objects.
1514Each also provides some default functionality for rendering projected map service data as images, which may be overridden per class as needed.
@@ -20,12 +19,10 @@ Beyond this are some utilities for working with images (PIL) and extents (mostly
2019
2120Install with ` pip install mapservice-clientlib ` .
2221
23-
2422## Usage
2523
2624Below are some examples of each supported map service web API standard:
2725
28-
2926### ArcGIS Resources
3027
3128ArcGIS Map, Feature and Image services may be queried.
@@ -72,7 +69,6 @@ client = GeometryServiceClient(geometry_url)
7269extent = client.project_extent(old_extent, {' wkid' : 3857 }).limit_to_global_extent()
7370```
7471
75-
7672### WMS
7773
7874WMS services may be queried, with support for NcWMS
@@ -99,7 +95,6 @@ wms_image = WMSResource.get(
9995)
10096```
10197
102-
10398### THREDDS
10499
105100THREDDS resources may be queried, with metadata from related WMS endpoint:
@@ -126,7 +121,6 @@ thredds_image = client.get_image(
126121)
127122```
128123
129-
130124### ScienceBase
131125
132126Public and private ScienceBase items may be queried:
@@ -179,7 +173,6 @@ client = ScienceBaseResource.get(
179173client.service_client.full_extent # ArcGISResource.full_extent
180174```
181175
182-
183176### Extent Utilities
184177
185178Extent objects have a number of useful methods. Here are some examples that support projection:
0 commit comments