Tag Info

New answers tagged

0

I am assuming your data is 16 bits or float/double. GeoServer prior to rendering has to convert this data to 8 bits hence does a local linear contrast stretch that computes local maximum. In a tiled client this might lead to stretching data differently in different portions of the map. In the upcoming 2.8 release we are going to support more advanced ...


0

Instead of <ogc:Literal> <ogc:PropertyName>city_name</ogc:PropertyName>-color </ogc:Literal> You need to use the function Concatenate <ogc:Function name="Concatenate"> <ogc:PropertyName>city_name</ogc:PropertyName> <ogc:Literal>-color</ogc:Literal> </ogc:Function>


0

After applying iant suggestion by posting a bug to Geoserver in the following link Geoserver Issue but the first answer was: This is not a bug, GeoServer cannot predict how large the circle will be since it's attribute dependent. You have to setup manually a rendering buffer large enough to care for all your needs in the layer configuration: ...


0

I found the solution for this problem using an external broker per geoserver node: the only step I missed was to set the var 'connection' of the cluster.properties to TRUE. This field can be found in the web UI in the cluster configuration panel, but it is named "Slave connection". A bit confusing!


1

Finally, iant's answer led me to the goal. For completeness I post what I have done: After creating the datasource, main information on the WFS layers are known to geoserver. So I only had to do POST /geoserver/rest/workspaces/my_workspace/datastores/my_datastore/featuretypes with the name of the WFS layer, I wanted to publish ...


1

You have to create a FeatureType before you can create a Layer (i.e. publish it). If you have already created a test layer then fetch the feature type of that one (like http://geoserver.ianturton.com/rest/workspaces/topp/datastores/bgs/featuretypes/test_uk_625k_mapped_feature.xml) but you should be able to delete quite a lot of that and leave it for ...


0

An easy way of finding GeoWebCache's tile directory is having a look at the bottom of the GeoWebCache homepage:


3

POLYGON((-90.89 46.67,-90.89 46.67,-90.89 46.67,-90.89 46.67,-90.89 46.67)) Looks like WKT. If it is, you can convert features/layers/geojson to WKT using Wellknown or Wicket-Leaflet


0

Make sure GeoServer starts after the DBMS. If GeoServer starts before the DBMS and you do a restart then GS will disable all the DBMS based stores since it won't be able to establish a connection. Having monit around, it might have happeneded that GeoServer got restarted when the DBMS was down. At that point you have to manually re-enable datastores that ...


0

All, When I logged on as administrator, I could enable the datastore (tick the box). Simple solution, everything is back up again. However, I now need to work out how this happened and whether I need to improve security. The store was not disabled by me. Thanks, Ilona


1

One of your datastores (cresh:datazones_totkm2sc7) has failed for some reason (it's off the end of the log you've included) - which may be that you've run out of connections, the network blipped... try restarting geoserver and see what happens if you can't see an obvious reason that that datastore is off line.


1

Finally I managed to run ecw plugin inside geoserver version 2.7.2 Downloaded libecw source from http://meuk.technokrat.nl/libecwj2-3.3-2006-09-06.zip Applied this patch https://github.com/makinacorpus/libecw/blob/master/Source/C/NCSUtil/NCSPrefsXML.cpp.rej Ran ./configure, make and sudo make install commands to build. Override generated libs over ...


1

A simpler approach that might not be giving you exact control is to use the "unit of measure" support. While I haven't tried, give this one a kick (GeoServer specific, OGC way would be quite a bit more verbose): <CssParameter name="font-size">100m</CssParameter> See also the docs for the OGC way: ...


1

From the answer at http://gis.stackexchange.com/a/72016/7515 I found out that a wms environment parameter can be used to get the actual scale denominator: <ogc:Function name="env"> <ogc:Literal>wms_scale_denominator</ogc:Literal> </ogc:Function> Now, the matter is to define a function that maps it to the desired range: map ...


2

GeoServer supports the WMS GetLegendGraphics request. See: http://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/legendgraphic.html


1

Ok, I've figured it out. It is possible to apply an affine transform onto some existing CRS using FITTED_CS. Below is an example of rotation of 60 degrees counterclockwise and movement: FITTED_CS["BPAF", PARAM_MT["Affine", PARAMETER["num_row", 3], PARAMETER["num_col", 3], PARAMETER["elt_0_0", -0.5], PARAMETER["elt_0_1", ...


1

I found out the answer, it was human error. I was using the incorrect "name". Once 'postgis:' was removed the layer was found!


1

You can define a local rotated coordinate sytem as I explained here: Using customized Coordinate System for Archaeological site data Center point and rotation have to be defined in degrees. Your idea of wrapping one projection with another is not defined in PROJ.4. You can try it out, but don't expect it to work.


2

GeoServer indeed tends to swap coordinates on several occasions when using WFS. I couldn't backtrack this phenomenon to its exact origin, only to this post, where it is assumed, this confusion is created by the different axis orientation of EPSG:4326, and CRS:84, which are otherwise identical projections. A possible workaround could be implemented on the ...


0

Since this has not been answered. Here is my own solution which is very simple and works well. The "update" function clears the vector source. The "loader" function, which has been added to the vector source, will then automatically update the features using the url. var vectorSource = new ol.source.Vector({ loader: function (extent, resolution, ...


0

I know this is an old thread. But I recently had the pleasure of encountering the same problem! I tried the provided answer but it did not solve my problem. I was actually just not focusing. When I created the layers from SQl I used the attribute/metadata table instead of the tables that contained the geometry/features. Using the right data source fixed my ...


0

We have had this same issue. And FYI, when you import that shapefile into POSTGIS, you will likely not have an SRID code there as well. What I curiously found, was that when you do a "save as", and choose the correct projection, we were choosing EPSG:4326, QGIS writes a *.prj file, yes, but the prj file does not have any EPSG metadata, authority descriptors ...


0

in config.yaml enable rotation: rotation: true copy arrow image to config dir (beside config.yaml) and add element: - !image width: 12 url: 'file://${configDir}/north_arrow.png' rotation: '${rotation}'


1

Openlayers 3 does not yet have an SLD parser There's an open issue at https://github.com/openlayers/ol3/issues/2954 that you may +1


0

Did you ever manage to solve this? I am trying to figure this out my self, this is the link which I use to try to solve it https://geonet.esri.com/thread/49272 . I will keep you posted if will figure this out.


1

Found a solution. As the java.lang.NoClassDefFoundError indicates, classes where missing. I had to add Apache Commons VFS and Logging (downloaded them here), and now i managed to successfully upload a zipped Shapefile with REST Importer.


0

GeoSolutions.it has gave me a solution that adding "&format_options=CHARSET:UTF-8" to WFS URL and this solves the problem for SHP export.


0

Define a save strategy as follow and add it to you map: var saveStrategy = new OpenLayers.Strategy.Save(); Modify the features and then call: saveStratefy.save();


0

you can use image pyramid for raster files(geotiff) not vector files(shp).geoserver is good for that.for using geoserver your dedicated or vps server minimum ram must be 4g.ram 6g is good and 8g is best. for list of layers you can use postgis for that. if you don't like geoserver you can add them to postgis server and publish with openlayers (javascript).


0

alternative to googledrive is aws bucket! this tutorial: S3 Bucket Mounting as a File System in Linux using S3fs and S3fuse this is good,easy management,low price an fast especially for geoserver tiles(geoserver)


2

As user30184 said, the importer extension has been designed exactly for this job, and will convert the data into the format of the chosen target store (e.g., will import the data into postgis or oracle for you). WFS-T is more geared towards single feature editing than "mass import" and can only handle GML anyways.


3

The same max render time is applied to any WMS request. When doing meta-tiling the internal GeoWebCache makes a single WMS request, which is subject to the max render time. So, if you want to render larger meta-tiles, you will have to increase the max render time accordingly.


1

GeoServer can deliver XYZ coordinates if the source data contains Z values. You can make a try by converting the demo shapefile "states.shp" into XYZ shapefile with GDAL: ogr2ogr -f "ESRI Shapefile" states_3d.shp states.shp -nlt MULTIPOLYGONZ Next make a new store and layer from this states_3d shapefile and make test request with WFS ...


2

function getStyle(feature, resolution){ var style; if (feature.get('field_6') === '4') style = new ol.style.Style({ image: new ol.style.Circle({ radius: 6, fill: new ol.style.Fill({ color: 'rgba(20,150,200,0.6)' }), stroke: new ol.style.Stroke({ ...


1

If you read the WMS Spec you will see how to set the format of the error messages that the server sends you. In this case it is clearly saying that the number 256: is invalid. Somewhere you are sending a request with that number in it, check the URL. For more information turn up the logging verbosity in GeoServer and it will send you back more details, or ...


0

To be short, this effect is due to the fact that the geotiff is stretched to 8 bits before rendering ( I am guessing you are using JPEG as an output format). The easiest thing to do is to apply a contrast stretch upfront to bring the image to 8 bit and then publish to GeoServer. This is also going to be more performant. FYI in GeoServer 2.8 we are going to ...


0

The easiest way to combine the layers and still cache them using GeoWebCache is to use a LayerGroup which acts exactly like a layer in OpenLayers but is built up from the 3 layers in GeoServer. This is only more efficient if your client always wants to see all three layers.


0

Ok, so I hope this helps anyone else that has had the same problems as I did for whom the mentioned answers did not work... The solution was to manually stretch the bounding box max and min X/Y coordinates. The ones computed from the data put some of the points right on the edge, stretching the bbox ensured that the features with their icons were rendered ...


0

Do you want it dynamic, as in, you can change which of the three to view client-side? IF so, you can form up a request that combines 1,2 or 3 layers into a single get request, and OpenLayers can handle this, I reckon. But, do you need to? Try it the simple way first, and then if you are experiencing performance issues, look into combining it. To answer ...


0

Yes. Check out MapProxy, which is capable of combining multiple tile sources, among lots of other things. Really cool app. I can't speak authoritatively on efficiency with this approach, but your app is only making one call instead of three. That seems more efficient, right? You might even find that it's preferable to handle caching with MapProxy instead. ...


2

You can do this using a style function (see also the OL3 Example on Earthquake Clusters for a more detailed example of a style function - or search this site!). In your case, partial code would be along the lines of: var myStyleFunction = function(feature, resolution){ var field_1 = feature.get('field_1'); if (field_1 == "PENYEDIA AKOMODASI"){ ...


0

It turns out that the versions of the drivers, SQL and geoserver weren't compatible. So I had to do a bit of reading to find out what drivers were required by my environment. Once that was done, it was a simple matter of following the instructions.


1

OL3.8.2 only supports WFS 1.1.0. See docs: ol.format.WFS Feature format for reading and writing data in the WFS format. By default, supports WFS version 1.1.0. You can pass a GML format as option if you want to read a WFS that contains GML2 (WFS 1.0.0). Also see ol.format.GMLBase which is used by this format.


0

You should be able to do this using open source technologies and without resorting to so much Java if you dont want to. Check Leaflet for showing a map/geometries. (JavaScript) You should still be able to use GeoServer through its API's. A webapp can have HTML/CSS/JS and it should be possible to have PHP in there too. Also a personal suggestion, I would try ...


1

Geoserver is not mandatory. If you need a WFS or WMS or WMTS or WPS or CSW or WCS server for your application needs, it is an option, but there are other options for all of those, in open source and proprietary forms. If you are looking for open source options, many are listed at OSGeo - see the project links under Web Mapping and Metadata Catalog headings. ...


2

Ciao, a few things: It looks to me you are mostly rendering vector data, hence JAI does not helpat all If you are mostly serving vector data with complex styling rules, I am hoping you are using a DBMS rather than shapefiles especially for OSM. If not at global scale GeoServer will have to load all the shapefile into memory and then filters as we only ...


0

Meanwhile I found a solution to this problem (there might be others of course), using variable substitution in the WMS getMap request. At first, create the static elements of my style as desired. I prefer using CSS Styling over writing the sld file directly but this is up to you. Then, open the style in the Style Editor in GeoServer's Web Interface and add ...


1

The quickest and easiest solution is to not tile your labels layer. However if this is not an option for you then read on. In general GeoServer tries very hard not to draw labels that won't look good (for some value of good) - i.e. where they overlap, or fall off the side of the map as for most people these look ugly. However because the developers' idea of ...


3

Your Insert request contains an feature that doesn't match your Schema which is expecting the Point attribute to be called the_geom. You don't get an error because you have marked that feature as Nillable (or optional). <xsd:schema xmlns:gml="http://www.opengis.net/gml" xmlns:opengeo="http://opengeo.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...


0

First of all, you are using a Polygon symbolizer (for vector data) on a GeoTiff (raster data), which won't work. On the raster data, if it is a single channel raster, you GeoTiff will have a value that represents NoData (usually a very large negative value like -9999 - QGIS can tell you what it is). From your pictures, I believe you want NoData to appear ...



Top 50 recent answers are included