New answers tagged

0

You can have array columns in a table. For your example table the create statement would be along the following lines. CREATE TABLE spatial_table ( name VARCHAR(20), timestamps timestamp[], the_geom geometry )


0

You can generate a query that outputs GeoJSON objects with the ST_AsGeoJSON function. Here's a question and answer that explains how: SQL query to have a complete geojson feature from PostGIS


3

You can setup OUTPUTFORMAT declarations which leverage MapServer's use of OGR for custom output formats (including CSV, GeoJSON). See the documentation for further details. Update: this does not appear to be the case for GetPropertyValue requests, only GetFeature requests.


0

Try running it without the style: <!doctype html> <html lang="en"> <head> <link rel="stylesheet" href="http://openlayers.org/en/v3.15.1/css/ol.css" type="text/css"> <style> .map { height: 80%; width: 100%; } </style> <script ...


0

Your error has nothing to do with JSON, there is a problem with the PostGIS datastore jar on your path. The most likely cause of this issue is that you have combined jars from different GeoTools releases. Check your pom.xml file - the usual practice is to use a property geotools.version set to the version you plan to use: <properties> ...


4

The L.GeoJson class has a built in filter option that you can use to filter your data. Just pass it a function that will return true for the features you want to show: var picnic_parks = L.geoJson(myJson, {filter: picnicFilter}).addTo(map); function picnicFilter(feature) { if (feature.properties.Picnic === "Yes") return true } Here is a fiddle with a ...


0

If you look at my answer here: http://gis.stackexchange.com/a/183908/15647 You'll find a way of accomplishing this. You'll need to make sure your JSON is formatted correctly. It doesn't look quite right to me, but it can probably be tweaked, there's some JSON example in the question I linked to as well and all you really need in JSON is the Layer ...


0

Alright, problem solved. I'd installed a package called geoserver-geonode. A security "feature" of the package makes it so only layers uploaded through GeoNode can be served up. Since I imported the JSON file through GeoServer's import extension, it was not allowed to be served. So I installed GeoServer and GeoNode packages separately and all is fine. (I ...



Top 50 recent answers are included