Tag Info

New answers tagged

1

it depends which Beta Version of OL3 you are using. On the latest Version v.3.0.0 – gamma.2. there is no: new ol.source.SingleImageWMS The source name is: new ol.source.ImageWMS http://ol3js.org/en/master/apidoc/ol.source.ImageWMS.html Try to change that, maybe it solve the problem. Thank you for feedback.


-1

Miracle of miracles, all problems went away when I used Glassfish instead of Tomcat/Jetty.


0

Sorry for the late reply but there is also the leaflet-vector-layers plugin which has support for postGIS services http://jasonsanford.github.io/leaflet-vector-layers/demos/postgis-restful-web-service-framework/ By the looks of it you can filter the service. I've used this plugin for ArcGIS services and it's been really good. Hope that helps, Rowan


0

Try add third parameter to paste: self.im.paste(im, box, im)


2

You've switched the order of your lat,lon. See the documentation for ST_MakePoint() and you'll see that it requires: ST_SetSRID(ST_MakePoint(lon, lat),4326) Then, after to make your changes, try verifying: SELECT ST_AsText(location) FROM *tablename* LIMIT 10;


0

Figured out it's a styling problem. I'm using a custom RasterSymboliser style to show bands 3,2,1 and not (1,2,3). By doing that, the alpha channel is not respected and I get no transparency. This post talks a bit about this issue: Setting transparency in an SLD file for a 4 channel GEOTIFF I tried setting nodata value to each pyramid granule but that did ...


2

This is probably an artifact due to tiling. The layer preview map defaults to a single tile, but I'm guessing your openlayers map uses tiling. Geoserver insists on labeling every tile. GeoServer doesn't know that each request is for a tile in a larger map, so it treats a tile as a complete map and dutifully applies a label to it. So basically, if a road ...


1

I think so, but I would check this guide for more information: http://geoserver.geo-solutions.it/edu/en/clustering/load_balancing/microsoft_IIS.html Personal note, expose them on port 80 rather than 8080. Many close environmente won't let people access a link with port different from 80. Simone.


0

What about file system permissions for your data directory? Is your servlet container like Tomcat or jetty able to read AND write files in the directory? I had the same error using linux. After correcting the permissions for that specific directory (chown -R tomcat7:tomcat ) everything was fine.


1

You cannot have different tomcats listening to the same port. Said that, it is good to have separated tomcats for big java apps, just because if one of them have problems like running out of memory, you can restart that app without having to bother the other app. Running out of memory is common for certain use cases on geoServer. So, it really depends on ...


1

The quickest way to do this is https://mangomap.com, you should be able to get the whole thing set up in about 10 minutes without writing a single line of code. I'm the CEO, just give me a ping on chris@mangomap.com if you have any questions.


-1

Ok, my assumptions in 2 were incorrect. You can use mapbox.js. The end result will be a bit different, I believe - the markers themselves will be a static raster layer, but they'll be clickable. The spec that makes large scale interactivity work is https://github.com/mapbox/utfgrid-spec It's implemented clientside in ...


0

I'm not sure this is the appropriate answer, but I wanted to point out that setting up the proxying in nginx is very easy. Let's say Geoserver is running on port 8080, and your web server (nginx) is running on port 80. It's as simple as adding: location /geoserver { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:8080; } to your ...


1

Already solved, Just edit and add new geoserver url in : ../suite/geoexplorer/app/template/composer.html add this custom geoserver : > customserver: { url: "http://yourcustomdomain/geoservernotinroot/wms", title: "yourservername" }, *Dont forget to set Declared SRS in each your geoserver ...


1

Install Java, Git, Ant and Maven are not enough, I've succeed build that geoexplorer.war by using some git url change. Use the branch 4.1 and build using "mvn install" don't forget to build dependencies first. I assume you have installed Git, Ant, JDK (NOT JRE!!), and Maven. Clone it, type this in youre command prompt (run it twice to make sure no file ...


0

Install Java, Git, Ant and Maven are not enough, I've succeed build that geoexplorer.war by using some git url change. Use the branch 4.1 and build using "mvn install" don't forget to build dependancies first. I assume you have installed Git, Ant, JDK (NOT JRE!!), and Maven. Clone it, type this in youre command prompt (run it twice to make sure no file ...


1

Your problem is that WFS 1.0.0 does not support reprojection of the coordinates. If you switch your request version to 1.1.0 then GeoServer will take your srs into account.


0

I have encountered your problem previously and I managed to fix it using this method which I hope works for you too. I added my file to ArcMap and, while the overlap is fine, I exported each layer, and in the export dialog I selected Use Same Coordinate System as the Data Frame. I then added the exported layers again to GeoServer.


0

Here is the way I do it. Two Base Layers, base and mq are defined and assigned in a global scope map.events.on({ "zoomend": function (e) { if (this.getZoom() < 9 ) { if (mq.visibility == false ) { mq.setVisibility(true); base.setVisibility(false); ...


2

The Docs Page for the OpenGeo Suite QGIS plugin , has a link titled Support, which leads to the Issue tracker on the github reprository. I suggest that you open a new Issue on the Issue Tracker for this Problem.


0

Possible options: .prj file Create a .prj file which contains the EPSG:4326 that GeoServer does recognise. You can get this from the Demos -> SRS List admin page. Name this .prj file the same as your shapefile and if necessary overwrite the one that exists. Force declared When adding the layer, set the "Declared SRS to 4326" and the SRS Handling to ...


1

If you have a table with a row for each combination of year and point ID, then you have a many-to-one relationship ... multiple rows (years) for each point. This is always a pain in GIS because you have can't visualize multiple related rows very easily. If you have few enough years you have to deal with, you can work around the problem by creating a column ...


0

I had a similar issue (java.lang.nullPointerException resulting in pink screen in layer preview), although I was not able to preview the layer at all. The cause was that the layer store was configured without a workspace. I was able to fix the problem by removing and rebuilding the layer store within a valid workspace. See this post from the Geoserver ...


1

I've got it working using: fonts: - 'C:\Geoserver_data_dir\printing\arial.ttf'


2

If you use geoserver's Shapefile Output on the WFS service, it doesn't matter what the source of the data was. It doesn't matter whether the data is coming from Shapefiles or PostGIS or something else. Let me try to provide answers to all your sub-questions. It doesn't matter about how big the table was, or how many features it contained, Geoserver can ...


2

When performing the attribute join in ArcMap, the joined information (that you can see in the attribute table) is stored within a map document (.mxd) file. In order to save joined fields in the new shapefile (so it will have fields for each year you need), you have to export the joined layer from the table of contents. The result shapefile exported on the ...


0

Try defining the resource first and pulling the layers from it: myResource = cat.get_resources(store='storeName', workspace='workspaceName') layers = cat.get_layers(myResource)


1

Could be - it would be useful if /geoserver/rest/layers returned the workspace qualified names, such as: <layer><name>mylayer</name><atom:link rel="alternate" href="http://localhost:8080/geoserver/rest/layers/WK1:mylayer.xml" type="application/xml"/></layer> <layer><name>mylayer</name><atom:link ...


0

Try using window.onload=function(){ init(); } instead of body onload=init(), because window.onload waits until all resources has loaded. Onload triggers when the html (without resources) has loaded.


0

By default, It will show both the polygons without any merging or averaging , and the result of GetFeatureInfo on the WMS service will return results from each of the polygons.


0

There was a 4.1 upgrade bug found that we are trying to address. Unfortunately I suggest you back up your existing configuration, uninstall previous versions and re-install 4.1.


0

You can use the same layer in different layer groups as long as (a) the layer group is global (ie not local to a workspace) or (b) the layer is in the same workspace as the layer groups.


0

You can store images in postgresql using the following function : create or replace function bytea_import(p_path text, p_result out bytea) language plpgsql as $$ declare l_oid oid; r record; begin p_result := ''; select lo_import(p_path) into l_oid; for r in ( select data from pg_largeobject where loid = ...


2

We do not use GeoServer Authentication, but we do use an ASP version of that Proxy Script we wrote ourselves with some tweaks. Our script handles the authentication via a Hashtag we included in the WMS Client Calls. The HashTag is set into a database at the Application Level User Login and removed at LogOut or Timeout. It is sent to the client via Ajax ...


0

It is located in a security file. Details from here Logging In In order to change any server settings or configure data a user must first be authenticated. Navigate to the upper right hand corner to log into GeoServer. The default username and password is admin and geoserver. These can be changed by editing the security/users.properties file ...


0

pycsw-admin.py does not currently support proxy. You can work around this with: curl -x <[protocol://][user:password@]proxyhost[:port]> -X POST -d @cat.xml http://localhost/pycsw/csw.py If this still gives you errors then this means that the proxy information has to pass through pycsw to be able to access the resource to be harvested. If you open a ...


1

You do not need to recreate the datastore every time. It is just a pointer to a location on your disk. In the case of shapefiles, you can simply copy the new ones into the relevant folder and (assuming the files have the same names and are already referenced as layers in Geoserver), the update is done (without touching Geoserver). Given the number of ...


0

It seems as thought recode should do exactly what you want. You'll need two recode functions as you need to convert your color column into a stroke element and the line style column into a dash array. See the transforms tutorial for full syntax details.


1

Thanks to @Branco suggestion, I investigated qGIS and I used it's style editor to create my road style. What is interesting is that when I exported style to SLD it generated this PerpendicularOffset tag for LineSymbolizer ... I never knew that tag exists... and this is the solution <se:LineSymbolizer> <se:Stroke> ...


0

In general in SLD to draw two items for a feature you need two rules. This is complicated in TextSymbolizers as the label placement system tries hard to avoid overlapping labels (which is what most people want most of the time) as you have found out. The easiest fix for your problem is to manually turn label conflict resolution off using the following vendor ...


0

i dont know the side effects but it fixed, when "olTileImage" override in style.css file that incoming from openLayer.js img.olTileImage { -webkit-transform:inherit; -moz-transform: inherit; -o-transform:inherit ; -ms-transform: inherit; transform:inherit ; -webkit-backface-visibility: inherit; ...


0

The response shows that the WMS has a login requirement. What happens when you try to invoke a GetCapabilities operation against the WMS? i.e.: http://localhost:8082/geoserver/wms?service=WMS&version=1.1.1&request=GetCapabilities You might also want to try some of the methods at http://pycsw.org/faq/#how-can-i-make-csw-post-xml-requests to further ...


0

You could try styling it the way you like in qGIS and then exporting the SLD and using it in GeoServer. Check out this article and try it out since I find it much easier to use than styling in the SLD itself or through GeoServer's interface. http://www.camptocamp.com/actualite/qgis-and-geoserver-creating-styles/


1

Best way to install gsconfig is via PIP, (PIP is used to install Python modules) To install PIP, go here http://pip.readthedocs.org/en/latest/installing.html Save the get-pip.py script and then install PIP by running python get-pip.py This will install PIP. You can then install gsconfig using PIP pip install gsconfig as documented on the boundless ...


1

As far as I know this is not supported. Ask from geoserver-users mailing list first and make a feature request to Geoserver jira because it feels like a useful addition. Meanwhile you can use the standard OGC filter instead <Filter> <Intersects> <PropertyName>the_geom</PropertyName> <gml:Point ...


1

This is already an old question, but I haven't found many example documenting this on he Web. On GeoServer version 2.5.1 the following should work (it should also work with older versions). : Example XML <layerGroup> <workspace>workspace</workspace> <name>014531_layer_group</name> <layers> ...


0

I think that the OpenLayers WPS client is not up to scratch. Trying it myself with this code <script src="http://localhost:8080/geoserver/www/OpenLayers-2.13.1/OpenLayers.debug.js"></script> client = new OpenLayers.WPSClient({ servers: { wps_test: 'http://localhost:8080/geoserver/wps/' } }); gs_count = ...


0

This is an extension of the usual way of drawing cased roads, first draw a wide black line (say 5px) then draw a grey line (4px wide) and then a dashed white line (3px wide) and then a grey line (2px) wide. This will be quiet slow but GeoServer will try to cache as many of the features as it can so it shouldn't be too bad but don't turn this on a full map ...



Top 50 recent answers are included