Hot answers tagged geoserver
9
The reasons why it is so slow is
you retrieve megabytes of data doing your WFS request. To confirm, open Firebug (Firefox addon debugger) or Chrome and look into Net(work) panel. You will see it's too huge. This data takes time to be process (your "page is unresponsive" syndrom)
browser capabilities: you never display more than one thousand of feature in ...
3
This is certainly possible for stroke widths using the Symbology Encoding (SE) enhancements. See this page for an example of how to do it.
That said I don't know if it works for labels, if it does may be you can add an answer here saying so.
3
The raster analog to WFS is WCS, the Web Coverage Service. The analog to GetFeature would be GetCoverage. The principles of WFS and WCS are the same (serving of raw spatial data), but the implementations are slightly different, as one deals with vectors and one deal with rasters.
GeoServer has some documentation on WCS here:
...
3
Views are just named queries stored into the database so they will use indexes on the underlying tables just as if you had run the query statement.
Depending on your postgres expertise it might be worthwhile reading the INDEX section of the postgres manual, expecially the part on expressions.
You can confirm that the view and the query are assigned the ...
3
You should access it through http protocol. file protocol is not allowed with a WFS server.
see this StackOverflow question.
To test geoserver WFS try GetCapabilities request.
For your case try this:
http://localhost:8080/geoserver/wfs?service=wfs&version=1.1.0&request=GetCapabilities.
More info at geoserver manual
2
I suspect an out of memory error: the first application to be accessed will issue a large (how many features are fetched with every layer?) WFS request which completes, but prevents further requests from being carried out successfully.
This explains the works-after-restart behaviour as with a restart all JVM memory would be released and then reallocated ...
2
I have the same problem, I have tried importing the geoserver code as an eclipse project and then deploying it to a JBoss instance and in that case JAI libraries are loaded without any problem. That is because eclipse launch their own paths to load that libraries, so if you want JBoss to be capable of loading these libraries you have to:
Copy your .so or ...
2
I am adding this as answer because OL proxyHost should solve your issue. I understood you didn't have apache. But openlayers uses a proxy.cgi and as mentioned in the Janne's link did you commented out the lines in proxy.cgi. you can search for proxy.cgi (don't know the exact location in geoserver distribution). But it happens to be in ...
2
Install the Image Mosaic JDBC plugin
A GeoServer webpage hints at the root of the problem:
GeoServer does not come built-in with support for Postgis raster columns, it must be installed through an extension. Proceed to Image Mosaic JDBC for installation details. This extension includes the support for Postgis raster.
I followed the complex setup ...
2
If i remember my struggles with SLD (and IRC chats with Andrea) correctly the order of induvidual rules within a FeatureTypeStyle isn't significant (due to memory issues).
To ensure correct ordering you have to use more than one FeatureTypeStyle, see this geoserver mailing list thread
2
how about this: http://osgeo-org.1560.x6.nabble.com/Load-GeoServer-WMS-secured-layers-with-OpenLayers-td3919938.html, basically it uses a proxy script to do what you need.
2
There are several ways you could tackle this. There is a package kriging that does ordinary kriging. There are several methods in the package gstat, package raster has contour function for rasters as well as many other things. The package in itself is very complete. The fields package has a Tps function which could satisfy you:
Description:
Fits a thin ...
2
Yes, 1 request is 1 tile. Getting several tiles in a single response is not possible, but if your GeoServer is serving "raw" wms'es (i.e. not cached tiles), you can tell OpenLayers not to request tiles, see the singleTile option
2
I think you're nearly there by questioning what the WFS is for. In reality a user browsing the vector data is only interested in examining a few features at a time, right? So the trick is how to identify those feature before WFS request. Clearly this is somewhat dependant on the data we're talking about, but I don't see much value in a desktop client user ...
2
Something you should try, which IMO is one of the cooler QGIS features, is the rule based rendering
If you export this as a SLD it will contain the style for each zoom level in a single SLD.
Note: You can't turn each rule on and off in the TOC but there is a feature request for that which hopefully might happen for 2.1.
Also Note: Labels can be done ...
2
Yes, tiling is the right solution to increase performance, but you will need more disk space.
In the Open-Source, Mapnik + TileCache or TileStache are the best libraries (in my opinion) to generate tiles. You can serve your tiles with GeoServer, MapServer or GeoDjango.
If you dont want to tile, remember that 5000 features its quite a lot to display on a ...
2
more of a jQuery question, but try:
$("#reset").on("click", function(event) {
DNPA_camping.setVisibility(true);
DNPA_camping.redraw();
});
edit: or to drop the "reset"-button and have the dropdown make the map show all when selecting all:
$("#camping").change(function () {
DNPA_camping.setVisibility(true);
if ($(this).val() === "All") {
...
1
alefren's comment helped me solve this issue.
I increased the memory allocations in the WMS to 0 (max) as described in the link in the comments but that did not solve the issue.
I am running TomCat on Windows. So I increased the memory allocation, by going to:
Programs>> TomCat 6.0 >> Configure TomCat
Under the Java tab I increased the memory ...
1
Firstly try putting you code (JS/HTML) C:\Program Files\GeoServer 2.2.5\webapps\complex folder, and try to access it as http://localhost:8080/complex/complex.html See if you get any error messages in Firebug.
Now coming to your code.
Firstly I do not see the projection being set to webmercator. You need to do that.
And finally, I would initialize the wms ...
1
There are a couple of issues with your code. Firstly, the map was not properly initialized. The Url of WMS service, as well as the transparent paramter was incorrect.
I have corrected the code. The following works for me:
var map, layer;
function init(){
var geographic = new OpenLayers.Projection("EPSG:4326");
var mercator = new ...
1
All desktop GIS apps have very bad support for large datasets and I haven't found a way to configure them to improve the performance. If you really require access to the vector data in your GIS then I believe the potential solution is to force users to use the WFS 2.0 paging feature. We have some developer tips here: ...
1
The former should give you better performance, GeoServer is structured to minimize the use of memory and has no source data caches, so giving it more memory (past a certain point) does not really make it faster, just allows it to serve more requests in parallel... slower :-)
The thing is, past 2x or 4x the number of CPUs the overall throughput will stop ...
1
Yes and No. :)
It's possible to create a datastore dynamically with REST, but not with parameters (I know of no method to do that). But, you can create a script, that use Geoserver REST interface to achieve the aim.
For REST in Geoserver, look the documentation: http://docs.geoserver.org/stable/en/user/rest/api/datastores.html
I recommend to you the ...
1
The development version of OpenLayers has support for Web Processing Service (WPS).
See this example.
You can use GeoServer as a WPS server. Use the JTS buffer operation to buffer your geometry.
1
You've run out of memory - add more memory to the JVM that is running your container. Exactly how you do that depends to an extent on which you are using but it will be something like
export JAVA_OPTS = $JAVA_OPTS -Xmx256M -Xms48m
See http://docs.geoserver.org/stable/en/user/production/container.html for a fuller list of possibilities
1
Examples would be; from http://www.fgdc.gov/metadata/documents/workbook_0501_bmk.pdf: "Identification
Title? Area covered? Themes? Currentness? Restrictions?
Data Quality
Accuracy? Completeness? Logical Consistency? Lineage?
Spatial Data Organization
Indirect? Vector? Raster? Type of elements? Number?
Spatial Reference
Projection? Grid system? Datum? ...
1
I haven't found the right answer to this problem, until now... but anyway, for others facing similar problem, here is a workaround solution.
testWPS is my WPS process whose input is string and output is string
OpenLayers.Request.POST({
url: "http://localhost:8080/geoserver/wps,
params: {
"SERVICE": "WPS",
"REQUEST": ...
1
If you download and install http://geonetwork-opensource.org, you've got all the tools you mentioned above in a single package... Also you might want to have a look at http://geonode.org, which also bundles all of these projects, but adds an easy-to-use interface.
For sure, both of these projects fit your usecase perfectly
1
Following the configuration instructions for the PostGIS raster plugin, you should try replacing
<spatialExtension name="postgis"/>
with
<spatialExtension name="pgraster"/>
in configration file mapping.postgis.xml.inc.
1
I ran into this same problem and in my case it was caused by GeoServer not having write permission for the pyramid data directory, i.e., the directory I passed to gdal_retile.py as the -targetDir argument.
The stack trace in the log included:
Caused by: java.lang.IllegalArgumentException: This plugin accepts only File, URL and String pointing to a file
...
Only top voted, non community-wiki answers of a minimum length are eligible



