Tag Info

New answers tagged

0

Finally I used geo-fence, a geoserver plugin for security management. It has a Restful API for adding,managing,ect of users,roles,rules,....


1

You can use Tilemill to create a cartocss style which you can then use with Mapnik (might need to convert to Mapnik XML). GeoServer supports SLD styles which you can create with many GIS tools, for example QGIS or OpenJUMP.


0

I was looking for a very similar thing (but with polygons) and artwork21's answer here directed my research. You can also do the same thing using Geoserver's CSS Extension as per this alternative solution: * { stroke: #800000, #008000; stroke-geometry: [the_geom],[offset(the_geom, -0.005, 0.005)]; stroke-width: 8, 10; stroke-linejoin: round; ...


1

You have probably hit a side effect of heavy work what was done with GeoServer GetFeatureInfo to return info from what is exactly rendered on the map. With the style used in your map there is nothing rendered between the markers. You can have a try by adding a buffer vender parameter into your GetFeatureInfo request. The default value is 3, try to add ...


1

To get two labels you will need two textSymbolizers one for the start point and one for the end point. So it becomes: <TextSymbolizer> <Geometry> <ogc:Function name="endPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <LabelPlacement> ...


0

Besides the suggestions that @PolyGeo and @unicoletti already provided, I found the Processing part of the OpenGeo Suite documentation to be the most helpful for starting to use WPS. The out-of-the-box WPS processes available with the GeoServer WPS extension might not fulfil all your needs. In that case, you will have to develop your own WPS processes and ...


0

I found the solution : var geojsonFormat =""; var vectorSource = ""; var cqlFilter = 'INE_MUN=' + $("#bucador").val() ; alert (cqlFilter); var geojsonFormat = new ol.format.GeoJSON(); var vectorSource = new ol.source.Vector({ loader: function(extent, resolution, projection) { var url = ...


3

Definitely that's not an obvious way of loading a WMS. This is what have worked for me (QGIS v.2.8.1): urlWithParams = "url=http://maps.itu.edu.tr:8082/geoserver/sf/wms&format=image/png&layers=sfdem&styles=&crs=EPSG:26713" rlayer = QgsRasterLayer(urlWithParams, 'DEM', 'wms') rlayer.isValid() # Returns True this time ...


0

I would look at an existing open source solution, perhaps either GeoNetwork or GeoNode. GeoNode is particularly easy to install, which might be important if you're the one who has to install and support it. For easy install instructions, see http://geonode.readthedocs.org/en/latest/tutorials/admin/install/quick_install.html GeoNetwork is perhaps a better ...


0

Have you try Lizmap? Lizmap is a very easy to use geoportal, very easy to customize and I think is PHP. You can easily create a websig through qgis > lizmap. http://docs.3liz.com//en/


0

If the sql command: Select uri_placeinst, ST_AsText(coord_placeinst) as coord_place_inst From public."NewInfoGeometric" where uri_contesto = %urlcont% and GeometryType(ST_AsText(coord_placeinst)) = %typegeom% and tipofeature=%typefeat% The expression GeometryType(ST_AsText(coord_placeinst)) returns a string perhaps you need ...


1

This is caused by the WKT and GML standards using a different convention for separating pair of points and each coordinate of a point. GML uses comma to separate coordinates and space to separate pairs, eg, 52.52735668,12.71762844 52.52633816,12.71518035 whereas WKT uses the opposite, eg, 52.52735668 12.71762844, 52.52633816 12.71518035 You have a ...


0

yes, there are several possibilities to create such thing! BUt first you need to figure out, what functions your "portal" needs. A lot of the above example can be done using javascript and the openlayers webmapping framework with some additional "plugins" for openlayers. If you just want to show data you might also be interested in some off-the-shelf ...


0

There might be a folder in webApps where you had placed your terrain files. By saying this 'localhost:8081' you mean to say all my files are placed in WebApps root folder. Create a folder place all terrain files in it, append folder name to after port with slash and give it a shot.


0

You have the right idea. Geo-reference the image first, this can be done with the QGIS geo-referenceing tool, you will need some background mapping for reference. Publish the image with a WMS through GeoServer. Just install geoserver locally and create a datastore on a local drive. Create a simple webmap with OpenLayers and view WMS from GeoServer. It ...


0

You have asked for an image of the whole world (-180->180,-90->90) to be drawn in a 256x256 image. I'm not surprised that it looks a bit pixelated. There are two problems here: 256x256 is very small so I suspect that the App is upSampling the image to fill the screen. This will make your image look blocky. WMS servers are not allowed to assume that you ...


0

fwiw enable-cors.org is a great general resource for server or client configurations, in case you are deploying with Tomcat, for example.


1

Well, you can use the geoserver curl interface to add the layers that you want. You can write simple commands to run against that, targeting your server. If it's a shapefile, upload it to the place where you want (possibily the same server as GeoServer) and use cURL. After that, you can use management command in geonode called updatelayers. It pools ...


0

you can add the geojson within the success callback success: function(data) { var geoJsonLayer = L.geoJson(data, { onEachFeature: function(feature, layer) { feature.bindPopup('Hi!'); } }); // the rest as before... markers.addLayer(geoJsonLayer); map.addLayer(markers); }


1

You may use geoconfig python module: gsconfig is a python library for manipulating a GeoServer instance via the GeoServer RESTConfig API. Documentation Here is a similar Q/A that may help too: Python Geoserver gsconfig create resource from Postgis store table


0

So far as I know it is not possible to give aliases in columns with Geoserver. If you are consulting this data on a Web Map through a WMS, it's possible develop a Info Tool with a GetFeatureInfo Template instead - see this article


2

Use the GeoServer SQL view feature, and SQL's ST_Project like, SELECT id, ST_SetSRID(ST_MakeLine( ST_MakePoint(lon,lat), ST_Project( ST_SetSRID(ST_MakePoint(lon,lat),4326)::geography, distance, pi()*azimuth/180.0)::geometry ),4326) AS geom FROM mytable; If you have long lines and want to plot them as great circles on a ...


1

Like Mikkel said, you do not need any kind of advanced graphics card. Tools that run on dedicated servers rarely even use them at all. Instead I would suggest investing in an SSD. For ~350$ (price of the graphics card) you can get a great one. This will make accessing the imagery very fast and is probably be the biggest performance impact you can have.


2

Graphic cards of significant size are generally not required for 2-dimensional GIS. Once you start visualizing 3D-stuff it becomes useful, but that doesn't appear to be your use. The non-requirement of the graphic card is further underlined when establishing a back-office setup like yours. While I am by no means an expert on Mapbender3, I don't think that ...


1

I was able to figure it out. I had to create a custom project and add it to geoserver. At first, I was trying to find pre-defined projection thinking they were complicated to add to the system but it was much easier than what I though. I took a previously defined user projection in geoserver and just copied and pasted parts of the projection of the layer to ...


1

You will not get lucky with predefined EPSG codes, because these are not defined for all local CRS in the world. gdalsrsinfo on the WKT definition returns: +proj=lcc +lat_1=0 +lat_2=0 +lat_0=46.66964837722222 +lon_0=-91.15277777777777 +x_0=228600.4575057151 +y_0=148551.4835661671 +ellps=GRS80 +units=us-ft +no_defs So you have to create a custom CRS to ...


1

You can check the code out of the repository and do pretty much anything you like with it. You might also want to look at the GeoTools code that underlies much of the GeoServer code. GeoServer code is licensed under the GPL - so there are some restrictions on what you can do with it, mostly related to releasing programs without releasing your changes to ...


0

Just try to pass the viewparams as part of the WMS_URL: var viewparams = [ 'x1:' + startCoord[0], 'y1:' + startCoord[1], 'x2:' + destCoord[0], 'y2:' + destCoord[1] ]; var baseURL="http://192.168.0.34:8080/geoserver/wms"; var better_BaseURL=encodeURI(baseURL+"?viewparams="+viewparams.join(';')); var myLayer = ...


0

I made it work with changing the encoding to ISO-8859-1 byte[] buffer = Encoding.GetEncoding("ISO-8859-1").GetBytes(sldDocument.ToString()); Not sure why but it works..


1

We have implemented WFST plugin here: https://github.com/Flexberry/Leaflet-WFST It supports reading GML and GeoJSON data, and can send transaction requests (insert, update, delete).


1

I guess that your "workspace:layername" combination does not exist. If you open the OpenLayers Preview in Geoserver you will see the layername as a part of the URL like in this example "nurc:ArcSample": ...


0

Under the SQL view parameters, the pk will require a default value (a positive integer)


0

If you look at the http://openlayers.org/en/v3.6.0/apidoc/ol.source.TileWMS.html documentation carefully, at the end of the params option it says WIDTH, HEIGHT, BBOX and CRS (SRS for WMS version < 1.3.0) will be set dynamically. To change your tile dimensions you need to set the a tilegrid to the tilegrid option, but 256x256 is the default so you ...


0

I "solved" this by uninstalling and installing again. Lost everything I had but it's faster to do everything anew than finding out why geoserver stopped working.


0

By looking at the section B.8 KVP Examples in the WFS 2.0 standard your request is mostly correct. According to the example everything should be enclosed inside "Filter" but Geoserver does accept the filter even without it. FILTER=<Filter><Within><PropertyName>InWaterA_1M/wkbGeom<PropertyName> ...


0

You can use the parametric view function in Geoserver to handle the values from your slider to pass them into the SQL that defines your layer. http://docs.geoserver.org/stable/en/user/data/database/sqlview.html This of course means that you need to have access to the Geoserver in order to modify the service accordingly - but if you have that, then this is ...


2

I figured it out with the prompt from user30184. Nulls are indeed ignored and must be explicitly included in the CSS or SLD filter, something I should have expected... but didn't for some reason (lack of caffeine?). So my CSS snippet becomes: /* buildings */ [aeroway <> 'terminal'],[aeroway is Null]{ fill: #aa1111; } This has been tested and ...



Top 50 recent answers are included