Tag Info

New answers tagged

2

I do this by using MultPolygon, as you've mentioned above. The trick I've used is that after drawing a polygon (when your FeatureAdded function is called) it should add a polygon to a JavaScript object that mirrors the structure of a MultiPolygon. Here's a quick pointer on doing that type of wrapping/unwrapping: ...


0

In addition, you can use GeoServer for some functions like intersection, clipping, buffering etc... In GeoServer Demos, you can test those functions and see what would be the result of it. After you find proper function, you can use that XML code to put it in Javascript and make some further actions.


0

Please check your WMS GetCapabilities response. If you cannot add layers usually the cause is that WMS GetCapabilities output is broken because of e.g. a misconfigured layer.


0

I fixed problem by filling polygons with some color. Note: I'm running GeoServer 2.5.2 and bug is not fixed. But link above is very usefull, it helped me. Thanks to user30184.


1

I haven't tried the combination of Geoserver and Oracle but I guess that the WFS-T should work out of the box like it does when I use PostGIS as Database. First of all I think you should find out WHY your features are not stored (violated NOT NULL constraints, check-constraints or something like that). In your Geoserver WebUI you can doublecheck that in the ...


1

Maybe this will help you: http://stackoverflow.com/questions/25261945/cannot-access-wms-getmap-as-anonymous-in-geoserver It is another problem, but read the last comment on the page and try to configurate the "Allowing anonymous read-only access" (http://docs.geoserver.org/stable/en/user/security/service.html)


0

Two pieces of advice (which may or may not constitute an answer--haven't tested your code myself): Use Promise Objects Available within jQuery (as well as many other js libraries). Read the docs: essentially, a promise object allows you to work with variables that point to data that may still be loading asynchronously. E.g. var promiseData = ...


0

Your map is being shown in the browser before all the GeoJSON is loaded into your layers. Try wrapping your JavaScript with jQuery's ready() method. $(document).ready(function(){ <put all your code in here> });


2

Perhaps you are running GeoServer 2.5 and you have faced a bug that happened if there was no fill defined for polygons. Bug was resolved in GeoServer 2.5.2. Read more details from http://osgeo-org.1560.x6.nabble.com/WMS-GetFeatureInfo-with-Polygon-td5163455.html. First aid would be to add fill to the polygon style. Updating GeoServer should be a definitive ...


1

This problem occurs when your .war is bigger than the value in config file of the tomcat manager. You need to set the config in web.xml from the tomcat manager. The file will normally be in %tomcat installation%\webapps\manager\WEB-INF\web.xml Look for: <multipart-config> <!-- 50MB max --> <max-file-size>52428800</max-file-size> ...


2

Changing Java Heap Memory for Geoserver sudo vi /usr/share/tomcat7/bin/catalina.sh line 3 export CATALINA_OPTS="-Xms2048m -Xmx8g" Change the "-Xmx2048m" to desired value, as Xmx is case sensitive, you can use "g" for GB or "m" for MB After the changes are saved, remember to restart tomcat: sudo services tomcat7 restart


0

If you're looking for a non-ESRI, open standards-based replacement, CubeWerx has also developed an impressive framework that will act as a Google Earth Enterprise replacement, especially for very large volumes of imagery. We have what we believe to be the most efficient and cost effective imagery service on the market. And it’s all built around open ...


0

I found a working procedure: Create a file geoserver inside /etc/default dir and feed with the following code (change top four variables according to your own setup): USER=zia GEOSERVER_DATA_DIR=/home/$USER/Documents/Software/geoserver-2.6.1/data_dir GEOSERVER_HOME=/home/$USER/Documents/Software/geoserver-2.6.1 JAVA_HOME=/usr JAVA_OPTS="-Xms128m -Xmx512m" ...


1

You could have a look at your wfs settings: (Screenshots of german UI, but should be obvious where to find the options in the english UI,too): Make sure you have activated the option that you want to get the bounding box of the features: If you also want to define the GML-version you get as response you can add one of the following options to your ...


1

There is typo in your url http:localhost:8080/geoserver/wms?request=GetCapabilities should be http://localhost:8080/geoserver/wms?request=GetCapabilities You can basic auth to make the requests http://user:password@localhost:8080/geoserver/wms?request=GetCapabilities


1

Short answer Short answer, consider an entry-level VPS service provider. I am using Host1Plus (silver plan) for basic VPS hosting, and Contabo for more resource intensive deployments. Other popular options include DigitalOcean and Linode. All of these providers have options for $5-$15/month. Longer answer Mapserver, Geoserver, Geonode, and Ushahidi all ...


1

The correct procedure for upgrading an instance of GeoServer is: Stop old GeoServer make backup of existing data directory Start new GeoServer pointing it to data directory. If you find that you've fallen more than one version behind you may need to make two steps to update i.e. 2.4 -> 2.5 and 2.5 -> 2.6 but I'm fairly sure that there were no major ...


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


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


2

You could use a hidden form to realize that: Button to start the Download: <input type="button" value="Download Layer Streams as Shapefile (ZIP)" onclick="shapedownload('og:streams')"> Function to be called: function shapedownload(layername) { var form = document.createElement("form"); form.method = "POST"; form.action = ...


0

For that kind of task you can use the rendering transformations of geoserver.They allow set a SLD style that uses some predefined WPS process to style your layers. Boundless has an example that fits pretty well in your case, it shows how to chain a Barnes Surface process with a Contour process to generate a contour map of estimated average temperatures.


0

If you open the gt-mongodb-11.2.jar (with winrar or similar) you will find a folder called 'javascript'. There are two javascript files in it which contain the functions you have to load to your mongodb database. (The error message indicates that these are missing.) There is also an INSTALL.txt with instructions on how to do it. One remark: Every function ...


0

I had a similar problem, when my data contained nulls geoserver did not load the data at all. I could only resolve this by replacing nulls with "null" (convert to String) before loading it to mongodb.


0

I also came into this issue when upgrading from 2.1 to 2.6. We are posting nativeName (file name) and name (layer name) to the rest API. The problem is that for >= 2.4 the CatalogBuilder is called via coverage = builder.buildCoverage(name); So within this method, there is no possibility to distinguish between name and nativeName. If you want to fix ...


1

Something seems to be wrong with your coordinates or the assigned EPSG-Code. EPSG 31466 is the "Gauß Krüger Zone 2"-CRS. The first number of the x-Values is the number of the (Gauß-Krüger-)zone, which means that your x-values would have to beginn with a 2. The central median is at 2.500.000,000 plus/minus 3 degrees. Your x-value should also have 7 ...


1

It's always good to provide a proper answer. As mentioned by simogeo, since the orginal data was in 16bit data type, there were seams and performance issues. The following command from terminal will convert 16 to 8 bit data type, provided the lower and upper values of 16bit data (which is 156 and 4095 in my case). gdal_translate -of GTIFF -ot Byte -scale ...


1

This looks like a 16 bits image. Quick suggestion, the easiest thing to do is to preprocess this image and perform color correction upfront. You can use qgis itself or gdal utilities (See this email: http://lists.osgeo.org/pipermail/gdal-dev/2012-March/032180.html) Simone.


2

It's EPSG 4326. llbox means latlon-boundingbox. Every layer has to be published in 4326 but can often be requested in different crs's, so you get the llbbox always in 4326. just reproject them with .transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:31466")); for example var my_extent=new ...


1

Adding the WMS from the "Add Layer(s) from a WM(T)S Server" button in QGIS Desktop will let you set the CRS for the layer added.


1

If you click on the Globe icon and change your base crs to EPSG:4326, it should change the default CRS whenever you add a new layer


3

Going by memory, I would actually go and disable all the individual layers in the respective layer configuration. This should not impact the layergroup you created with them. If you just want to hide them from the GetCapabilities response, uncheck the advertise box. Hope that helps, Simone.


0

Delete comment in httpd.conf line: mod_proxy.so and mod_proxy_http.so This modules operate proxy. And of course restart Apache.


1

On the GeoServer Status page of the admin console, there are a few options for freeing a reloading things. http://docs.geoserver.org/stable/en/user/webadmin/server/status.html Specifically I'd suggest the Configuration and catalog reload button should probably do what you want; it reloads all configuration and is similar to a restart without actually doing ...


0

There are 2 kinds of solution based on my experience: js problem: copy your code in jetty web app beside your GeoServer for solving js security problem GeoServer problem: after solving problem in 1, if does not work, your Layers in GeoServer is not complete. for example if one of your Layers does not have 'Style' your code does not work


0

You need to specify WMS params in getGetFeatureInfoUrl() function. In your case, try to ask for more features by adding the param FEATURE_COUNT after INFO_FORMAT. For instance: var url = layers[3].getSource().getGetFeatureInfoUrl( evt.coordinate, viewResolution, 'EPSG:3857', { 'INFO_FORMAT': 'text/html', 'FEATURE_COUNT': '20' //or ...


1

You are mixing projections. You are requesting a tile in lat/lon (4326) from Geoserver, which will disappear from view when shown in an OpenLayers page that has the default projection set to 3837 (meters), see the docs. Geoserver will automatically reproject for you and you can pass the CRS in the params that you send to the WMS, ie, params: {'LAYERS': ...


1

Just start playing! Get yourself a virtual server (Windows or Linux, whatever you're comfortable with), and install the OpenGeoSuite. I run a small production server with around 2 GB of ram and two processors and it works fine. As John Barca says, you can scale up to very big, with load balancing and separate, redundant database servers. But to start ...


0

You will want to use this example to build up a script: http://docs.geoserver.org/stable/en/user/rest/examples/curl.html#adding-a-postgis-table Using Python, you could list all the tables in your postgis database, then craft a HTML call (using urllib) to publish each one. Issues you might have include styling, to name just one. And you might want to set up ...


1

There a two or three possible reasons that come to my mind: Option1: your Webserver is not configured properly: What happens for example if you try to access this site(presuming that you put your proxy.cgi in your usr/lib/cgi-bin -folder): http://yourserver_ip_or_adress/cgi-bin/proxy.cgi?url=http://www.openstreetmap.org If you wont see the ...


0

Even if the question was asked a bit ago here is one solution: Have a look at the status page of your Geoserver-GUI and see which Geotools version your geoserver uses: Then download the gt-mongodb-jar of the version xx from http://download.osgeo.org/webdav/geotools/org/geotools/gt-mongodb --> in my case version 11 ...


0

For GeoTools modules you could try browsing the documentation which contains a list of the main modules and the extensions.


0

This is not a replacement, but gives you some REST APIs to query and display your data in the ArcGIS REST API format. For complex function you still have to use ArcGIS Server. You need to first install Cartoview then install the server app http://www.cartologic.com/cartoview/apps/cartoserver/


3

The Problem lies in your use of url, which in OL3 seems to expect only static files, i.e. url = "/static/data/geojson.json". To fill your map with dynamically loaded data use ajax calls and the ol.source.Vector.addFeatures method: var vectorSource = new ol.source.GeoJSON({ projection: 'EPSG:4326' }), $.get( ...


1

I used to following tutorial to figure out how to get popups on WMS and WFS layers. Maybe it will be useful to you. Here is some of the relevant code map.on('click', function(evt) { // Hide existing popup and reset it's offset popup.hide(); popup.setOffset([0, 0]); // Attempt to find a marker from the planningAppsLayer var feature = ...


0

have you looked at this answer? GeoServer 2.3 how to enable jsonp. Depending on your version of GeoServer you may have to edit web.xml


2

Styles are cached in memory. If you change them manually on disk GeoServer will not reload automatically. I would suggest to simply replace the original style, forcing a configuration reload is probably too intrusive (and won't scale). Simone.


2

You have to use a freemarker template in Geoserver with a content that converts the urls to hyperlinks. See the docs: http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#tutorials-getfeatureinfo This website contains an example that looks quite useful: http://longwayaround.org.uk/notes/custom-geoserver-getfeatureinfo-template/ ...


1

you have to declare that you use EPSG 3301 and not EPSG 4326 for the BBOX with wfs in version 1.1.1.: " If the crsuri is not specified then the 2-D coordinates shall be specified using decimal degrees and WGS84" ( http://augusttown.blogspot.de/2010/08/mysterious-bbox-parameter-in-web.html ) Just add a crsuri at the end: ...


1

Make sure that your view center coordinates and zoom level are numbers. Currently they are strings (sometimes empty strings even), which leads to unexpected behavior. Something like var zoomy = parseFloat(getParameterByName('zoomy') || 0); var laty = parseFloat(getParameterByName('laty') || 0); var lony = parseFloat(getParameterByName('lony') || 0); Also ...


1

Note where you create the tiled varaible: tiled = new OpenLayers.Layer.WMS( "Town:roads - Tiled", "http://localhost:8080/geoserver/Town/wms", { height: '485', width: '512', layers: 'Town:roads', styles: '', srs: 'EPSG:3857', format: format, tiled: 'true', tilesOrigin : ...



Top 50 recent answers are included