Code Monkey home page Code Monkey logo

denton-dashboard's Introduction

Stories in Ready

Denton-Dashboard

Static dashboard for open data in Denton.

Project Resources

A geo server is being setup to access a postgresql database. Here's a test URL:

http://gis01.cloudapp.net:8080/geoserver/Private/wms?service=WMS&version=1.1.0&request=GetMap&layers=Private:parcel_unt_data&styles=&bbox=2374140.5,7119699.0,2388426.5,7128551.5&width=768&height=475&srs=EPSG:2276&format=image%2Fjpeg

Parameter Breakdown

Key Value Description
service WMS N/A
version 1.1.0 Assumed version of the Geo Server
request GetMap Type of data being returned
layers Private:parcel_unt_data Specific to the data hosted on the UNT Geo server.
styles bbox=2374140.5,7119699.0,2388426.5,7128551.5 ¯\_(ツ)_/¯
width 768 Width of image in px
height 475 Height of image in px
srs EPSG:2276 ¯\_(ツ)_/¯
format image%2Fjpeg Format of data, HTML encoded.

SQL View Parameters

The SQL view parameters are specified by adding the viewparams parameter to the WMS GetMap or the WFS GetFeature request. The viewparams argument is a list of key:value pairs, separated by semicolons:

viewparams=p1:v1;p2:v2;...

If the values contain semicolons or commas these must be escaped with a backslash (e.g. \, and \;).

For example, the popstates SQL View layer can be displayed by invoking the Layer Preview. Initially no parameter values are supplied, so the defaults are used and all the states are displayed,

To display all states having more than 20 million inhabitants the following parameter is added to the GetMap request: &viewparams=low:20000000

alt text

To display all states having between 2 and 5 millions inhabitants the view parameters are: &viewparams=low:2000000;high:5000000

alt text

Parameters can be provided for multiple layers by separating each parameter map with a comma:

&viewparams=l1p1:v1;l1p2:v2,l2p1:v1;l2p2:v2,...

The number of parameter maps must match the number of layers (featuretypes) included in the request.

Sheetsu API

View the Sheetsu API docs (beta).

Dataset API URL Description
Community Facilities https://sheetsu.com/apis/2705ee3b A list of facilities around town.
Code Violations https://sheetsu.com/apis/41293eb6 List of code violations filtered by GeoID (block)
Crime Reports https://sheetsu.com/apis/bb1d8d0d Aggregation of crime reports.
Homeless Survey (2013) https://sheetsu.com/apis/6208b1ef Survey of homelessness in City of Denton for 2013.

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.