1
1
# mapservice-clientlib
2
2
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 )
4
4
[ ![ Coverage Status] ( https://coveralls.io/repos/github/consbio/mapservice-clientlib/badge.svg?branch=main )] ( https://coveralls.io/github/consbio/mapservice-clientlib?branch=main )
5
5
6
-
7
6
A library to make web service calls to map service REST APIs easier. Currently supported:
8
7
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
13
12
14
13
Each leverages the [ restle] ( https://github.com/consbio/restle ) library to represent queried map service data as Python objects.
15
14
Each 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
20
19
21
20
Install with ` pip install mapservice-clientlib ` .
22
21
23
-
24
22
## Usage
25
23
26
24
Below are some examples of each supported map service web API standard:
27
25
28
-
29
26
### ArcGIS Resources
30
27
31
28
ArcGIS Map, Feature and Image services may be queried.
@@ -72,7 +69,6 @@ client = GeometryServiceClient(geometry_url)
72
69
extent = client.project_extent(old_extent, {' wkid' : 3857 }).limit_to_global_extent()
73
70
```
74
71
75
-
76
72
### WMS
77
73
78
74
WMS services may be queried, with support for NcWMS
@@ -99,7 +95,6 @@ wms_image = WMSResource.get(
99
95
)
100
96
```
101
97
102
-
103
98
### THREDDS
104
99
105
100
THREDDS resources may be queried, with metadata from related WMS endpoint:
@@ -126,7 +121,6 @@ thredds_image = client.get_image(
126
121
)
127
122
```
128
123
129
-
130
124
### ScienceBase
131
125
132
126
Public and private ScienceBase items may be queried:
@@ -179,7 +173,6 @@ client = ScienceBaseResource.get(
179
173
client.service_client.full_extent # ArcGISResource.full_extent
180
174
```
181
175
182
-
183
176
### Extent Utilities
184
177
185
178
Extent objects have a number of useful methods. Here are some examples that support projection:
0 commit comments