Tag Info

Hot answers tagged

5

If you want to use a postgis database with Openstreetmap data, you have to populate it with osm2pgsql, not osmosis. That is the only way to get polygons out of Openstreetmap multipolygon relations and closed ways in a format that GIS software can understand. Alternatively, you can use GDAL ogr2ogr to save OSM data into a spatialite database. Once you have ...


3

This is because boundedBy / bbox is a property that OpenLayers creates when parsing the GML, it is not a real feature property. So when you update, you should clone the feature and get rid of it. Some example code: // do a WFS transaction to update the geometry var properties = feature.getProperties(); // get rid of bbox which is not a real property delete ...


3

Polygon layers by default do not stay the same size when zooming further out because they represent an area. The only aspect that you will see for smaller polygons when zoomed out is just the outline. If you still want to represent the feature when zoomed far out one option would be to add a <PointSymbolizer> within the sld that will turn on at x ...


2

Definately it can be done, if you have styled your layer with the correct symbology then geoserver will just render that sld. On the question of it appearing in getfeature info look at geoserver templates which allows you to customise the how your get feature info behaves


2

For OpenLayers 2 try map.getCenter() http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getCenter Or OpenLayers 3 use map.getView().getCenter() http://openlayers.org/en/v3.5.0/apidoc/ol.Map.html#getView http://openlayers.org/en/v3.5.0/apidoc/ol.View.html#getCenter


2

There have been similar questions at help.openstreetmap.org with different solutions, see: https://help.openstreetmap.org/questions/7920/mapnik-street-name-generation https://help.openstreetmap.org/questions/21784/render-place-name-in-two-languages-with-mapnik ...


1

obviously http://geoserver.com/geoserver/NameSpace/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=NameSpace:LayerName&maxFeatures=50&outputFormat=application/json you get a geojson quite similar to arcgis rest services through the wfs service here is a live example ...


1

The request should be: http://localhost:8080/geoserver/www/test.html Make also sure that your data directory is really \GeoServer 2.7.0\data_dir See for more info: http://docs.geoserver.org/latest/en/user/tutorials/staticfiles.html


1

This behavior I've seen before with point data and have not figured out a workaround for the existing layer. The workaround that I've used in the past is to make a copy of the table in the database, call it something different, and re-create the layer. When you are at the Bounding Box section, make sure to over estimate the bounding box values slightly (or ...


1

Rather than leaping direct to WPS you might find you can get what you need out of the GeoServer SQL View feature. http://boundlessgeo.com/2015/03/support-story-getting-sql-views/ http://docs.geoserver.org/stable/en/user/data/database/sqlview.html It allows you to write some arbitrary SQL and bind some query parameters into it, so the query becomes a ...


1

Any valid URI should be working, if it's not, it might be a client issue. I know we do a lot of WFS-T with URIs setup as <company's site>/<projectName> (e.g, http://my.company.com/myproject) from OpenLayers with no issues, but don't have direct experience doing it with QGis.


1

Openlayers is just a JavaScript library, so you can use whichever Integrated Development Environment (IDE) you feel most comfortable using for web development. If you are using a Java web framework then NetBeans IDE would be an ideal choice as its primarily for developing in Java. Its also worth checking out the JetBrains IDE's. Edited to answer your ...


1

It depends on the javascript client you are using (e.g. Leaflet, OpenLayers, Google Maps API, ESRI javascript API, etc.), and what you are trying to publish (WFS, WMS, etc.). For OpenLayers, you can preview the layer through the admin UI and get a good idea of how it works (view the page source after the preview loads): ...


1

I would suggest another approach. If you do not need vector data only OSM as a base map which looks the same as http://www.openstreetmap.org maybe you could create your own OSM service using Mapproxy. I know it is not perfect, but maybe you could give it a try. First you need to install Mapproxy. Pre-seed all zoom levels of OSM for particular area and then ...


1

Figured it out! The following SLD uses a rendering transformation to call "gs:Clip", which clips vector features to a bounding geometry. The result is then rasterized by GeoServer's WMS. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xmlns:ogc="http://www.opengis.net/ows" ...


1

The following program ArcMap2SLDConverter will generate an SLD file from an ArcGIS Map - but you must have ArcGIS installed and running to do so. This SLD can then be uploaded to GeoServer, and used to style the corresponding layer.



Only top voted, non community-wiki answers of a minimum length are eligible