New answers tagged

0

the problem could be from the CORS not enabled, if your web page is in a web server not in geoserver, you can either: 1- put your web page in the www folder inside geoserver/data_dir and lauch it from there 2 - or if you need to launch it from a web server ( apache for example ) you will have to enable JSONP in your geoserver configuration like this : go ...


0

To the best of my knowledge (as the current maintainer of the GeoServer labeling engine) it cannot be done, unless you pre-process the data and split the above into multiple features. An option to do that could be added though, like a labelAllComponents vendor option. See this guide if you are interested in making it happen: https://github.com/geoserver/...


1

Since this is a "large" file your best bet is to style it on the server and use the WMS service to send it to your browser as a small image (i.e. a compressed png). GeoServer uses SLD to style layers, there are many examples available in the SLD cookbook which you can use as a basis for your style. In your case I would recommend using the recode function as ...


2

You got pretty close to the actual syntax (it's a GeoServer extension mind, not part of the OGC standards): http://blog.geoserver.org/2008/12/08/dynamic-symbolizers-part-1/


0

I did further research, and the following three "vendorOption" parameters were recommended where labels are left off when you really want them labeled in the tiles. I'll explain each briefly and why it did or did not help in my case. <VendorOption name="spaceAround">-1</VendorOption> <VendorOption name="conflictResolution"&...


0

I'm also checking out acuGIS.com > which seems like an amazing resource that hosts a wide range of GIS platforms for a great price. I'm literally ready to jump on my desktop after reading through their site. I can do moderate-level server admin but, I get so baffled with AWS and their methodologies, so it's off to the races with acuGIS for me.


0

I don't know how long your request is, but there are a few tricks to get it shorter. Because SLD involves so much repetition with the tags, using a global namespace in the root tag (xmlns="http://www.opengis.net/sld") and not repeating <sld:Tag> every time will save you a lot of character. if you generate the style dynamically, there should not be ...


1

If you still didn't fix your problem, then maybe this might help you: Try to check if all data stores you have are valid (so their sources are available). I had data stores added via Geoserver Web Interface to which I had manually deleted source shp files from the server hdd. So the Geoserver data stores were invalid and the source destinations were ...


5

1) Add a new geometry column: ALTER TABLE mytable ADD COLUMN geom geometry(Point, 4326); 2) Update the new column with the geometry from your long and lat columns: UPDATE mytable SET geom = ST_SetSRID(ST_MakePoint(long, lat), 4326);


0

Just try to change content language of your browser as English, that you use to open Geoserver Admin Page. Your problem will be fixed. If it continues, try to change your decimal seperator of your system.


0

I just got a basic Leaflet webpage setup and working after hacking away at it for a long time before finally giving up and asking for help on StackOverflow (the Leaflet.com quickstart tutorials do not have working code, or I may have missed something there where it talks about the #map properties inside style tags). Check out this stackoverflow question for ...


0

The folder is named "temp" because it's temporary storage of results. If you actually want to save them on disk you can either: Call the WPS from another program residing on the same machine, grab the results and save them where you want Chain the call with another process that will save the results locally as its main job. There is for example a ...


5

If you need to visualize WMS and WMTS are the protocols to use. WFS is meant to transfer raw data with full geometries and attributes, which a client software (not a human) can then either visualize on its own (try for example QGis as a WFS client), analyze and eventually edit, saving back the changes via the WFS Transaction call. OGC in general provides ...


3

If you already have a GeoServer WMS service, then the most straightforward way is to use the getFeatureInfo capabilities of the WMS protocol. See https://github.com/heigeo/leaflet.wms and http://docs.geoserver.org/latest/en/user/services/wms/reference.html#wms-getfeatureinfo


6

AWS is a set of virtualized hardware that looks like a computer to you and others. GeoServer is a piece of software that converts spatial data into web maps, it can run on an AWS instance.


2

In the imagemosaic setting (in the layer page), try setting "output transparent color" to black


1

I export the SLD from QGIS 2.2 and I am running Geoserver 2.6. For the export from QGIS to work, I change the se:SvgParameter into sld:CssParameter. Generally using SDL 1.0 instead of 1.1.0 prove to simplify some of the issues of transferring the symbology form QGIS to Geoserver in my case. But this will depend on the versions of the software you have. ...


1

look closely, and you'll see the problem, hiding in plain sight... <!--Parser Error: syntax error, unexpected COLUMN_REF, expecting $end - Expression was: Land use 2 = 'Residential buldings'--> I suspect you'll need to edit the SLD to rename the field name, e.g. "land_use_2". How you do this depends on the format you're importing from (shapefile, ...


2

Does the data get reprojected? Typically when I reproject raster to a different coordinate system I get black edges like that, because the raster file itself is rectangular, but the area covered by the reprojected data isn't. The black parts are areas of 'nodata'. If it's an issue of the look of the thing, perhaps you can make nodata transparent or white?


1

GeoServer (by default) doesn't make primary keys available to the renderer as they are usually just a simple integer or UUID so are of no real use for rendering. There are two solutions to your issue add a serial column to your table for use as the primary key. ask GeoServer to expose primary keys for you.


3

Based on my reading of this question you should be able to do: name = "layer_name" workspace = "my_workspace" cat = Catalog(location, user,pass) resource = cat.get_resource(name, workspace=workspace) if type(resource) is geoserver.resource.Coverage: ... elif type(resource) is geoserver.resource.FeatureType: ... Or possibly: if isinstance(resource, ...


3

You can also switch off WFS-T for your service by going to the WMS menu page (Services->WMS) and changing the service level from Complete to Basic.


0

As commented by @bugmenot123, they: have no idea about Jetty or IIS [but] would probably put a reverse proxy in front of it, so that eg /geoserver/ gets handled by localhost:8080 internally. That way you would have just one HTTPS server as "front-end". Quick search suggests that you can configure IIS as reverse proxy.


3

There are multiple ways of achieving this: Use Geoserver's Service Security Connect to the PostGIS table with a user who only has Read-Only access on the Table. Ideally you should do both.


0

Problem was solved by enabling jsonp in the geoserver


2

If you read the strReplace documentation you will see that it is a thin wrapper around the Java replace method and provides a link to the Pattern Rules. This means that your function: strReplace(iconPath,'.','/',true) will replace every character (a . matches any character) in iconPath with a / - clearly not what you want. I would try something like: $(...


0

I can confirm the answer above,but in my case it regards to version Geoserver-2.8.SNAPSHOT (OpenGeoSuite), as follows: Geoserver's WEB-INF: /usr/share/opengeo/geoserver/WEB-INF/lib/ I've get several JARs related to REST: gs-rest-2.8-SNAPSHOT.jar gs-restconfig-2.8-SNAPSHOT.jar gs-web-rest-2.8-SNAPSHOT.jar ... When I've tried http://localhost:9090/...


1

You need to PUT an updated FeatureType document with the new bounding box set in it. So your workflow is something like: curl -v -u admin:geoserver -H 'Accept: text/xml' \ -XGET http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile/featuretypes/states.xml Then edit the Bounding box to your new value and delete the lat/lon ...


1

You'll find the parameter on the feature type resource: http://docs.geoserver.org/latest/en/user/rest/api/featuretypes.html#recalculate


0

I wrote some R codes to manually create the properties files which is generated by geoserver (actually by GeoTools). The codes are not perfect, but work for me. I post here for other who will need them in R. geoserver_retile <- function( input_file, target_dir, levels = 8) { # Call gdal_retile to generate tiles cmd <- paste0( ...


1

Nowadays GeoServer releases are automated in our build server and the instructions do not get into the details of building an installer, but this old guide from the times when things were done by hand might provide you instructions on how to get an installer done: https://github.com/geoserver/geoserver-history/blob/master/doc/en/developer/source/release-...


2

You can create these files anywhere that you do have write permission and then move them. You could use some GeoTools code to construct the image pyramid as a user that does have write permission.


0

Another reason for GeoServer considering a table read only is having a column with a type that GeoServer does not understand... and thus cannot write onto. If that's the case, you should find in your logs, the first time that table is used, and at least at the default logging level, a message such as: Could not find mapping for theColumn, ignoring the ...


0

I had a problem with WFS like you, I solved it by enabling jsonp in Geoserver


1

I don't think it's possible to use a shapefile as-is. If the file is local to GeoServer (you tagged it, I assume that's what you are using), you can try to use a "file:///path/to/zipped/shapefile.zip" reference. If the file is remote, you will have to zip it and add it to the request as a base64 encoded payload, or reference to it via HTTP (if you can zip ...


0

So I've solved this with a Javascript prompt by using the following code: interaction.on('drawend', function(e) { //pass an attribute to the feature var myAttrValue = prompt("Enter Attribute", ""); var myFeature= e.feature; if (myAttrValue != null) { myFeature.set('column', myAttrValue); } pointWFS('insert',myFeature); });


1

So finally, here is the solution I used thanks to Barrett ! If it can help someone else here is the code : var defaultParameters = { service : 'WFS', version : '1.0.0', request : 'GetFeature', typeName : 'database:table’, outputFormat : 'text/javascript', format_options : 'callback:callEP', srsName : 'EPSG:4326', }; var ...


0

This caught me out for a while and that codehaus link no longer works so for reference (based on the OpenGeo suite install but applicable with any Jetty geoserver setup probably)... Main one to enable editing and saving html files in root is D:\Apps\OpenGeo\jetty\etc\webdefault.xml set useFileMappedBuffer to false (was true) Cheers Andy


0

Take a look at http://www.scisys.co.uk/what-we-do/geographic-information-systems/sld-editor.html it is a free open source tool recently released by SCISYS


0

Note: this "answer" is partially (A) am going to share the result/answer as pointed by comments of my question, (B) i need to show image not possible in comment, and (C) maintain the flow of: question --> comment of question --> showing result. @Andrea Aime, I tried the "buffer" parameter in WMS. It worked! Unfortunately I can not found examples/docs ...


0

If your needs are stepping up from simple viewer to managing maps across sessions you should either build your own, or look into something offering that functionality out of the box. MapStore 2 for example offers this functionality (among several others) and it's open source: http://geosolutions-it.github.io/MapStore2/ There are other projects building on ...


3

You can use the security subsystem to disallow writes on a specific set of layers: http://geoserver.geo-solutions.it/edu/en/security/layer_level.html http://docs.geoserver.org/stable/en/user/security/layer.html


0

I solved this problem by myself. It is the ojdbc.jar package problem when I was create a link with oracle I need to put the package in geoserver(like d:\GeoServer 2.8.3\webapps\geoserver\WEB-INF\lib) package:gt-jdbc-oracle-14.3.jar and ojdbc I used ojdbc-14.jar but I go to the oracle official website to download ojdbc6.jar it's all right...


3

You are right that metatiles alone do not prevent cutting the symbols. In the picture below with 3x3 metatiles the inner star symbol will not be cut but the outer will because it is on the border of the metatile. With symbols you can get a perfect result by using "gutter" parameter with a value that is bigger than half of the size of the biggest symbol. ...


2

May be you can change the styles in your published layers. layer(Menu on the left)---> select you published layers--->select publish --->Default Style--->change to polygon


1

The solution was actually pretty easy ! All I had to do is set "projection: new OpenLayers.Projection("EPSG:3857")" in the MapPanel section. ... map: { numZoomLevels: 25, controls: controls, projection: new OpenLayers.Projection("EPSG:3857") }, ...


0

If you want to style two unrelated things then you need two styles - one for highways and one for admin lines. Otherwise you will end up with complex SLDs with many rules that can never be true (i.e. 'highway' = 'primary' && admin_level = 2).


0

It's happening because by OGC Filter specification the first element of an intersects filter must be a property name. Now, that said, GeoServer should be able to deal with an expression as the first argument internally, it's just that there is one class in GeoServer that's still enforcing the the above limitation while processing the request. You can open a ...


1

Has been answered on the geoserver-users mailing list, it's a bug in env usage inside raster symbolizer happening when multiple layers are requested: http://osgeo-org.1560.x6.nabble.com/Variable-substitution-not-working-if-multiple-layers-are-provided-in-WMS-call-td5271011.html The env function works otherwise fine (against one or more vector layers, or ...


1

The obvious way to do it is to calculate the lengths of all the lines and store it as an attribute before loading the data into GeoServer.



Top 50 recent answers are included