Tag Info

Hot answers tagged

8

Okay, let's rock these features out of the DragBox! There are three options I have found to extract those features from the extent of the DragBox. Considerations and assumptions: I couldn't extract the layer types (raster or vector) from the map.getLayers() object, so let's assume that we stored the feature layers in individual global variables. The ...


6

Geoserver is OWS server. That is a server side application that can serve maps using standards like WMS and WFS. Being a bit more precisely WMS serve images that represent maps or layers, WFS serve features, WPS process data using predefined operations, ... Geoserver includes a web admin interface where you can style the layers or preview it. The layer ...


5

Check out the Geoserver REST API and the python wrapper gsconfig for the REST API.


5

I would write an R script that worked as a client, but will run on the database server. This will save the complication of trying to hook into PostGIS's backend and using PL/R (as I said in comments). The script will look something like this (which is practically pseudo-code here): > con = dbConnect(PG,"localhost","weather") # connect to local DB ...


5

If you want to use a postgis database with Openstreetmap data, you have to populate it with osm2pgsql, not osmosis. That is the only way to get polygons out of Openstreetmap multipolygon relations and closed ways in a format that GIS software can understand. Alternatively, you can use GDAL ogr2ogr to save OSM data into a spatialite database. Once you have ...


4

At a glance it seems your calling this function: evt.getCoordinate() var coordinate = evt.getCoordinate(); But to actually get the coordinates you should use this line instead var coordinate = evt.coordinate; Hope this helps


4

Step-by-step for GeoServer. Note: As @michal-mackiewicz writes, the WPS extension for GeoServer must be installed. Acquire some point data, for example Natural Earth populated places http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip Import data into Postgis for example with ogr2ogr ogr2ogr ...


4

If the raster is in PostGIS, using ST_Value this would be handy (from this similar question): SELECT ST_Value(rast, geom) val FROM yourrastertabe, yourpointtable WHERE ST_Intersects(rast, geom) This would require you convert the linestring to points, insert into an array or table, and then run the intersection. Stream the results to a file and then back ...


4

Ref: http://leafletjs.com/reference.html#icon pointToLayer: function(feature, latlng) { var smallIcon = L.icon({ iconSize: [27, 27], iconAnchor: [13, 27], popupAnchor: [1, -24], iconUrl: 'leaflet/icons/' + feature.properties.pcp + '.png' }); return ...


4

The GeoServer documentations states how to extract start and end points with geometry transformations (just use the end- point rule). The code example provided uses square as marks, but you could always replace this with e.g. the shape symbol shape://oarrow. EDIT: I forgot to mention how to rotate the triangle correctly (couldn't find it in the ...


4

Your question is rather broad, but from what you say, the best format would be GeoJSON. OpenLayers, Leaflet and Google Maps all read and display GeoJSON, with a trivial amount of coding required. Here is the Open Layers 3 GeoJSON example. OpenLayers 2 and 3 also have (Geo)JSON writers, which allow you to serialize OpenLayers vector objects back to JSON for ...


4

You can change the password via the web interface by going to the Users,Groups, and Roles link: Once there, go to the Users/Groups tab and select the user which you want to edit You can then change the passwords or any other details you need to change.


4

So the environment variable you're setting is a "User Variable". It applies only to the user you're editing it as. You need to edit the environment for at least the user that your geoserver is running as. See http://technet.microsoft.com/en-au/library/cc772047.aspx for how to set an environment variable using GPOs. Probably the easiest way is to just make ...


4

If you add LEGEND_OPTIONS parameter to your request and the value forceLabels:on then you can force GeoServer to draw the text for a single rule. Here is an example of a request: ...


4

It is also possible to set a master password for GeoServer. This password serves two purposes: Protect access to the keystore Protect access to the GeoServer Root account By default, the master password is generated and stored in a file named security/masterpw.info using plain text. When upgrading from an existing GeoServer data directory (versions 2.1.x ...


4

To learn more about the Rest-Module of geoserver i can recommend you this website: http://geoserver.geo-solutions.it/edu/en/rest/using_rest.html but I guess that you just want to load a WFS-Layer into your Leaflet-map, so you can have a look at this post: http://blog.georepublic.info/2012/leaflet-example-with-wfs-t/ Here the Requests for the WFS-layer are ...


4

You probably do both, but mostly on OpenLayers. The GeoServer part is mostly related to styling of layers. OpenLayers is the client, and GeoServer is the server. For basic cases, you load the data into GeoServer (and publish out whatever layers and styling you need), then use OpenLayers in your web page (javascript and HTML). OpenLayers calls GeoServer to ...


4

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 ...


4

This is because boundedBy / bbox is a property that OpenLayers creates when parsing the GML, it is not a real feature property. So when you update, you should clone the feature and get rid of it. Some example code: // do a WFS transaction to update the geometry var properties = feature.getProperties(); // get rid of bbox which is not a real property delete ...


4

According to a recent comparison of different mapping engines in performing tile seeding (see Section 4.3), MapServer should be much faster than GeoServer. Is there any re-projection of geometries in your rendering stack? An old version of MapServer might have the same issue with proj4 lib as Mapnik had.


3

The solution I would recommend is the OpenGeo suite Downloadable from here. There is a free version and various paid support levels. It contains everything you have listed above with the exception of GeoNetwork, also works with QGIS (via a plugin) providing a solid Opensource stack. GeoNetwork could always be setup after the fact to seed from your Geoserver ...


3

Same question received an answer from geoserver-users mailing list http://thread.gmane.org/gmane.comp.gis.geoserver.user/43129/focus=43205 The advice was to search for available featuretypes with REST as in the example curl -v -u admin:geoserver -XGET -H "Accept: text/xml" http:// ...


3

Just set up GWC on a machine and point it to the loadbalancer that controls access to your GeoServers. Then each tile request will be sent to the next available GeoServer in exactly the same way as your users are currently. You should probably read this series of posts before going much further.


3

See this GeoServer ticket and others which are referred in it http://jira.codehaus.org/browse/GEOS-2935. Support for compound curves etc. is a brand new feature in GeoServer and for the first time available in version 2.6-RC1. Great news it that you can test it immediately and perhaps send feedback to geoserver-users list before GeoServer 2.6 will be ...


3

When stacked symbols are only separated by the <Rule> tags, the order in which they appear on the map is random. You need to separate them using <FeatureTypeStyle> tags. Symbols at the top of the SLD will be drawn first, so for your road example you should put the road casing first followed by the road fill. E.g. <FeatureTypeStyle> ...


3

You can get attribute information by simply adding this control. new OpenLayers.Control.WMSGetFeatureInfo({ autoActivate: true, infoFormat: "application/vnd.ogc.gml", maxFeatures: 5, eventListeners: { "getfeatureinfo": function(e) { var items = []; Ext.each(e.features, function(feature) { items.push({ ...


3

How about using GDAL_Grid? Just pass the arguments over to GDAL and return the raster file or render it in the web browser. It does IDW, Nearest neighbor, and averaging and has a robust set of input parameters.


3

This looks like a bug in GeoServer. GeoServer needs to identify when a schemaLocation references the GeoServer's own WFS service and does this by looking at the hostname of the URL and comparing it to a list of known hostnames it generates at start up by looking at the network interfaces. If it fails to recognize itself it will make an HTTP request to ...


3

You may use Filtering in GeoServer to accomplish this. The simplest way to do this from your perspective would be to use a cql filter on the end of your request. e.g. http://mygeoserver.de?service=WFS&version=1.0.0&request=GetFeature&typeName=mytype:mylayer&maxFeatures=50&cql_filter=INDEX=1


3

GeoServer does not do anything to control the permissions of the directories, so it gets the default permissions the OS would assign. I believe you have to change the umask for the user that's running the GeoServer process: http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html



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