New answers tagged

1

There is no need to reproject the raster. This one worked for me: gdal2tiles --s_srs EPSG:4326 --zoom 0-5 bluemarble.tif D:\Tiles\bluemrble gdal2tiles automatically cuts off the pole areas at 85.011 degrees to get a square output at zoom level 0:


0

The event handler does not build up a feature string. It declares a fresh value variable each time. So it just shows the last feature that came by after a rectangle select. You could store the value variable globally, and make sure the eventhandler adds to that.


1

You can simply create a CQL filter that combines the elements that you need to select, so: CQL_FILTER=phase=1 AND grade='A' OpenLayers should take care of URL encoding it for you.


-1

Using openlayers 3, you will have the opportunity to use a series of servers. OSM or photon as usual is of preference (I will personally go for this especially with a limited budget), though using the Mapquest or Google geocoder you will need a key. I will refer you to: https://github.com/jonataswalker/ol3-geocoder. It will be very helpful!


2

You can use your existing text file, along with the Leaflet GeoCSV plugin, with the following code. Do note that I'm using jQuery to load the text file. Additionally, you can replace the OSM Layer with your MapQuest Layer. <HTML> <HEAD> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <link ...


0

One of the problems might be this: // creat a select to choose geometry type var typeSelect = document.getElementById('type'); There is no DOM element with id "type", I think that should be: var typeSelect = document.getElementById('geom_type'); More general: the line gives a clear error. Most browsers will show this somewhere. You'll need to learn how ...


0

The default geoserver (geo web cache) WMTS is available at http://myserver.com:8080/geoserver/gwc/service/wmts?request=getcapabilities . I suspect you need to use a url similar to this to get the capabilities document and then check that your code matches the parameters advertised there.


0

Generally, the Openlayers plugin receives tiles in EPSG:3857. It works best if you leave the basemap layer and project CRS in that too. As an alternative, you can use the QuickMapServices plugin. It allows for different project CRS as well. But the basemap layer must stay in EPSG:3857.


0

Use restrict extent as below example, so User will not go beyond the defined extent. Reference: http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.restrictedExtent Example: http://dev.openlayers.org/examples/restricted-extent.html


1

To get the attribute data of specific feature in case you are getting the 4 fields from DB to a layer in your project, then use attributes object as below: function createPopup(feature) { var sensid = feature.attributes.sensid; // and add it in the html of your popup popup1 = new GeoExt.Popup({ title: 'My Popup', ...


0

I think your temponclick function has to return the html value sent from the temperature.php not redirect to it. what I suggest is to do an AJAX Call to the temperature.php from your function temponclick(..) with a POST method and then return the data retrieved from it here is an example of it: $.ajax({ url: 'temperature.php', type: 'POST', ...


0

To enable use WFS layers..At first create a proxy here it is <%@ WebHandler Language="C#" Class="xDomainProxy" %> using System; using System.Web; using System.Net; using System.IO; using System.Text; using System.Configuration; public class xDomainProxy : IHttpHandler { public void ProcessRequest (HttpContext context) { System.Net....


1

For the specific case of GeoServer you can also add the propertyName vendor option to the request and enumerate the attributes you want to include in the response: http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#propertyname


4

The MGI 1901 projection is ok. The Austrian surveying authority changed their MGI datum in the 1920ies, but the Yougoslav surveying authority did not follow, Hence they still surveyed in MGI 1901. The difference is in the +towgs84 parameters: MGI 1901 / Balkans zone 6 +proj=tmerc +lat_0=0 +lon_0=18 +k=0.9999 +x_0=6500000 +y_0=0 +ellps=bessel +towgs84=682,-...


3

If you have control over the geoserver and you use the html format, you could modify the template server side. Otherwise I can think of retrieving the FeatureInfo as GML2 or text and modify if client-side. But I don't know how this might be implemented in openlayers.


0

I faced the same issue on QGIS 2.14.3, but the issue was because I was connected to the enterprise VPN network which has a framework preventing the download to all of these so the plugin manager window was not showing any of the important plugin in the list. Once I disconnected from the Enterprise VPN, I started to see these important plugin in the manager ...



Top 50 recent answers are included