About


What is the GeoPlatter project?

GeoPlatter is a RESTful interface for getting GeoJSON data. I wanted to make a very simple tool to help make web mapping easier. This tool allows me to easily parse GeoPlatter urls to grab GIS data and put it directly on a map. I wanted a simpler user experience than the one user's get with the ArcGIS Server REST API.

Code Snippets

Here's a JavaScript snippet displaying how one could grab the GeoJSON for two towns in New Jersey and place them on a Leaflet map using jQuery's ajax functionality.


  function addMuni(code, mapObj) {

      // geoplatter currently uses "{wild}" rather than "%" for sql wildcards to avoid url errors
      var where_clause = "mun_code like '" + code + "{wild}'";
      $.ajax({
          url: "geoplatter.com/services/nj/municipality/q/" + where_clause,
          success: function(data) {
              L.geoJSON(data).addTo(mapObj);
          }
      });
  }

  // Pitman's municipal code is 0815
  addMuni("0815", map);

  // Atlantic City's municipal code is 0102
  addMuni("0102", map);

This snippet shows how one could grab all New Jersey municipalities that intersect with a given shape and add them to a Leaflet map.


  var intersectShape = JSON.stringify({
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {},
          "geometry": {
            "type": "Point",
            "coordinates": [
              -74.88624572753906,
              39.59907503753918
            ]
          }
        }
      ]
  });

  $.ajax({
    url: "geoplatter.com/services/nj/municipality/intersect/" + intersectShape,
    success: function(data) {
      L.geoJSON(data).addTo(map);
    }
  });

Goals

I am currently working to create a solid group of services to get this application moving. Each service should have a default set of functions ("query", "intersect", etc.) and should follow certain data standards. The second phase of this project will focus on the creation of user accounts and allowing users to upload their own data and create their own services.