All Projects → makepath → mapshader

makepath / mapshader

Licence: MIT license
Simple Python GIS Web Services

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to mapshader

kdtree
A pure Nim k-d tree implementation for efficient spatial querying of point data
Stars: ✭ 40 (+11.11%)
Mutual labels:  gis
kadas-albireo
KADAS Albireo
Stars: ✭ 26 (-27.78%)
Mutual labels:  gis
gridviz
visualization of gridded statistics
Stars: ✭ 108 (+200%)
Mutual labels:  gis
cogj-spec
Cloud Optimized GeoJSON spec
Stars: ✭ 36 (+0%)
Mutual labels:  gis
nextgisweb
Web GIS framework by NextGIS
Stars: ✭ 165 (+358.33%)
Mutual labels:  gis
qgis-outdoor-map
QGIS project for an outdoor map based on OpenStreetMap data.
Stars: ✭ 20 (-44.44%)
Mutual labels:  gis
gis-pantry
Repository for GIS related scripts, tools and recipes.
Stars: ✭ 37 (+2.78%)
Mutual labels:  gis
rlayers
React Component Library for OpenLayers
Stars: ✭ 98 (+172.22%)
Mutual labels:  gis
GeoArrays.jl
Simple geographical raster interaction built on top of ArchGDAL, GDAL and CoordinateTransformations
Stars: ✭ 42 (+16.67%)
Mutual labels:  gis
clickbait-workshop
Pydata 2017 workshop: build a clickbait detector with python
Stars: ✭ 13 (-63.89%)
Mutual labels:  pydata
simplexspatial
The Reactive Geospatial Server
Stars: ✭ 17 (-52.78%)
Mutual labels:  gis
tile-map-service-net5
Tile server for .NET 5 platform with MBTiles, Filesystem, GeoTIFF, HTTP sources and XYZ, TMS, WMTS, WMS endpoints (protocols support)
Stars: ✭ 45 (+25%)
Mutual labels:  gis
gis-for-geoscientists
Repository for "GIS for Geoscientists" workshop series. This repo contains data, protocols, outputs, lectures, and resources used the workshop. Course taught by Nicholas Barber. Available for future booking upon request! Contact me ([email protected]) for a quote.
Stars: ✭ 19 (-47.22%)
Mutual labels:  gis
QGIS-visualization-workshop
QGIS visualization workshop materials.
Stars: ✭ 46 (+27.78%)
Mutual labels:  gis
GeoNotes
A simple app to create georeferences notes.
Stars: ✭ 37 (+2.78%)
Mutual labels:  gis
bicycleSharingServer
🚲共享单车JavaWEB后台(ssm)
Stars: ✭ 86 (+138.89%)
Mutual labels:  gis
QWAT
TEKSI Water module (project QWAT) - QGIS project
Stars: ✭ 52 (+44.44%)
Mutual labels:  gis
olturf
A Turf toolbar for OpenLayers.
Stars: ✭ 30 (-16.67%)
Mutual labels:  gis
sktime-tutorial-pydata-amsterdam-2020
Introduction to Machine Learning with Time Series at PyData Festival Amsterdam 2020
Stars: ✭ 115 (+219.44%)
Mutual labels:  pydata
mapton
Some kind of map application
Stars: ✭ 49 (+36.11%)
Mutual labels:  gis

Mapshader

Test Suite Status PyPI version Downloads License

Simple Python GIS Web Services

  • Create mapshader.MapSource objects and render them as geojson, tiles, or images
  • This project should still be considered experimental
pip install mapshader

Setup Mapshader Conda Environment

conda create -n mapshader python=3.8
conda activate mapshader
git clone [email protected]:makepath/mapshader.git
cd mapshader
pip install -e .

Run Tests

conda activate mapshader
pytest mapshader/tests -sv

Run Flask Server

conda activate mapshader
mapshader serve

>>> * Serving Flask app "flask_app" (lazy loading)
>>> * Environment: production
>>>   WARNING: This is a development server. Do not use it in a production deployment.
>>>   Use a production WSGI server instead.
>>> * Debug mode: on
>>> * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
>>> * Restarting with stat

Mapshader Config (YAML)

While mapshader comes with default services to help with testing, users can create their own services via YAML.

my_services.yaml

---

metadata:
  version: 1

sources:
  - name: Global Elevation Example
    key: elevation-example
    text: Elevation
    description: Global elevation example
    geometry_type: raster
    shade_how: linear
    cmap:
      - white
      - black
    span:
      - 58
      - 248
    raster_padding: 0
    raster_interpolate: linear
    xfield: geometry
    yfield: geometry
    filepath: mapshader/tests/fixtures/elevation.tif
    transforms:
      - name: squeeze
        args:
          dim: band
      - name: cast
        args:
          dtype: float64
      - name: orient_array
      - name: flip_coords
        args:
          dim: y
      - name: reproject_raster
        args:
          epsg: 3857
    service_types:
      - tile

This configuration file can then be passed to the flask server upon startup:

conda activate mapshader
mapshader serve my_services.yaml

>>> * Serving Flask app "flask_app" (lazy loading)
>>> * Environment: production
>>>   WARNING: This is a development server. Do not use it in a production deployment.
>>>   Use a production WSGI server instead.
>>> * Debug mode: on
>>> * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
>>> * Restarting with stat
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].