New answers tagged

1

WMS cannot handle properties of the features displayed in a bbox (it can only fetch properties of a feature given a point, read the docs for WMS's getFeatureInfo). What you might want to do is using a different approach, like doing a WFS request to geoserver, which will return the geometries and properties of all features inside a bounding box.


1

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> ...



Top 50 recent answers are included