Tag Info

New answers tagged

3

Polygon layers by default do not stay the same size when zooming further out because they represent an area. The only aspect that you will see for smaller polygons when zoomed out is just the outline. If you still want to represent the feature when zoomed far out one option would be to add a <PointSymbolizer> within the sld that will turn on at x ...


0

Check for ExceptionReport in the XML response. http://www.ogcnetwork.net/node/198


0

If you want to set the height of the map-div to 100% you should use percentage for the parent Elements, too: Just try to add this to your style-section: html, body { height: 100%; } More info: http://webdesign.about.com/od/csstutorials/f/set-css-height-100-percent.htm Edit1: Just tested your javascript with my own WMS-Service and it works fine. ...


0

Never got a reply so I will help the community by answering my own question and hopefully this might help someone someday. GeoServer Data Stores (select your Store Name) Edit Vector Data Source -Support on the fly geometry simplification (check-box)


2

Definately it can be done, if you have styled your layer with the correct symbology then geoserver will just render that sld. On the question of it appearing in getfeature info look at geoserver templates which allows you to customise the how your get feature info behaves


0

To POST, you need to call http://{print url}/pdf/create.json and post the json content and you will receive the response like: { getURL: "http://{print url}/pdf/6013561557039431559.pdf" } from the getURL you can download the PDF file.


0

The GPS data format does not know polygon features (only points and lines), so you will not be able to import and edit them. I suggest to use a shapefile format or spatialite database for off-Postgis-use.


1

You say you're getting code from that site, but you're creating new code with errors in it. The error message you're getting here is 'AttributeError: 'str' objetcs has no attribute 'workspace'' This is because you pass in an argument to the method you've created: publish_featuretype("self" name="Layername", store="store_name", native_crs="4326", ...


0

You can add a layer without workspace so you will not be obliged to use a workspace prefix. The wokspace is very usefull when you have layers which will not interact between them. An when you have to name them with the same suffix.


3

I'm guessing, but I'm going to say it's finite. But really, you should ask how many users do I need as a realistic max, and can GeoServer handle that. I reckon that number is pretty high, but maintenance of users might be tricky. Asking if a software product can handle an infinite number of users is a pretty vague question, really.


0

If you accessing the geoserver url you can try setting up a wms layers in qgis as http://localhost:8080/geoserver/wms? Which gives you access to all wms request in your geoserver config. Setting it to use http://localhost:8080/geoserver/GIS/wms will give you access to wms layers in your. Work space. Save your project with these two layers and open the qgis ...


0

The URL reads the value you entered as the "URI" when you created the workspace in GeoServer (You are accessing your workspace). Depending on the URI you gave to the workspace,the URL changes. The GIS in "GIS:pipelines" is the name of the Store where your layer is contained.Also the Pipelines is the name of the layer. The structure of accessing data in ...


0

Here's an example how you can parse WMS Capabilites with jQuery to get the bounding boxes and some other information about layers contained in the WMS: var layers = []; $.ajax({ type: "GET", url: yourWMSUrlHere, dataType: "xml", async: true }).done(function (data) { $(data).find('Layer').each(function (i, layer) { ...


1

You need to edit the config file (see http://geowebcache.org/docs/current/configuration/layers/howto.html#how-to-configure-layers for details of where that is), you then need to find the wmsLayers section of the document and within that there should be a gwc:WmsUrl element that you can change.


0

Here's the basic code for the handler. Additionally I would read a cookie from the context.Response object to identify the user and check that the request has come from a valid domain. using System; using System.IO; using System.Net; using System.Net.Cache; using System.Web; namespace Web { public class TileAsyncHandler : IHttpAsyncHandler { private ...


0

I found solution and may be it will help someone ... For asynchronous request you need to add this attributes: storeExecuteResponse=true status=true GET request example: ...


0

I know you post this question from along time but i'm just solve the problem. I faced the same problem myself and i tried many solutions that discussed here or in other forums and finally i managed to solve the problem of enabling the Cross Origin in Geoserver. After many trials i discovered that the solution is pretty simple following the exact steps that ...


0

I faced the same problem myself and i tried many solutions that discussed here or in other forums and finally i managed to solve the problem of enabling the Cross Origin in Geoserver. After many trials i discovered that the solution is pretty simple following the exact steps that found in the Jetty webpage Jetty Cross Origin Filter. But with a small ...


0

I faced the same problem myself and i tried many solutions that discussed here or in other forums and finally i managed to solve the problem of enabling the Cross Origin in Geoserver. After many trials i discovered that the solution is pretty simple following the exact steps that found in the Jetty webpage Jetty Cross Origin Filter. But with a small ...


2

The easy way I use to set up styling is to load your dataset in QGIS and style it with that. Use only simple style features like colour and width and do it on a single attribute. The save that QGIS style as SLD, and copy paste that XML into GeoServer's style dialog. Trouble shoot that a bit to make sure it all came through, and you're good to go! You do ...


1

I think you are mixing up a couple of things. When you install Geoserver, it comes with a lite distribution of OpenLayers. That is used to preview the data once you publish some. But this functionality is only suitable for previewing, and not as a production front-end. If you want a Production quality front end, you need to develop that yourself. You can ...


1

Found it thanks to iant's comment... http://localhost:8080/geoserver/rest/about/manifest.xml?manifest=gs-gdal-.*


2

You can use both options. For Option a) you don't need to create a specific SLD providing the image is RGB. GeoServer will pick the channels automatically, if you do indicate them separately you might cause unnecessary processing. Option b) requires less processing and should work fine but it might be slightly slower since you will do the transcoding from ...


0

Create your style using the SLD tool from geoserver. That why it is there ! U can also use QGIS to generate the SLD (SLD4raster) see plugin Also if you tiff file is big u can use the geoserver mosaic plugin mosaic


0

OK fixed - I had to change the workspace URI to http://www.opengis.net/wfs (I was under the assumption that it was supposed to be unique identifier being a combination of your server address/workspace?) Secondly I had to set the SRS handling to 'Keep native' After those two changes the WFT-T successfully updates - 9 months trying to figure out this!!!!


1

This will not work because of the same origin policy. Use a relative url (ProxyPass) or JSONP instead. Also check out the vector-wfs example in OpenLayers 3 (but this uses a BBOX strategy). Also note that ol.source.GeoJSON will be removed with version 3.5.0 and you should use ol.source.Vector with a format instead.


1

How about you change it in your WFS connection? Set that up in QGIS, I think it will work if you just go http://webaddress/geoserver/wfs?


0

I work round this by copying the SLD files into the styles folder and then using REST to add the style to GeoServer: payload="<style><name>$name</name><filename>$name.sld</filename></style>" curl -f -s -u admin:geoserver -XPOST -H 'Content-type: text/xml' -d "$payload" http://localhost:8080/geoserver/rest/styles


0

So I finally found the solution to this problem. You have to override the spatialReferences array of the WMSLayer object right before adding it to the map. wmsLayer.spatialReferences[0] = 3857; map.addLayers([wmsLayer]); This worked with a layer using EPSG:3857 and another layer using ESPG:4326.


0

I was able to fix the problem, and here's what was happening: It turns out there was nothing wrong to begin with, the layer was displaying exactly as I set it, and that was the problem. Because the layer above had such closely-packed grid polygons, I set the style to not draw any borders, otherwise when zoomed out you would just see a slew of black borders, ...


1

You are asking GeoServer to pull all of the vector data needed to draw the map (which could be a lot) over a slow network for every tile it draws. This is unlikely to ever be fast enough to be useable. If this was me I would set up a system something like: DBServer GeoServer GeoWebCache Network cascading GeoServer GeoWebCache Users To avoid sending ...


2

If you style your polygon with a point symbolizer it will be displayed by a point. So all you need is two symbolizers (one point, one polygon) in a pair of rules with scale constraints on them. EDIT: Here's a simple SLD example: <FeatureTypeStyle> <Rule> <MaxScaleDenominator>500000</MaxScaleDenominator> ...


2

I'm not aware of a point/polygon geometry so you will have to publish two layers. I've done this same effect before adding the two different layers into a layer group and using min/max zoom level scales on each sld file so when zoomed in you see the polygon layer and when zoomed out only the centroid points show.


0

Currently this can't be done natively, as far as I know. The thread here: Converting ArcGIS layer style to Styled Layer Descriptor (SLD) file? has some info on getting the styles from ESRI lyr to a sld, which is basically what you want, but it's not very smooth (or cheap for arc2earth). I think a more elegant solution is waiting to be developed.


1

The OpenLayers demo requests a single tile so there's no tiling issues to work around. When individual tiles are requested, as in the case by Leaflet.js, GeoServer renders each tile individually without knowing about the other surrounding tiles. This is most often run into when labels show up for a large feature once in each tile, but your symptoms looks ...


0

At first, I always resaving stores where layer is located, and after that - reload feature type of layer.


0

Try issuing a full reload in the GeoServer status page


2

That site looks like it has been built using the web mapping application builder software called Weave by Cohga: Weave is a business integration framework for rapidly combining disparate information systems in an easy to use environment. It is based on Open Systems technology and is independent from vendor-specific technology and proprietary ...


1

Unfortunately, I have not found a method for creating SLD files in ArcMap for GeoServer use. There are some alternative app. options: Udig QGIS GeoExplorer GeoServer admin SLD editor


1

This problem was caused by not correctly uploading shapefiles into a MS SQL database with the SharpGIS Shape2SQL tool. The Shape2SQL tool sets a constraint on the STSrid property of the geometry field (geom.STSrid) when it creates a database table. If you look at a table created by Shape2SQL in Microsoft SQL Server Manager, you will see a constraint called ...


-1

Figured out the issue! IE 9 does not play well with OpenLayers 3!


1

Did you enabled geoserver JSONP settings in web.xml /geoserver/WEB-INF/web.xml contains settings like this: <context-param> <param-name>ENABLE_JSONP</param-name> <param-value>true</param-value> </context-param> You should change ENABLE_JSONP as true


0

I gave up trying to find a maven repository to resolve the classes that geoserver's example POM file shows as well as a general way find either geotools or geoserver's correct current maven repository information when I ran into monstrosities such as this because I did not want to download / develop against all of geoserver's sources. I ended up downloading ...


2

I have used WFS-T through GeoServer to edit data on a MS SQL server before. It was through a Leaflet.js plugin, not through QGIS, but my experience should at least confirm that it works. I remember that there were some field types that GeoServer couldn't edit though, including UUID fields and possibly some types of Geometry (maybe it was Geography or ...


0

I guess your map is tiled, and GeoServer by default won't paint partial labels, those crossing tile boundaries, as there is no guarantee the other half will be visible. You can force them to appear like this: <VendorOption name="conflictResolution">false</VendorOption> <VendorOption name="partials">true</VendorOption> You will ...


3

You'll need to enable Transactional in the global WFS settings in the Services section of the side menu. Be careful with the workspace-specific service settings because they don't usually do what people think they do. Those settings only come into effect when you use the virtual endpoints such as http://localhost:8080/geoserver/myworkspace/wfs, but they have ...


0

here you can see a preview of soi (ags 10.3.1 in java): https://github.com/mraad/ExportImageSOI In this code there is override to handleRESTRequest. If there is a request of export and image the function call custom doExportImage for watermark otherwise follow the request from client.


0

I solved this by adding a database trigger which modifies attempts to update the view's data (which is not possible since it is read-only) into updates to the source data. Like so: CREATE OR REPLACE TRIGGER AREA_INSERT INSTEAD OF INSERT ON TESTVIEW REFERENCING NEW AS n FOR EACH ROW BEGIN insert into area (id, some_other_id, geometry) values (:n.ID, ...



Top 50 recent answers are included