Tag Info

Hot answers tagged

4

This is a comparison between multiple tiles and single tile using WMS in OpenLayers: var map = new OpenLayers.Map({ div: "mapDiv", layers: [ new OpenLayers.Layer.WMS( "Single Tile", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"}, {singleTile: true, ratio: 1} ), ...


4

EDIT: Update, having belatedly realized this is a Map Server question. In general, to get the convex hull, you will want to group by id/gid, as producing the hull(s) is an aggregate operation. So, without the Mapserver part, the query would look like: SELECT id, ST_ConvexHull(ST_Collect(the_geom)) as the_geom from xyz group by id; Now, to get MapServer ...


4

For example: let's say you have a 10 megabyte raster/vector file that covers a large area. If you include the file directly into OpenLayers, it will download the entire file to the browser and render whatever part of it the map needs even if it's a small area. What mapserver will do for you is always deliver to the browser a small image of exactly what ...


3

a) No, you do not have Mapcache, it is an Apache module that must be installed separately b) Current MapCache version is effectively not available for us Windows users. However, a bit older version is included in MS4W 3.0.4-dev version that can be found from http://maptools.org/ms4w/index.phtml?page=downloads.html. That package contains MapServer version ...


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

Mapfiles are good for making standard WMS, WFS and WCS services. They are mostly stable even some limited set of the mapfile parameters can be changed on-the-fly by using the variable substitution mechanism. Static mapfiles are enough for serving data to GIS clients like ArcGIS, QGIS, OpenJUMP etc. and also for browser applications made with OpenLayers or ...


3

How about using GDAL_Grid? Just pass the arguments over to GDAL and return the raster file or render it in the web browser. It does IDW, Nearest neighbor, and averaging and has a robust set of input parameters.


2

Try removing the 'as FOO' statement at the end of the select statement, it is not needed. As a reference this is the template for an Oracle Spatial DATA definition with a select instruction: 'geometry_column FROM (SELECT stmt) [USING UNIQUE <column> SRID srid# FUNCTION]' the parts in square parenthesis are optional. Reference retrieved straight ...


2

You have installed two separate programs: - MapServer that is a map engine - MapCache that is a tile cache for rendered images With your request you hit Mapserver (by using a peculiar Mapserver specific "browse" mode). The MapCache service will be found from another URL http://server/mapcache/? as you can see by reading the documentation ...


2

The correct code is: var layern2 = new OpenLayers.Layer.MapServer("Tech", "ServerPathTo_mapserv.exe", { map: "ServerPathTo_My.map", layer: "Layer1", version: "1.1.1", transparent: "true" }, { isBaseLayer: false, visibility: true });


2

You should add at least one CLASS/STYLE to your LAYER block: CLASS STYLE COLOR 0 0 0 END END


2

Openstreetmap uses the same tile numbering as Google, so you can use their formulas: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames


2

Where did you get the FEATURE POINTS 1 1 END END from? This draws a point at x=1 y=1, and not at the coordinates from your shapefile:


2

You should use two different STYLE blocks, one for the fill and one for the stroke: CLASS STYLE OUTLINECOLOR r g b #stroke WIDTH 3 END STYLE COLOR r g b #fill OPACITY 50 END END Ordering is important, you'll get different visual results if you swap the order of the STYLE blocks.


2

You can publish database tables with GeoServer as WMS and WFS layers. WMS renders ready made maps like this for clients: ...


2

Can I publish map services in geoserver like this? You can't publish services exactly like that in GeoServer - the ArcGIS Server Feature Layer is Esri's proprietary implementation for sending vectors to the client. If you're using GeoServer then as @user30184 noted you should look at a Web Feature Service to emulate the Esri Feature Layer. The ...


2

Mapserver can do it with the current development version which will be soon released as v7.0. How it works is best documented here: http://mapserver.org/development/rfc/ms-rfc-108.html For testing the heatmap feature install MapServer 6.5-dev into your environment. Next download "pnts" shapefile (.shp, .shx, .dbf, and .prj) from github ...


2

Thinking that you need heat maps rendered on the fly, I would go for these options instead: Leaflet: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html OpenLayers: http://www.websitedev.de/temp/openlayers-heatmap-layer.html Both LL and OL: http://www.patrick-wied.at/static/heatmapjs/examples.html Some on-the-fly examples: ...


2

You'll want to do a spatial join in the DATA statemet DATA "geom from (SELECT poly.gid, poly.geom, Count(gid) AS ptcount FROM poly JOIN pts ON ST_Intersects(poly.geom, pts.com) GROUP BY poly.gid, poly.geom) using unique gid" If your data aren't changing very often, doing this for every map draw is probably not a good ...


2

It works in a similar way than tileindex with geotiffs. Actually I would recommend to test first with a geotiff tileindex and couple of images so that you know that everything else despite ECW is configured correctly. If changing to ECW breaks something you know where to start searching the reason for the issue. It can be that the GDAL of your Mapserver does ...


2

In order to install the MapServer in Ubuntu 14.04 after you have installed Apache2, it is good to install php5: sudo apt-get install php5 After that you can install the available in the repositories version of the MapServer by executing: sudo apt-get install cgi-mapserver mapserver-bin php5-mapscript However, the available version in the Ubuntu ...


2

With MapServer the pixel value of a raster layer that should be interpreted as "nodata" and which should therefore be transparent is defined in the LAYER section of mapfile with the OFFSITE parameter. This is explained in MapServer documention at http://mapserver.org/mapfile/layer.html?highlight=offsite%20raster.


2

Turns out it is as easy as this: MIMETYPE "application/json; subtype=geojson; charset=utf-8" Without the setting, no content encoding is returned by the server.


2

Just see this official demo example http://openlayers.org/en/v3.0.0/examples/wms-image.html Some others WMS samples are available. You will just need to change ServerType to mapserver (link for reference) Edit for completing with solution Without proj4js, you can always use the recipe from this other official example Declare an object ol.proj.Projection ...


2

With the fixed mapfile, it become clear to me, this is a client side problem. There is nothing wrong with the MapServer setup, the resolution limit has been set in the OpenLayers map object automatically. To override this limit, include a maxResolution parameter in your OpenLayers.Map constructor. var map = new OpenLayers.Map('map', { ...


2

It is not possible with version 5.6.8 but if you update to version 6.4 you can use the SIA shape smoothing algorithm. The RFC of the feature is in http://mapserver.org/development/rfc/ms-rfc-94.html and current documentation about the usage in http://mapserver.org/output/shape_smoothing.html#shape-smoothing. If you must to stay with the old 5.6.8 the only ...


2

I'd start with GeoServer on the server side. You just need to put the files on the hard drive, create an ImageMosaic store, then publish whatever layers (perhaps just one) you need. The ImageMosaic is the critical part - that will turn your collection of aerial photographs into a single image. Note that there are likely to be some artifacts where the images ...


1

Have you tried http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_dev.html#g-mapcache-apache-module? The ms4w package might have more mapserver packages than OSGEO4W.


1

I found a reference to this problem here: http://docs.openlayers.org/library/layers.html. If you are using a Layer.MapServer, and your map is being repeated several times, this indicates that you have not properly configured your map to be in a different projection. OpenLayers can not read this information from your mapfile, and it must be configured ...


1

&SRS=EPSG:3059%20 That %20 is an escaped white space. You need to get the white space out of the query string.



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