Git Product home page Git Product logo

gsr's Introduction

GeoServices Rest API

This plugin provides an ArcGIS REST compatibility API.

Installation

Drop all the jar files in the distribution into the WEB-INF/lib directory of your GeoServer and restart.

Usage

Currently basic FeatureServer and MapServer functionality work. Each GeoServer workspace is considered an ArcGIS "service" for the purposes of the API. ArcGIS URLs look like this in GeoServer:

http://localhost:8080/geoserver/gsr/services/topp/MapServer/ http://localhost:8080/geoserver/gsr/services/topp/FeatureServer/

Where topp is the workspace name.

Not Supported

Notable features currently unsupported:

  • Non-geospatial filters
  • Dynamic layer definitions
  • Requests to feature layers in non-native spatial reference systems.

Usage Notes

When using the official JS API, CORS detection does not work correctly. You will need to add your server manually to the list of CORS enabled servers:

    require(["esri/config"], function (esriConfig) {
        esriConfig.request.corsEnabledServers.push("localhost:9191");
    });

CORS support also needs to be enabled on the server. Without these settings, it will attempt to use JSONP, which may not be as well supported.

For information on enabling CORS in GeoServer, see here

Web Mercator Spatial Reference

The official APIs use Spatial Reference 102100 as Web Mercator. In order for this to work, add the following custom projection to your data_dir/user_projections/epsg.properties file:

102100=PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["Popular Visualisation CRS",DATUM["Popular_Visualisation_Datum",SPHEROID["Popular Visualisation Sphere",6378137,0,AUTHORITY["EPSG","7059"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6055"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4055"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],AUTHORITY["EPSG","3785"],AXIS["X",EAST],AXIS["Y",NORTH]]

Examples

See the folder docs/samples for examples using the official JS client.

Live Demos

There are currently two live demos available:

gsr's People

Contributors

tbarsballe avatar jmarin avatar dwins avatar tkunicki avatar dvntucker avatar groldan avatar jodygarnett avatar smithkm avatar johngschulz avatar mweisman avatar rmarianski avatar

Stargazers

Erdong avatar

Watchers

 avatar

Forkers

geosolutions-it

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.