Tag Info

Hot answers tagged

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

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

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

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


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

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


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

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

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


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

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

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

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


2

We work regularly with tiled layers in our applications and I usually store tiles directly on a dedicated disk which I host as a virtual directory. You can see the tile directory here: http://argeomatica2012.cloudapp.net/SOLIDARIDAD_ortho/ I then add the tiles directly as a XYZ layer to my OpenLayers map like so: layerXYZ = new OpenLayers.Layer.XYZ("XYZ ...


1

Your map file says you are using epsg:4326 as a projection. Leaflet map uses epsg:3857 as a default (https://github.com/Leaflet/Leaflet/blob/master/src/map/Map.js) you could try passing following option when you create your L.Map object var map = new L.Map('map', { crs: L.CRS.EPSG4326 }); Anyway, your problem is around projections


1

Ok, this is not really a GIS related but rather a programming related question. Anyway, for your intended purpose you can use almost any language you like. Here is a very, very simple PHP script based on the example Mapfile from the documentation at http://www.mapserver.org/mapscript/php/by_example.html. In this script only the variable DATA is altered: ...


1

I think you simply need to add percent opacity to your layer options: ...{layers: 'municipios'}, {isBaseLayer:false, visibility:false,transparent:true,opacity:0.5} );


1

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


1

You would need to set up a seperate folder for each service. And use the iis settings to allow a list of ips for each folder you have. So I assume the restricted IPs are outside of your network. This is a feature of latitude geocortex. Which allows federated security. Setup an allowed domain or any number of single email accounts. This would still require ...


1

You want to look into ArcGIS Portal. It is a server extension. They describe it as Portal for ArcGIS gives your organization a platform for managing all of its geospatial content. It enables secure and private sharing within the organization and leverages mobile, server, and desktop clients. It is ideal if you have high confidential and proprietary ...


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 should work simply by adding &s=something into your query. You have already read http://mapserver.org/cgi/runsub.html and you have validation for the s variable?



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