Tag Info

Hot answers tagged

3

You need to use WFS-T, the T standing for transactional, which is what's required to be able to write-back. Both Openlayers and GeoServer support this. This question may help on the script side - WFS-T: changes not saved on an OpenLayers map There's also a sample tutorial here: ...


3

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


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

Google maps is not a WMS service, and the terms of use of Google Maps itself prevent legal usage of it in a server side application, unless of course you have some sort of commercial contract with Google that entitles you to use their tiles outside of a browser.


3

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


3

Try this: curl -v -u admin:geoserver -XDELETE http://localhost:8080/geoserver/rest/my_ws/coveragestores/my_cover?recurse=true You have a space between -X and DELETE Example can be seen at the REST API Docs curl -v -u admin:geoserver -XDELETE ...


2

I do not know of a Commercial Service, but the US Census Tiger Dataset has a lot of City Boundary information that is current as of 2014. These are supplied as Shape Files which could be loaded into a PostGres/PostGIS database You would need to implement a Reverse GeoCode Lookup (this is a link to Google's service) to obtain a Latitude/Longitude for the ...


2

In fact there sort of is an excel plugin for GeoServer in that you can (or could) take the the GeoTools Community Excel Datastore and drop it into GeoServer and it should just work. But it will be quite slow if you have more than a few hundred points. Sadly GeoTools doesn't build the community modules by default so you'll need to get the sources and build ...


2

No - I don't think it is. There are two fixes that come to mind: 1 - copy the layer and add a new FeatureTemplate to the new layer. 2 - return all the data that any of your popups need and write some JavaScript to set up the pop up with the content you need.


2

You appear to be trying to turn off/on Layer Visibility in GeoWebCache which is integrated with GeoWebServer. Geowebcache is used for caching tiles to improve speed, not controlling layer visibility There are two ways to handle layer visibility Style the Layer using SLD in GEoserver, using<MinScaleDenominator></MinScaleDenominator> and ...


2

Lets assume you want to save a feature from a OpenLayers Vector Layer into PostGis and that you want to achieve this using GeoServer. The general steps would be as follows: You need to configure a WFS in geoserver using PostGis as a data store (GeoServer publish posgis table) You need to configure your vectyor layer to point to the wfs you just created ...


2

I believe that layergroup behaves like a one layer and therefore you can't use two CQL_FILTERs which are separated with semicolon as if you were asking two layers. What you can do is to ask two layers with one request and give different CQL_FILTERS for those two as a list. This request is selecting New York from topp:states and point named "fire" from ...


2

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


2

Not as WFS level as far as I know. If you use a database backend and create an unique constraint for the attribute it naturally guarantees that data that are read through WFS have unique values in this field. For inserts to be done with WFS-T the result of having unique constraint is that if you try to insert a feature with duplicate attribute value, the ...


2

Whenever you activate tile caching for a layer or layer group in Geoserver, GeoWebCache will start to cache all requested tiles. As you know you can speed things up for your early users by pre-seeding all important mapsets, zoom levels or areas. But if you change the tiled layer's basic structure (e.g. by modifying the gridset) or layout (e.g. by switching ...


2

I have figured it out by tracing the various shortcuts in Lubuntu. Basically, it involves creating a init script in /etc/init.d as listed in the bottom, which starts tomcat and call the content of the osgeo geoserver start script. Note: restarting tomcat is not good enough as I had thought. After that do: update-rc.d myscript defaults 99 01 Init script: ...


1

If you have already created the layers in QGIS and you want to publish them using the same style, I think you should go with QGIS Web Client. Related to the new points, everytime the user load the WebGIS application, a new request will be made to the database and so the information will be always updated.


1

With the admin utility you can select allowed formats from the WMS settings page. GetFeatureFormats can be selected from "Allowed MIME types for a GetFeatureInfo request". Leave only text/html and text/plain left. You must also disable vector formats from "Allowed MIME types for a GetMap request" for preventing KML and perhaps SVG and some other ...


1

Ciao, the style you are using is stripping out the alpha band. Use the standard/default raster.sld style. Simone.


1

Let's assume that your 'deg' columns are +ve for North/East and -ve for South/West, and that all other metrics are +ve only, then making decimal degrees is straightforward. SELECT AddGeometryColumn('population', 'latlongeo', 4326, 'POINT', 2); UPDATE population SET latlongeo = ST_SetSRID(ST_MakePoint( sign(long_deg) * (abs(long_deg) + long_min/60 + ...


1

The fix is defining a filterType parameter in the OpenLayers.Control.GetFeature constructor: new OpenLayers.Control.GetFeature({ filterType: OpenLayers.Filter.Spatial.INTERSECTS, ... The default filterType is OpenLayers.Filter.Spatial.BBOX that results correctly in an uncertain Filter() query in SQL Server, when a spatial index is set. If ...


1

The installer in GeoServer versions <2.6 has an issue with Windows 7 which makes installation into "Program files" or "Program files(x86)" to fail because Win 7 requires elevated privileges for those directories and the old installer does not take care of that. The installer in GeoServer 2.6 is fixed to raise the privileges and installation into Program ...


1

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


1

The scale limits which are used in SLD should be converted automatically into MinScaleDenominator/MaxScaleDenominator with WMS 1.3.0 and into ScaleHint in WMS 1.1.1. You can read examples from this demo server: http://demo.opengeo.org/geoserver/wms?service=WMS&request=GetCapabilities&version=1.3.0 ...


1

Open your GeoServer Admin Instance at http://yourhost:8080/geoserver/web/ and log in .. To use SQLViews, you must have a database configured and available with data in it .. usually PostGreSql, and you must have already configured a Database DataStore to use SQL Views. Select layers -> Add new Resource (green + button at the top) In the drop down list of ...


1

Check your Geoserver Layer Setup. Open the WMS layer and go to the Publishing Tab .. There is a check box under WMS Settings labeled Opaque, make sure that this is unchecked.


1

Check your coordinates in these layers. Maybe they don't match on each other and you are switching from one system to another with layer switching... I am not sure what are your WMS made of. Is that blue line a vector? If it is raster it can cover all other layers (it has no transparency) with white border we see around line (maybe it has defined boundaries ...


1

All you need to do is create a correct URL in your app and use Java to open the URL and fetch the contents as an image. The display the image as usual. To determine what URL you need you should read the WMS specification, or if you are in a hurry crib one from the GeoServer examples page or any other web map you can find.


1

After loading all the datas in vector layer we have to redraw vector layer. map.getLayersByName(vectorlayerName)[0].redraw(); Thank you @iant. :)


1

By default, Postgres allows access from only local users on the same server, since you can connect via an Ip Address, you must have configured some security already, so to allow the hostname, you should only need to do the following .. Edit your pg_hba.conf file for your PostGres installation add the following entry # Allow any user from hosts in the ...



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