Tag Info

New answers tagged

0

Well, there is a OGC specification/ standard for Tile Services (WMTS), which states that you can use the requests GetCapabilities, GetTile and GetFeatureInfo (get it from here). So there's no GetMap-request using a BBOX for a WMTS (at least, if it's an OGC-compliant WMTS). It wouldn't make much sense as the service would need to crop tiles for you. I think ...


0

I save my center when start the map. Then if user try to move the map on Zoom 0 i reset the view. In your case if detect a zoom change you could change the extent //Init the first extent var extent = [-79.608, -1.1, -53.106, 13.721]; extent = ol.extent.applyTransform(extent, ol.proj.getTransform("EPSG:4326", "EPSG:3857")); ...


2

Assuming that you want the actual intersection of the bounding box, then create a bounding box as a sub-query at the same level as the select from osm_admin, and take the intersection of this bbox with lg.geometry. Note the ST_Intersects also in the where clause. SELECT row_to_json(fc) FROM ( SELECT ST_AsGeoJSON(ST_Intersection(lg.geometry, ...


1

Form Here! it says .. SELECT * FROM {table_name} WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-73.9980, 40.726), ST_Point(-73.995, 40.723)), 4326) Here, we use some of the same functions you have seen previously. The opperator, &&, always uses the bounding box of geometries, unlike ST_Intersects which uses the full shape of a ...


2

The extent of the raster is equal to the extent of the cell centres, expanded by half the resolution. Here's an example: Create a dummy raster with extent c(0, 1, 0, 1) and resolution c(0.1, 0.1): library(raster) r <- raster(res=0.1, xmn=0, xmx=1, ymn=0, ymx=1) Extract cell centres: p <- rasterToPoints(r) head(p) # x y # [1,] 0.05 ...


1

From your syntax, it looks like you are using OpenLayer 2.x The OpenLayers.Layer.WMS does not implement the getDataExtent() method, so you cannot use it to zoom into the Layer Extent. There is nothing inbuilt within OpenLayers that can get the extent of a WMS layer, and hence you'll have to roll your own. In most cases, where you control the layer, you ...


3

you need (at least) 4 values to define an extent. And you should provide those values in a list of numbers or using the properties of the extent object (e.g. XMin), not in a string. For example df = arcpy.mapping.ListDataFrames(mxd)[0] newExtent = df.extent newExtent.XMin, newExtent.YMin = -180.0, -90.0 newExtent.XMax, newExtent.YMax = 180.0, 90.0 df.extent ...



Top 50 recent answers are included