Tag Info

Hot answers tagged

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


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.


2

When you make a WMS request you are asking for a picture of your data. The output is determined by the style you request (via the SLD you provide or the default). This is why the statistics are different for the the two files you request. Since the returned images are simply colours they can be stored in 3 bands of Byte - there is simply no need to use the ...


2

Geoserver serves out data via an API called OGC Services. These are of mainly two types: WMS or Web Map service, where the client can ask for an Image of the rendered Data WFS or Web Feature Service where the client can ask for the features in your Data. In Addition to these, Geoserver also comes with a component called GeoWebCache, which is used to ...


2

I think this is best left up to the authorities. However, from a GIS perspective, a location is given. That's about it. From a crime analysis perspective, if the technology is available (more than certainly it is) the police could track cellphone GPS locations that were in that area at the time. As another reddit user posted they could potentially track ...


2

when you add a point with new OpenLayers.Control.DrawFeature(wfs, OpenLayers.Handler.Point), by default feature state set to "Insert" but when you add a point with vectorLayer.addFeatures() command, the feature state is null. when OpenLayers wants to save change, it see to the state of the feature, and you have to set the added feature state to ...


2

I use GeoServer in OpenGeo Suite 4.1. In this package, the "Service access rules list" page has a rule that only "ADMIN" roles have permission for WFS-Transaction. wfs.Transation --> ADMIN You must delete this rule.


2

I have a table in PostGIS structured like this: CREATE TABLE locations ( id integer NOT NULL, mp_id character varying(50), dt timestamp with time zone DEFAULT now(), the_geom geometry, CONSTRAINT pk_emp PRIMARY KEY (id) ) For this table, I make the following Parametric View SELECT id, mp_id, dt, the_geom FROM locations where ...


2

Check if the source data uses paletted colours. You can not reproject them easily, because interpolating paletted colours will fail. Convert the source data to RGB or RGBA, and the interpolation during reprojection will deliver good looking results. Furthermore, check if NODATA value conflicts with any used colour.


2

Problem solved. I had to add a New Rule to the Advanced Firewall Settings for opening port 8070 for inbound traffic.


2

The wps module is a separate package on Linux. yum install geoserver-wps should do it.


2

Problem solved. I was ignorant to the fact that they're cascading so I completely trusted those auto-generated .slds. The most general rule had to come first. Thanks everybody. By the way, if someone is interested how I extracted the SLDs - I did it with the trial version of Arc2Earth. It only allows you to do that layer by layer, but at least it's ...


2

Betwween two different stand alone Geoserver's data directory migration available here Migration of data directory betwwen geoserver's


1

The base dataset is in RGB format but the issue is caused when one layer is not visible due to Min/MaxScaleDominator in the SLD. If you check the two layers individually using GDALinfo I believe you will find that the format of the blank tile has been changed by GeoServer and is now RGBA whilst the visible tile is still in the original RGB. We think it is ...


1

You will need to do a custom build of GeoExplorer and add MousePosition to the build profile here: https://github.com/boundlessgeo/suite/blob/master/geoexplorer/buildjs.cfg Alternatively, you should look at the Boundless SDK instead.


1

Ok, it was kind of obvious (as the stack trace said (it seems I was kind of blind at that moment)): It is a security issue: As soon as you add the url of the host of the respective layer to your config.yaml (in the "printing" directory in your Geoserver data directory (in the "hosts:" section)), the printing starts working again :)


1

For the GeoServer version 2.6-RC1 some work was done for making the Windows installer to work on Windows 7. The old installer version which worked well on Windows XP could not raise user rights of the GeoServer installation directory and data_dir on Windows 7 if directories were placed into "Program Files" or "Program Files (x86)". Installation into other ...


1

There is a specific extension for GDAL sources in GeoServer. Please check the links below: http://docs.geoserver.org/stable/en/user/data/raster/gdal.html http://geoserver.geo-solutions.it/edu/en/install_run/imageio_ext_install.html http://geoserver.geo-solutions.it/edu/en/adding_data/data_format.html


1

Ciao, if you use a standalone GeoWebCache you can have a single tile layer backe by multiple WMS. Check this post for more information: http://www.geo-solutions.it/blog/tips-tricks-geowebcache-tweaks-checklist/ If you use integrated GeoWebCache (integrated with GeoServer) then you may need to enable clustered diskquota support. Check the links below: ...


1

Yes, you can use one GeoWebCache installation which caches map layers from several GeoServer instances. I assume you read the documentation at: http://geowebcache.org/docs/1.5.1/introduction/whichgwc.html ? If you use the standalone version, you have to define all layers manually whereas an integrated version takes automatically all defined layers from ...


1

I suppose you have been reading this http://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html Here comes some sample requests which are sending queries for the demo server of Boundless but which should work similarly with your own server if you have demo layer topp:states installed. Select where STATE_NAME is Illinois ...


1

Configure your layer as SQL View - link to the docs For your case (buildings), the SQL statement for filtering will be: SELECT * FROM planet_osm_polygon WHERE building IS NOT NULL And then, publish the layer as usual.


1

Essentially it publishes mapping web services from a spatial store. So you're kind of right, in that it's a web server, but one which is specifically designed for spatial data and spatial services - such as WMS. From there you can include these services in applications you build or in desktop applications where supported (pretty much all of the good ones). ...


1

layer = cat.get_layer("yourlayer") if layer.enabled: print "Layer is published" else: print "Layer is not published" Layers provide these settings: enabled is a Boolean flag which may be set to False to stop serving a layer without deleting it. If this is set to True then the layer will be served. Refer to this webpage.


1

Solved this by using calculated X & Y instead of using generated from leaflet provided function layerPointToContainerPoint Giving Wrong X & Y var X =map.layerPointToContainerPoint(e.layerPoint).x.toFixed(0); var Y = map.layerPointToContainerPoint(e.layerPoint).y.toFixed(0); Correct X & Y from calculation var bds = map.getBounds(); ...


1

Sure, it takes time to process all those vertices and render them down to the raster. And if you have enough vertices, they probably don't add any information to the picture at all. Like, if you have a river with 1000 vertices and map it into a 1000x1000 image, you might get one vertex per pixel, but probably you'll end up with lots of pixels with more than ...


1

I would recommend installing and running Vagrant, and then run this inside a ubuntu box. The overall install is still a little tricky, but you wont have any of the crashes or conflicts it sounds like you're having. Plus, you could then install postgresql instead of mysql.


1

This looks like missing functionality (probably means it was added after the REST store) - so feel free to open a Jira ticket noting the issue and then attach a patch or pull request with the fix in.


1

The proper way to set the maximum level of a WMS layer is the use of rules in the style associated with the layer. If you are afraid that users can zoom out of 1:1000 with other style, you can define only one style associated with the layer.



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