Tag Info

Hot answers tagged

7

div.olControlScaleLine{ color: white; } div.olControlScaleLine>div{ border-color: white; }


4

You can only use a x,y (i,j) coordinate search for GetFeatureInfo requests http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo However, you may test for interactions with polygons (and many other geometries) using a Web Feature Service (WFS) request. E.g. ...


3

Just edit the renderd.conf and add a section for your second style (make sure the "URI" entry points to a different path than that of your default style). For example, my renderd.conf contains the sections [default] XML=/etc/mapnik-osm-carto-data/osm.xml URI=/osm/ DESCRIPTION=This is the standard osm mapnik style HOST=host.my CORS=* MINZOOM=0 MAXZOOM=20 ...


2

(1) Yes. osm2po creates a SQL import file, which already contains the routing topology. (2) Yes. You just need to convert kilometers to miles. If you use km AS cost in your pgRouting query, then your route cost attribute will be in km as well. (3) For the address lookup you need a Geocoder, for example Nominatim. When you know the point coordinates, you ...


2

This is probably an artifact due to tiling. The layer preview map defaults to a single tile, but I'm guessing your openlayers map uses tiling. Geoserver insists on labeling every tile. GeoServer doesn't know that each request is for a tile in a larger map, so it treats a tile as a complete map and dutifully applies a label to it. So basically, if a road ...


2

I usually do this using QGIS. I load the kml layer, save as shapefile and add the columns that are necessary for rendering. Then I open a connection to my postgis database, delete everything inside the current view, and copy-and-paste the kml data into the postgis layer. I have created a separate bboxdb inside postgis for such cases, so my original osm ...


1

'transparent' is a WMS parameter (by default it's false), so put it together with 'layers' and try again.


1

There is no ready to use tool available, but I think it's not that difficult to implement you own tool by using any of the three library. For example in OpenLayers, I think you can create a DrawComplexShape control, it can be extend the general DrawFeature Control with draw arc capabilities. The main challenge would be to draw arcs. In terms of that, there ...


1

Expanding on my comment: Mapfish Print versus GeoServer Print module The MapFish Print Module is basically the exact same thing as the GeoServer printing module. In fact, the later is built from the former (the 2.4.x ad 2.5.x modulees is built from mapfish print 1.8. The 2.6 release will include MFP 2.0). At this stage you won't gain much of anything by ...


1

This is a Cross Domain Issue as you are calling a different domain in your XMLHttpRequest than is used for the data. I use a simple Proxy on our Server for the XMLHttpRequest from OpenLayers and the Proxy, in turn, forwards the request onto its true destination. An Example of how to make your own Proxy can be seen here This is also discussed here


1

You are getting an error message from the server back in XML. You can view the message by extracting a tile url being sent to the server. This is easy to do in IE - just right-click on the map and copy the image url. Otherwise use Firebug or the debug tools in Chrome to extract the URL. Then just paste it into the browser directly. I'm not sure why you are ...


1

it depends which Beta Version of OL3 you are using. On the latest Version v.3.0.0 – gamma.2. there is no: new ol.source.SingleImageWMS The source name is: new ol.source.ImageWMS http://ol3js.org/en/master/apidoc/ol.source.ImageWMS.html Try to change that, maybe it solve the problem. Thank you for feedback.


1

Probably after your requirements get complicated, it is best to think of making a scalable application. The advantage of working with a geometric column is the index, plus you can also work with wkt, GeoJSON and other standards that openlayers postgis and handle very well, so you would simplify the development Here you can find a good tutorial


1

Your problem is that WFS 1.0.0 does not support reprojection of the coordinates. If you switch your request version to 1.1.0 then GeoServer will take your srs into account.


1

solved It: function calculateArcPointsGeo(center, radius, startAzimuth, endAzimuth, segments) { var pointList = [], point, i, d = radius / 1000, // d = distance in km R = 6371, // km, R = earth's radius (mean radius = 6,371km) lat1 = deg2Rad(center.Y), lon1 = deg2Rad(center.X), ...


1

This might have to do with some browser security features in Firefox that block access to local files, that aren't present in chrome/IE. It might require using a proxy to make it look like it's from somewhere else, or a workaround to the local restriction. A few links below that might explain a bit better. Blog post from a GIS developer who had a kml ...


1

I was unable to find anything built-in going through the docs, only this ticket which does not appear to have ever been merged into OpenLayers. You can use the open-source Terraformer library by Esri to convert from Esri JSON to GeoJSON, then use the standard GeoJSON functions in OpenLayers to act on it from there. Alternately, it appears you can glue the ...


1

I've used a javascript/jquery solution to fix the issue with the navigation buttons disappearing when the window has resized. In the section, I have incorporated the following function: <script> $(window).bind('resize', function(e) { this.location.reload(false); }); </script> The code above was modified from the ...


1

I think you need to specify the srs parameter of your layer: srs : '32024' //NAD27 or srs : '32126' //NAD83



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