Hot answers tagged mapserver
5
You can use both MapServer and GeoServer. I prefer MapServer, but that is more because I know more functionalities of MapServer. Extensive information can be found for both.
MapServer does not include creating a tile cache. For that you can use for instance MapProxy
4
Your question implies that the problem doesn't occur when the data isn't projected. Is this the case?
It looks like the issue is with features that cross the -180 / +180 meridian. The problem arises when the GIS assumes that the west boundary of the polygon has a lower X ordinate than the east boundary, but in these cases this is reversed.
The problem ...
4
So, you want to "penetrate" the black background by your transparent polygons to see the lower background. I am not sure that it is possible with MapServer, but I can suggest another trick.
You can create a very big polygon covering all your area and even more extended, using any GIS software. Then you can erase your polygons from this area polygon, and ...
4
You can check out this site with detailed comparison of Mapserver vs. Geoserver
http://www.esdmdata.co.uk/mapserver-and-geoserver-and-tilecache-comparison-serving-ordnance-survey-raster-maps
3
Must learn to read the MapServer docs more closely. Turns out I needed to specifiy "pwd" and "uid" rather than "password" and "user_id" in the connection string for the layer in the mapfile....
http://mapserver.org/input/vector/mssql.html#option-2-connect-through-mapserver-plugin
3
This is documented here. In short, you can add a WMS layer within your mapfile as follows:
LAYER
NAME "country_bounds"
TYPE RASTER
STATUS ON
CONNECTION "http://demo.mapserver.org/cgi-bin/wms?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "country_bounds"
...
3
During configuration PostGIS is looking for GDAL, the GDAL-config-file that is:
http://postgis.refractions.net/documentation/manual-2.0/postgis_installation.html#installation_configuration
So yes, I think you need to build PostGIS again; I don't know about a way to point PostGIS to a different/new version of GDAL.
3
It means that MapServer is trying to access a column that no longer exists in raster_overviews. Before PostGIS 2.0 was released, the raster_overviews table was re-implemented as a view and as part of that cleanup, various columns were removed, added or renamed.
If you're not on the latest MapServer, you may want to upgrade. If the latest still causes the ...
3
The solution came from the MapServer users list. It is to have a full underlying square, and a half square on top.
http://lists.osgeo.org/pipermail/mapserver-users/2012-October/073443.html
SYMBOL
NAME 'SQUARE_FULL'
TYPE vector
FILLED true
POINTS
0 0
0 1
1 1
1 0
0 0
END
END
SYMBOL
...
3
If you can accept some quality degradation in the image, you may try out something like the following, using the GDAL utilities:
gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" input.tiff output.tiff
gdaladdo -r average --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR 2 4 8 16 output.tiff
The above should ...
3
I think it would depend on your needs and available resources. You can use both a map server and a tile server. For example, Geoserver comes with Geowebcache, a tile server.
I know that a server map use spatial data from a DB, it generate image
that can be read by client map library (openlayer ...). For example if
I have a shapefiles and I don't need ...
3
It depends on tiling software.
For example, in MapProxy (what is excellent choice for tiling), you can define 'coverages' in your configuration: http://mapproxy.org/docs/1.5.0/seed.html#id7, and regenerate only those areas. So, whenever your polygons change, define new coverage and re-seed your cache.
3
It sounds like you're quite new to web mapping, learning all of these technologies will take time (albeit a worthwhile investment).
In the meantime, you could probably achieve your objectives in an afternoon using a hosted map publication platform like MangoMap.
3
To extract lon/lat in text format from a database table, you can do something like:
SELECT ST_X(geom), ST_Y(geom) FROM yourgeospatialtable;
Where geom is the spatially enabled column.
There probably is also an OpenLayers function to do that, but I am not exactly sure where you want to do it (server/client?)
3
The answer to your question is subjective (a matter of opinion) so it might be voted down (-1). Since your new to this site, I will go ahead and answer -- mapserver, open layers and postgis sql would be a very good combination for an open source solution. Geoserver is also an option instead of mapserver -- it is java based. There are also other javascript ...
2
In my opinion the relevant issue is the image format. For a large aerial image it is recommended that you use a format that (a) achieves high a compression ratio and (b) features partial decompression.
As far as I know, the only formats that meet these two requirements are ECW, MrSID and GeoTIFF. Unfortunately ECW and MrSID are propietary. About GeoTIFF, ...
2
I installed qgis and qgis_server using this tutorial:
http://underdark.wordpress.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/
Characteristics:
Ubuntu 12.04.O
Virtual Machine
In "/usr/lib/cgi-bin/" create a folder called "test" ."test" is where you will save your qgis project and .shp too. Inside this folder you must copy the file ...
2
I have had something like this after performing an higher level (eg ADJUST or SPLINE) image georeferencing in ArcGIS Desktop. Ie I georeferenced the image, image looked fine in ArcGIS. But when I open in Global Mapper (free eval for viewing) or mapserver, its in the wrong location.
Took ages to sort out, but it seems ArcGIS can read some of the additional ...
2
Seems like you'd be better off validating the input using javascript in the browser before sending the data to the web application.
A quick search for "javascript validate postcode netherlands" found:
http://www.codingforums.com/showthread.php?t=178654
...hope this helps.
2
you can check out this example here for source code - MapServer WFS Demo and OpenLayers 2.10 SLD support for vector styles.
Beside this you can glance at:
MapServer and OpenLayers configuration here
WFS: WA National Parks Example, here
and your wfs call for vector layer similir to this:
lyr = new OpenLayers.Layer.Vector("WFS protocol continents", {
...
2
If I have understood your question, you have created the HEADER and the FOOTER files, but not the TEMPLATE one. The latter file is mandatory, and in your scenario it 'generates' the contents of HTML's body.
Besides, inside the LAYER object of your mapfile there should also be a reference to the template file, given via TEMPLATE.
For point based queries, it ...
2
Here is a guide that is using Ordnance Survey tilecached rasters
http://www.esdmwms.no-ip.co.uk/scripts/tilecache/tilecache-2.11/indexOS27700.html
(some tiles are no longer present - seems the location has been moved/expired)
How to Guide
http://www.esdmdata.co.uk/tilecache-on-iis7-how-to
2
If setting a DEBUG 5 on both your LAYER and MAP objects, and also add CONFIG MS_ERRORFILE "ms_error.log" in your MAP object. You should be able to see more about what's going on.
You should be able to see the temp mapfile being created to execute your query. You should also be able to see the postgresql query built to fetch your records, which you could ...
2
I'm not sure, but this trick may work:
Add FILTER to validation block of the layer's description, like this:
LAYER
...
VALIDATION
'FILTER' '.'
END
...
When you want to show all of the data in your layer, add the following string to your URL request :
&map.layer[mylayer]=FILTER+("[mycolumn]"+~*+".")
I hope this will help.
2
I can use the following code to show your layers on top of Google Maps:
var map;
function init() {
//Create the map object
map = new OpenLayers.Map('map_element',{
maxExtent: new OpenLayers.Bounds(
-128 * 156543.0339,
-128 * 156543.0339,
128 * 156543.0339,
...
2
Is dynamically generating Choropleth maps a solved problem?
No. The in-browser examples you point to use simplified shapes for the world's countries. This fits into most browser's processing and memory constraints. If you were to make a choropleth of, for instance, census blocks, every browser would crash. The geographic data matters.
There's no ...
2
WMS has a request called GetFeatureInfo that you can use and will give you the information you need.
To get this information you don't need any programming or using any SDK: on the client side just build a valid GetFeatureInfo request and send it to the WMS server; that is, you don't directly query the database or the shapefile. Both GeoServer and MapServer ...
2
We recently added a couple of wiki pages dealing with installing Mapserver under IIS:
https://github.com/mapserver/mapserver/wiki/Installing-Mapserver-under-IIS-7.n-with-FastCGI
https://github.com/mapserver/mapserver/wiki/Configuring-FastCGI-for-Mapserver-on-IIS-5.n-and-6.n-x86
These should get you started, unless you are using php-mapscript: in that case ...
2
Mapserver has recently introduced the concept of mask layers (a mask behaves quite like a mask in Photoshop by blending with the layer it is applied to).
The RFC describes what they do and how they can be used. By reading your answer it seems like you could use a mask layer to obtain the 'keyhole' effect you are looking for.
I am not sure if this feature ...
2
Judging from the last few lines of output:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking ...
Only top voted, non community-wiki answers of a minimum length are eligible


