Hot answers tagged

5

Yes, it's pure xml validation against the SLD XML schemas. However, it's against the extended SLD schema that GeoServer has internally, e.g.: http://demo.geo-solutions.it/geoserver/schemas/sld/StyledLayerDescriptor.xsd So you can take this schema and use a command line validator against the GeoServer data directory I believe


3

Make sure that you are using an EPSG code of http://www.opengis.net/gml/srs/epsg.xml#4326 instead of epsg:4326 so that the X/Y lat/Lon mapping is fixed rather than variable as it is with epsg:4326. Then make sure you are encoding the geometries that you send in the same order as you have told GeoServer to expect them. See the GeoServer documentation for a ...


3

While it's possible and common to publish views in GeoServer WFS, the access is limited to read-only usage, you won't be able to edit them. GeoServer normally marks views as read only because it cannot find a primary key in them (pk is mandatory to generate the gml:id and to support featureid filters). To make the view editable, assuming you can find a ...


2

You need to set the http proxy variables either using a system environment variable or through a JVM property set in catalina.sh. There are detailed steps on how to do this on the WFS Store page. In the past there have been issues with the HTTP COnnection pooling not picking up the proxy variables so if it continues to not work try unclicking the ...


2

As you can see in the documentation this is achieved by applying two (or more) marks to the point. So for your example something like: [usage='example'] { mark: symbol('square'), symbol('circle'); } [usage='example'] :nth-mark(1) { size: 16px; fill: yellow; } [usage='example'] :nth-mark(2) { size: 14px; fill: red; }


2

It is dependent on the tool you are using for the POST, but there are examples in the GeoServer documentation (e.g. http://docs.geoserver.org/latest/en/user/security/tutorials/digest/index.html). In curl, it is -u myusernamer:mypassword, in wget, it is --user myusernamer --password mypassword (same convention as in the question). In the browser, it will ...


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


2

I solve this option using VendorOption <sld:VendorOption name="polygonAlign">mbr</sld:VendorOption> <sld:VendorOption name="goodnessOfFit">0.3</sld:VendorOption> <sld:VendorOption name="partials">true</sld:VendorOption> --> <sld:VendorOption name="autoWrap">80</sld:VendorOption> ...


2

Layers published as sql views are not editable, you have to publish them as normal tables instead


2

The reason for the error is most probably that the geometry type of the WFS feature type is defined to be MultiLinestring or MultiPolygon, but QGIS it trying to insert simple Linestring or Polygon. You can check the WFS geometry type by making a DescribeFeatureType request. For example ...


2

Usually you draw a second layer over the top of the map with a different style and a filter that makes your selection specified in the CQL filter that goes with the selection layer.


2

For GeoServer 2.8.x you can use compositing to achieve a "inner stroke" effect, see here: http://docs.geoserver.org/2.8.x/en/user/styling/sld-extensions/composite-blend/example.html


2

That depends on the authentication filters setup in your GeoServer instance: http://docs.geoserver.org/latest/en/user/security/auth/index.html If you have it configured as out of the box, you can add HTTP basic authentication headers: https://it.wikipedia.org/wiki/Basic_access_authentication Of course, best use that only along with SSL encryption to ...


1

I already found an answer myself: I had to use x-www-form-urlencoded key-value data.


1

solved myself: added geometryName: "geom" in the WFS constructor. (Still don't know why this is necessary for this layer only).


1

I solved this by using the XYZ layer type. This can take the optional path_format which I configured like this: path_format = '${z}/${x}/${y}' and that builds the proper URL.


1

You can use <PerpendicularOffset>5</PerpendicularOffset> A positive value places the offset line on the left of the line. In the example above the offset is 5 pixels. You can then specify the line thickness, so if you want an inner line 10 pixels wide and touching the perimeter, I would try setting the offset to 5 and the line thickness to 10. ...


1

I don't believe it's doable out of the box given than your shapefile still contains all the styling bits as a JSON string inside an attribute. Either find a way to split them into separate columns with a further conversion, and then you'll be able to follow Ian's advice, or write a new filter function that can parse JSON and extract properties out of it, ...


1

You may need to create and exception rule only applicable to getMap requests. look at this reference link: http://docs.geoserver.org/stable/en/user/services/wms/reference.html https://github.com/geoserver/geoserver/commit/a5985f42bd9ebe985310ae83252b4cb32e45fb1b


1

You can use a maxExtent for your map. In combination with a 3rd-party background-layer this can prevent the problem you described. var extent = new OpenLayers.Bounds(-2003750.34, -2003750.34, 2003750.34, 2003750.34); map = new OpenLayers.Map("map", { maxExtent: extent });


1

The simplest answer is to use a CQL filter in the WMS request to restrict which landuse types are drawn on the map. There is a full tutorial available to get you going. However in your case it would be something like: http://...../geoserver/wms?....&CQL_FILTER=landuse='grass' when you want to filter by grass or more complex options like: ...


1

In the past I've overcome this by replacing the whole where clause with a parameter, and then set the default to 1=1 SELECT * FROM areas WHERE %query& you can then supply the full clause e.g. landuse = 'grass' within the parameter declaration in the URL. I appreciate this is a slightly unsatisfactory, and there would be more elegant solutions ...


1

Figured out the issue. The URL was wrong instead of it being http://localhost:8080/geoserver/cite/wms it should have been http://localhost:8080/geoserver/wms


1

I would go with something like: <ogc:Function name="in"> <ogc:PropertyName>name</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> <ogc:Literal>11</ogc:Literal> <ogc:Literal>62</ogc:Literal> <ogc:Literal>42</ogc:Literal> </ogc:Function> Alternatively generate a new ...


1

You can have array columns in a table. For your example table the create statement would be along the following lines. CREATE TABLE spatial_table ( name VARCHAR(20), timestamps timestamp[], the_geom geometry )


1

I got the same problem, and try several hours to uninstall and reinstall my geoserver. Later on I found this geoserver Web archive: http://docs.geoserver.org/stable/en/user/installation/war.html. I follow the instruction and everything works out. Good luck!!


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.



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