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

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

Okay, let's rock these features out of the DragBox! There are three options I have found to extract those features from the extent of the DragBox. Considerations and assumptions: I couldn't extract the layer types (raster or vector) from the map.getLayers() object, so let's assume that we stored the feature layers in individual global variables. The ...


5

Check out the Geoserver REST API and the python wrapper gsconfig for the REST API.


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

QGIS has a OpenGeo Explorer (for GeoServer) plug-in that you can create new SLD styles based on your feature symbology, then push to your server. You may also use uDig web GIS app. to pull in PostGIS layers, then copy out the .xml sld text which you may paste within GeoServer SLD styling editor.


4

Your problem is related to Geoserver issue https://jira.codehaus.org/browse/GEOS-5228. See also discussion http://comments.gmane.org/gmane.comp.gis.geoserver.user/39166. I understood that you want to get feature info only when user has zoomed in so much that points are not stacked together but a symbol marks exactly one point in the original data. In that ...


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


4

You can change the password via the web interface by going to the Users,Groups, and Roles link: Once there, go to the Users/Groups tab and select the user which you want to edit You can then change the passwords or any other details you need to change.


4

So the environment variable you're setting is a "User Variable". It applies only to the user you're editing it as. You need to edit the environment for at least the user that your geoserver is running as. See http://technet.microsoft.com/en-au/library/cc772047.aspx for how to set an environment variable using GPOs. Probably the easiest way is to just make ...


3

This is fairly simple to do and there's little risk. But be sure to have a backup of your production data directory anyway. Just copy the following directories/files: /workspaces/YOUR_WORKSPACE_NAME/ The workspace directory that you copy over actually contains the store and layer declarations as well as the workspace itself. Ideally in your setup you'll ...


3

I've had this issue before, it looks like you have done exactly what I did. The GeoServer WPS example heat map doesn't support tiles, so what Gery said is correct you need to set tiled=false. I had the same problem in OpenLayers, so it isn't a Leaflet issue.


3

It sounds like you could do it with with Solr. However, I would use ElasticSearch its easier to get started with. Since you are working with points it seems like a good fit. You would use it standalone as a datasource to Openlayers, it doesn't act act as a "store" to geoserver.


3

If your GeoServer is crashing at loading of the huge shapefile, applying filtering at the SLD level is not going to help. GeoServer will still crash. This problem calls for a Multi-level solution. Firstly, Load the Data into a Database. I'll suggest that you set up a PostGIS database, and load your data in it. To improve performance, you should add a ...


3

There is an example in the GeoServe documentation which seems to do what you need - see http://docs.geoserver.org/stable/en/user/styling/sld-extensions/geometry-transformations.html#start-and-end-point Basically you need to use the startPoint and endPoint functions to extract the start and end point of your line. <PointSymbolizer> ...


3

CartoDB is one way of doing this. You can supply a client side query that returns your results. There is a hosted version, or you can install it on a server yourself: https://github.com/CartoDB/cartodb


3

OpenLayers And GeoServer are two distinct softwares, used for different purposes. Geoserver is a Server Software, which serves out Geospatial Data, via OGC services. OpenLayers is JavaScript Library which can be used to make web applications that (Amongst other things) can consume OGC services. It just so happens, that when Geoserver wants to use ...


3

Open the page http://you.server/geoserver/web/ There it should say something like: "This GeoServer instance is running version x.x.x." If your question was how to do it programmatically, most languages has a way to send a http-request and interpret the response to locate a string like "This GeoServer instance is running version x.x.x"


3

You could try setting up a cron job if you are running on a Linux system.


3

This is a complete working method to seed tiles automatically with GeoWebCache: 1) Go to http://curl.haxx.se/dlwiz/, select your Operating System, and then download and install the cURL utility. 2) Then, with the help of cURL you can initiate a seeding task: curl -v -u USERNAME:PASSWORD -XPOST -H "Content-type: text/xml" -d ...


3

Your problem is that you have added your data using Postgres data type Point, http://www.postgresql.org/docs/9.3/static/datatype-geometric.html Rather than the PostGIS geometry, or Geography type http://postgis.net/docs/reference.html#PostGIS_Types GeoServer has a PostGIS Data Store connector, rather than a Postgres Data Store connector. Good Luck


3

You should specify which JBoss version; for JBoss 7, check this thread in jboss community forum In few words: 1. Add wo geoserver.war/WEB-INF the following xml jboss-classloading.xml <classloading xmlns="urn:jboss:classloading:1.0" name="geoserver.war" domain="GeoServerDomain" export-all="NON_EMPTY" import-all="true"> ...


3

At a glance it seems your calling this function: evt.getCoordinate() var coordinate = evt.getCoordinate(); But to actually get the coordinates you should use this line instead var coordinate = evt.coordinate; Hope this helps


3

In GeoServer you can specify a start and an end date column, see the documentation at http://docs.geoserver.org/latest/en/user/webadmin/data/layers.html#edit-dimensions. All you need is two date columns i.e. two columns with date datatype in your database.


3

OSM tiles are in EPSG:3857 (also known as EPSG:900913) projection while your Geoserver is sending vectors in EPSG:4326. You must make them match. See this OpenLayers example http://openlayers.org/dev/examples/wfs-reprojection.js and why not this also http://openlayers.org/dev/examples/geojson-reprojected.html


3

A openlayers wms layer has 4 parameters name (string), url (string), getMap params (everything inside first {}), options params (everything inside second{}) numZoomLevels is openlayers options parameter not wms getmap parameter. so it should be with the isBaseLayer option.


3

Step-by-step for GeoServer. Note: As @michal-mackiewicz writes, the WPS extension for GeoServer must be installed. Acquire some point data, for example Natural Earth populated places http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip Import data into Postgis for example with ogr2ogr ogr2ogr ...



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