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

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


5

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


4

There are lots of different methods, depending what you want to do with the data (routing, general GIS, rendering with Mapnik...). You can find quite a lot on the OSM wiki. osm2postgresql (http://wiki.openstreetmap.org/wiki/Osm2postgresql) is my personal fav but you can have a look at the other ones. They will allow you to import an *.osm file into the ...


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


3

Assuming you are on windows (you mention .bat), you can do a number of things: Check the Services in windows Control Panel --> Administrative --> Services. Look for the Geoserver entry and make sure it is actually running and not disabled or stopped. You can start it from here and set it to enabled as well Make sure you are navigating correctly to the ...


3

The shapefile should have a .prj file which contains the CRS information. It does not necessarily contain the EPSG code itself, but you can open the file with any text editor, and insert the content in your question. spatialreference.org is an online database with most known coordinate refrence systems.


3

A partial answer here. Have you seen the following resources? http://geowebcache.org/docs/current/introduction/whichgwc.html If you have one geoserver then use the integrated geowebcache otherwise use the standalone GWC to connect to multiple geoservers. http://opengeo.org/publications/geoserver-production/ OpenGeo certainly recommend using the latest ...


3

For that, you could publish your polygon through a WFS-T Services and loading into your Open Layers viewer, allowing you to edit it. Look at this example: http://openlayers.org/dev/examples/wfs-protocol-transactions.html Keep in mind to set properly the proxy.cgi


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

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.


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



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