New answers tagged

0

If you are on linux you can probably use unix socket. Then you need to have specified thu user name in the pg_hba file for local, with trust or pair as authentication. Then when you connect you shall not give a host name at all. At least in other softwares that gives you a local connection over unix socket.


0

First, Geoserver style (SLD) and data (KML) are totaly different. Import the KML file in Geoserver and later, create SLD file in the style editor or create style within the viewer (like Mapfishapp) and next, save the .sld file to get the sld easily without write within XML (more difficult to realize classification or other specific style when some system ...


1

You need to consider to migrate your data to a spatial database, like Postgis. Shapefile is not a supported format for WFS-T. Check here for more information.


2

If you're wanting to display a lot of data, use WMS, which is a rendered image-based system. And then if you still want to have interactivity, you can do that using vectors. Check out this: https://github.com/alexgleith/maps-website/blob/master/stormwater.html#L151 This is a pretty complex example, and it uses leaflet rather than openlayers, but the core ...


2

I'm afraid this is a very well known bug for which we have no solution at the moment: https://osgeo-org.atlassian.net/browse/GEOS-4773


0

So i managed to solve the "problem" using cql. I am using a leaflet script, and by adding cql_filter: 'begin AFTER ' + begin + 'T00:00:00 AND end BEFORE ' + end + 'T00:00:00' to the getMap-Request, with begin and end containing the start and end of the period i am interested in (formatted like YYYY-MM-DD), i can now query exactly what i wanted before.


0

Problem solved. Geoserver had problems with the projection. The tiffs were in EPSG:32633. It works after reprojecting the tiffs to EPSG:3857.


1

Building your own solution might actually not be as hard as you think. All you would have to do is register a moveend event and then call getBounds() or getBoundsZoom() (in case the zoom level is important). Then you send this extent to your database and query all the points that fall within it. Of course you need a database that understands geospatial ...


2

Here an example to create one transparent classe. You will use opacity="0.0" parameter: <sld:ColorMap> <sld:ColorMapEntry color="#000000" opacity="0.0" quantity="-999"/> <sld:ColorMapEntry color="#111111" opacity="1.0"quantity="1.0"/> <sld:ColorMapEntry color="#AAAAAA" ...


0

My assumption are you are using jetty geoserver (installer) and you have your application on tomcat7 which is accessing WMS. In this situation a better solution is to deploy the geoserver war file in tomcat7 . This solves the root problem you won't need CORS at all ! Update : the problem seems to be in url format check this for more reference ...


3

You are using WFS 1.0.0. That WFS version is using Filter Encoding Standard 1.0.0 http://portal.opengeospatial.org/files/?artifact_id=1171 and there is indeed a typo in the standard. On page 17 the schema for filter capabilities is defined as: Spatial capabilities are encoded according to the following XML Schema fragment: <xsd:complexType ...


6

Try with intersects: <ogc:Intersects> ... </ogc:Intersects>


2

GeoServer provides a WCS Request builder under demos that allows you to construct and/or run WCS requests against your local server. WCS allows you to specify the subset that you require as a bounding box in map units as in this example: <?xml version="1.0" encoding="UTF-8"?><GetCoverage version="1.0.0" service="WCS" ...


2

Solved..in pg.hba conf file of both servers (in my cases *.*110.11 & ..48.22) i have specified the connection details of the opposite server. Like @ ..110.11 I have specified connection info of ..48.22


0

Assuming you have a line like var crs = new L.Proj.CRS("EPSG:27700", ...); and you get the click event's latlng = e.latlng, then you could do: var WIDTH = map.getSize(map.getZoom()).x; var HEIGHT = map.getSize(map.getZoom()).y; var X = map.latLngToContainerPoint(latlng, map.getZoom()).x; var Y = map.latLngToContainerPoint(latlng, map.getZoom()).y; and ...


1

You can change the getFeatureInfo template used by geoserver, see section "Advanced Formatting". You could try to intercept the ${attribute.rawValue} and print this directly or modify it before sending the feature info back.


3

Azure provides ready built Ubuntu boxes (and yes, that means virtual machines), so it should be no problem having GeoServer (or MapServer) installed and working. There used to be an OpenGeo image for AWS, I don't know if that's still out there but it's also a good option since it comes preconfigured.


3

If you are running GeoServer from the command line then you are only testing it and so should leave it running in a spare console window until done. In a production environment you need to use the .war file in a servlet container such as tomcat or jetty which will be run using service (or systemd or whatever your system uses) so that you don't need to ...


0

Following the discussion, it looks like the newest release of the plugin is supposed to be compatible with Elasticsearch v2.2.0. However, meanwhile Elasticsearch v2.3.1 has been released and v5.0.0 is already available as an alpha release, so it would be interesting to know if the plugin is compatible at least with the former (the latter will probably ...


0

It turns out that currently there is a bug in GeoTools that causes this issue when unioning filtered collections. I have committed a fix into the master branch and will hopefully backport it to 14.x later this week.


1

You are making a GetFeatureInfo request to a WMS service, the WMS is required by the standard to return information about the point you have clicked on. If there is more than one feature at the point then it may return information about all the features (up to featureCount) that are there. You seem to be asking for information about a raster so the request ...


0

I found an amazing and easy solution to determine the correct version of jetty-servlets.jar for GeoServer. The solution is to open the jetty directory Windows: C:\Program Files (x86)\Boundless\OpenGeo\jetty\lib OS X: /Users//Library/Application Support/GeoServer/jetty/lib You will find some jar files ends with the jetty version before the extension. ...


1

There is a link where time support for GetMap in Geoserver is described, which seems to be available from version 2.2. You could check, if using time parameter for GetFeatureInfo on a time-enabled wms will work, too. Otherwise, I am pretty sure, there is time support with the thredds WMS/ ncWMS, where you can expose netCDF files containing time series data. ...


0

I managed this by making a GET request for the coverage: curl -v -u admin:geoserver -H 'Accept: text/xml' -XGET http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/mosaic/coverages/mosaic > req.xml editing the required change into the file and then PUTting it curl -v -u admin:geoserver -H 'Accept: text/xml' -H 'Content-type: text/xml' ...


0

Alright, problem solved. I'd installed a package called geoserver-geonode. A security "feature" of the package makes it so only layers uploaded through GeoNode can be served up. Since I imported the JSON file through GeoServer's import extension, it was not allowed to be served. So I installed GeoServer and GeoNode packages separately and all is fine. (I ...


0

Update: I found the solution and got a working SLD now. It is important to put the color codes in single quotes for GeoServer to recognize them as strings: <ColorMapEntry color="${env('c4','#FFFF00')}" quantity="${env('high',1)}" opacity="1.0"/> Upon validating I am still getting error messages, the SLD does work nonetheless. When accessing the ...


0

I found the answer by installing geoserver 2.6.0 instead of 2.8.x and everything works fine, also, I should note that the database attribute name that is mentioned in the "datastore.properties" file must not exist in the postgres.


1

Provided that you have mounted the directory on the server and tomcat or which ever user is running GeoServer can read and write to the data folder then it will work. However it will be slow as there will be a network link to traverse for each map.


1

Problem solved. There was a wrong row in the "spatial_ref_sys" table of the SQL Server database, which was referring to an unexisting SRS. I've replaced it with the following row for WGS84 SRS. srid:4326 auth_name:EPSG auth_srid:4326 srtext:GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS ...


1

It depends a bit on what your goal is, with Geoserver (and other mapservers) you are in control of your data, as you provide the services. They do not cost anything (beside the infrastructure). But you have to care about the underlying server (hardware or platform as a service and software, security and so on), probably need an Apache/Ils/Nginx whatever ...


1

Consider the use of Rendering transformation. Check the example Heatmap SLD. with Variable substitution in SLD to pass dynamic values with WMS request parameters.


1

You can use the env function almost anywhere an expression is allowed in your SLD so your example becomes: <CssParameter name="stroke"> <ogc:Function name="Interpolate"> <ogc:PropertyName>VALUE</ogc:PropertyName> <ogc:Literal>-9999</ogc:Literal> <ogc:Literal>#000000</ogc:Literal> ...


2

I'm not familiar with osx and homebrew, but this error typically happens because the JVM is not given enough permgen, you should give it at least 128MB: http://docs.geoserver.org/2.8.x/en/user/production/container.html


2

The GeoServer documentation about cascaded WMS services http://docs.geoserver.org/stable/en/user/data/cascaded/wms.html has a section "Limitations" Layers served through an external WMS have some, but not all of the functionality of a local WMS. Layers cannot be styled with SLD. Alternate (local) styles cannot be used. Extra request parameters (time, ...



Top 50 recent answers are included