Tag Info

Hot answers tagged

9

It isn't necessary to learn OpenLayers or Leaflet when you just want to use GeoServer. However, I have a single advice for you: because you already have a working GeoServer, do yourself a favor and go to https://github.com/boundlessgeo/suite/tree/master/geoexplorer. Follow those instructions, build a geoexplorer.war and deploy it to your servlet container. ...


6

You can do this by using Layer Groups. In the Admin interface, Under the 'Data' section on the left click on 'Layer Groups'. Then, in the usual GeoServer way, create a new layer group (by default you may already have a couple of examples) and then follow the intuitive interface to add layers to the group. Once you have your Layer Group created, go back ...


6

The table gt_pk_metadata is an optional table that GeoTools (and GeoServer) use to work out what the primary key columns in a view are. It is needed to generate consistent feature IDs (FIDS) otherwise GeoTools will use the feature's java ID which will change from run to run. It is explained in this document. So you can ignore this error if you don't care ...


6

If you don't want people to download your data, use the security subsystem or disable the WFS services, the preview is just building links to standard OGC calls. But if you really just want to remove it, you can remove it for everybody (including the admin) by taking out the geoserver demo jar in geoserver/web-inf/lib


5

There is a file inside your installation path where you can customize your base layer/s and servers: WEB-INF/config-gui.xml. It contains some instruction about this configuration. You can define base layers for both the mapSearch (the smaller one) and the mapViewer. Here's an example from a working Geonetwork config: <mapSearch options="{ ...


5

Probably not exactly a GIS question, but since I have some notes about this, I will paste some of it here. When I need to access amazon services through gui, I use xubuntu (since it is more lightweight) and VNC. The following steps do the install, assuming you have xubuntu-desktop already installed. It comes from several online resources patched together ...


5

QGIS uses shapefiles and shapefiles have no topology. If two areas shared a common border that border is stored in duplicate (store individual geometric objects in isolation). GRASS GIS is a topological GIS: the adjacent geographic components in a vector map are related. The common border between two areas exists once and is shared between two areas. When ...


5

What you have found is something in the OpenLayers sand box, which is an environment where OpenLayers contributors can add their own custom layers, controls, etc. Sometimes things created in the sand box work their way through to the core distribution. However, it is simple to take what has been created and add it to your OpenLayers build. First, you need ...


5

XML is ordered (at least in the SLD schema) so you must use the elements in the right order, what you should have written is: <ogc:Filter>**line.24** <ogc:PropertyIsEqualTo> <ogc:PropertyName>mpec_magis</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> ...


4

Not directly - if you use the GeoWebCache extension (which is built in by default) then you can serve WMTS 1.0.0. and TMS 1.0.0.


4

Short answer: yes, you can display a WMS generated map in a desktop app. Longer answer: It depends, at it's simplest a WMS map (what GeoServer sends you) is just an image generated by a get request to a well known URL scheme. So any app which can request URLs can display WMS maps (so in principal any Java app should be able to do it). However the WMS ...


4

Put the MinScaleDenominator and MaxScaleDenominator element after the ogc:Filter element: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" ...


4

Take a look at L.tilelayer.wms in the API. In your case you should get something like this: var map = L.map('map').setView([55.67, 12.60], 11); var mywms = L.tileLayer.wms("http://wfs-kbhkort.kk.dk/k101/wms", { layers: 'k101:theme-startkort', format: 'image/png', transparent: true, version: '1.1.0', attribution: "myattribution" }); ...


4

Another option that you might find useful is Vagrant, which allows you to set up a virtualbox instance using a scripting language and then deploy it to Amazon after you are happy (though I haven't yet tried this). I have a basic vagrant setup which will get you GeoServer in a tomcat instance on GitHub. This will at least let you play with linux and get ...


4

Here's my suggestions: Try the map as just tiles. Is this slow? If so, use someone else's base map or use GeoWebCache to pre-generate tiles. Then all you should be seeing when loading only tiles is HDD usage and no or very little processing. If you're loading vectors, and that's slow, don't load vectors. Tile the vectors and query the database for ...


4

GeoServer is probably using PostGIS' "estimated extent" function, which has a habit of under-determining the bounds. You could drop the estimated extent function and replace it the full version. The downside (and perhaps the reason GeoServer doesn't use it) is that for very large tables, the full extent calculation can take a very long time. This effect ...


4

This is an interesting question, and I wanted to investigate the issue. Firstly, with some brief experimentation, I saw that Geoserver does not return any data from the non-rendered region when you use the GetFeatureInfo request on the WMS service. To see if this is expected behavior, I checked the documentation for the GetFeatureInfo request. You can ...


4

A common problem is styling that uses other attributes in the table, and those other attributes may not be indexed. What I would recommend is that you turn on GEOTOOLS_DEVELOPER_LOGGING and check the logs for the exact SQL statement being run against the database. Copy that statement into a psql prompt and do an EXPLAIN on it.


4

The following piece of code allows you to transform your latitude and longitude coordinates from epsg:3857 to epsg:4326 in just one line. Just substitute longitude and latitudine values to LON and LAT in the code. point = new OpenLayers.LonLat(LON,LAT).transform('EPSG:4326', 'EPSG:3857'); In point you'll have an OpenLayers readable point.


4

Instead of creating a KML file then using that to access Google Earth, you can instead add your GeoServer WMS directly as an overlay as below: From the menu select Add, select Image Overlay, give the overlay a name select the Refresh tab select WMS Parameters select the Add button next to 'WMS Server:' drop down Add the URL to your service (without ...


4

You can only use a x,y (i,j) coordinate search for GetFeatureInfo requests http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo However, you may test for interactions with polygons (and many other geometries) using a Web Feature Service (WFS) request. E.g. ...


4

If the raster is in PostGIS, using ST_Value this would be handy (from this similar question): SELECT ST_Value(rast, geom) val FROM yourrastertabe, yourpointtable WHERE ST_Intersects(rast, geom) This would require you convert the linestring to points, insert into an array or table, and then run the intersection. Stream the results to a file and then back ...


3

Setting the declared SRS is relatively straight forward using the GeoServer REST API. The key to using the REST API is to understand that you only need to send fragments when updating an existing resource, I have seen others in the past trying to build a complete resource XML to POST or PUT and then coming unstuck. To set the declared SRS you need to set ...


3

The other way is to list all the layers you want in the LAYERS parameter of your WMS request. If you have GeoServer installed locally you can try ...


3

Your configuration looks good. Now you need a Mapnik-looking-like style file for your server. Maybe this can help you with Geoserver: http://osgeo-org.1560.x6.nabble.com/OSM-style-SLD-files-for-GeoServer-td5015615.html A working set of sld files can be found in the osminabox sources: https://git.hsr.ch/api/rest/help/repository-root/git.html Source -> ...


3

Check Out Cesium which is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. visit http://cesium.agi.com/index.html to download and try


3

Geoserver print process involves two steps. First at the server side, you have to configure your yaml file, called config.yaml. Go through the detailed documentation at MapFish print module documentation page. Once this done, the second step is for client side. Considering you are using openlayers for your front-end, in order to get the list of visible ...


3

I don't know what happened anyone with greater knowledge can explain but for anyone with similar problem I solved it by adding controls: // Panel (toolbar) var oDragPanCtrl = new OpenLayers.Control.DragPan({ isDefault: true, title: 'Pan map: keep the left mouse button pressed to drag the map' }); var oZoomBoxOutCtrl = new ...


3

You have not posted a complete example of the url you are building and sending to GeoServer so it is difficult to know for sure what the problem is. However, I suspect the problem lies in the use of the % for the wildcard. In a url the % character has a special meaning as it is used when certain characters should be encoded. For example, you may well recall ...


3

The Geoserver Docs have a simple and small example available , which states: Lines in SLD have no notion of a “fill”, only “stroke”. Thus, unlike points or polygons, it is not possible to style the “edge” of the line geometry. It is, however, possible to achieve this effect by drawing each line twice: once with a certain width and again with a slightly ...



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