Tag Info

Hot answers tagged

16

The simple answer is that you don't need them, but it makes life much easier. You have to have some sort of server element between your database and the web browser: so you can either write your own server in PhP (or java or whatever) and handle all the vagaries of the database you are using and sort out the wire transfer formats etc and do the debugging and ...


13

The OGC spec only mandates the use of http. If it is compliant http it should be okay. Some possible methods: HTTP Basic Authentication (password sent as plain text, may have limited client support) HTTP Digest Authentication (more secure, may have limited client support) Filter IP address of client (easy to implement but not particularly secure). ...


10

I would recommend looking into TileMill which is made by the same people that were workign on Maps On A Stick. TileMill was either part of Maps On A Stick, or is what Maps On A Stick became - something like that. I forget the connection. Anyway... TileMill will let you load geographic data, style it how you like and then create a set of PNG map tiles for a ...


9

I would go with GeoServer It's the easiest to setup yet very powerful and completely OGC compliant. Lots of documentation and a very active user community... join user list serv.


8

This OGC post from 2005 says: There are no specific security aspects that are part of the OGC WMS/WFS/WCS Interface Specifications. Instead, security and authentication is best handled at another layer in the processing stack.


8

As based on my experience, I would recommend GeoServer, however i agree that it not 100% satisfy all the listed requirements as others too. * fast It much faster and accepted in many production high traffic solutions. In my production GIS site heavly used and still no issues found on response time/performance on GeoServer. * easy scalability ...


8

I've never tried either Mapserverpro.com or mapserving.com so I'd be interested to hear any experiences there. Setting up a cloud server on Amazon, Rackspace et al using the Opengeo Suite is pretty straightforward but to get the result you're after you'd want to be familiar with using javascript libraries. I'd suggest also looking at Geocommons who made ...


7

You should in your case have two layers, one for wood and one for water. You can have two layers using the same shapefile.. Then you canchoose what layers to visualize directly in the request by the LAYERS parameter. The classes only represent different parts of the data (e.g. how data in that layers should be rendered).


7

Here is another way that you can do it. This way involves using one layer with expressions in each class. It is a little more 'expensive' to do it this way because it involves logical expressions, but you may never notice the difference unless you hit really high-load situations. Each class has a two-part expression. Both parts of the expression need to ...


7

Postgresql is quite good handling multi-cores, especially since every connection gets spawned to a new process and thereby gets handled by the OS process scheduler. I've run large postgresql databases on both windows and linux (ubuntu server) and they both perform very well. However, most likely your performance will be heavily dependent on how well your ...


7

I like Esri's ArcGIS API for Microsoft Silverlight/WPF, and also the ArcGIS Viewer for Silverlight. You can use Bing with these, or base maps from ArcGIS.com. Also, consider using SQL Server 2008 with Sql Server Management studio to prototype spatial sql queries. Isaac Kunen's blog is a good resource. Best when used with the Sql Server Spatial Tools from ...


7

I have it working on Ubuntu 10.04/10.10 and 11.04. My first tutorial was this http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/ but under Ubuntu (with all installed from repos) is even easier. Enter the cgi-bin folder, create a project folder, copy in there the project file and a copy of qgis_mapserv.fcgi, then add a metadata file. ...


7

GeoServer is a Java web application packaged as a WAR file. It needs to be deployed in a Java servlet container of which Apache Tomcat is an implementation. You could also use another servlet engine like Jetty. So in order to use GeoServer, you will be obliged to use a Java servlet container. If you want to avoid the use of a servlet engine, you could also ...


7

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


6

I'd suggest checking this openlayers example: getfeatureinfo-control. It shows the feature info in a table on the page. Putting it into a popup should be easy changing some lines in the javascript. In general openlayers.org/dev/examples/ is a good resource for openlayers code snippets.


6

Your screen is probably running at 96 DPI, not 72. Computing scale as a ratio of 1:n is a risky business at best with a web map. If your map is being displayed on an average monitor, you can assume 96DPI. But that will be wrong on (say) a mobile device, or a projector, or a 19" LCD running at 640x480 resolution, etc. It is better to produce a scale bar ...


6

MapServer isn't going to do anything for you. You'd have to upgrade to the latest version to even have a chance, as prior versions just stripped the 3rd dimension in the database query. Your best bet might be to try GeoServer and the KML support there and see if you can visualize in Google Earth. Or failing that, write a little PHP script to pull your data ...


6

In your map file try changing the map's projection to read from the epsg file. Your current map projection isn't a full projection description. So rather than: MAP NAME TEST STATUS ON IMAGECOLOR 255 255 255 IMAGETYPE PNG PROJECTION "proj=utm" "ellps=WGS84" "datum=WGS84" END Use: MAP NAME TEST STATUS ON ...


6

Using GeoServer is the way to go if you want services adhering to the OGC spec. Openlayers is the client side library you're looking for (using google maps and bing). In my experience however, only coding in javascript kills my productivity. I spend hours hunting small bugs, even with developer tools and firebug. Therefore, I write most of my code in ...


6

In your code the first parameter to the OpenLayers.Layer.MapServer constructor is the name of the layer in OpenLayers rather than MapServer - so it can be set to anything. Try adding a layers parameter to the options instead. layer = new OpenLayers.Layer.MapServer( "MyLayerName", "http://localhost/cgi-bin/mapserv", { ...


6

You say you have checked the GetCapabilities and GetMap requests/responses which indicates you are running MapServer as a WMS. Thus you need to be using a WMS layer in OpenLayers - I'm not sure of the status of the MapServer layer. so you need something like: map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", ...


5

Use OUTLINECOLOR Example STYLE # solid fill COLOR 255 0 0 END STYLE # thick outline (could use a circle symbol with size too) OUTLINECOLOR 0 0 0 WIDTH 3 ANTIALIAS TRUE END How do I have a polygon that has both a fill and an outline with a width? http://mapserver.org/faq.html


5

I think you should define different classes whithin your layer that has individual symbols and different max-min scales. HTH Nicklas


5

As both a GDAL and MapServer developer, I would consider the C# bindings of both projects "mature". Tamas Szekerest does a great job working to keep feature parity between the Python and C# bindings of GDAL/OGR. While the basics of both the C# and Python bindings are essentially the same in GDAL/OGR, niceties around the edges can and often are quite ...


5

As you also asked for resources, I recommend taking a look at http://colorbrewer2.org/ - they help choosing colors for maps that convert well to grayscale.


5

Use the geoserver proxy extension: http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension The proxy is configurable to restrict requests to specific hosts and MIMEtypes. (specific host can be https - apache can do this http://httpd.apache.org/docs/2.0/ssl/ssl_intro.html)


5

Read about LAYER CLASSITEM CLASS EXPRESSION in Mapserver documentation HTH /Nicklas edit: example but with polygons in the documentation: http://mapserver.org/tutorial/example1-3-map.html#example1-3-map What can be tricky is to get the symbols right. Is that the problem?


5

Your map file is fine. I've seen the Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed error when the extension to the map file in the URL is incorrect e.g. .map Works: http://myurl.com/cgi-bin/mapserv?map=/path/to/file.map&layer=base&mode=map .map2 fails with above error: ...


5

It really depends what you need to do with the data. For example if you only need to display vector points on top of a base map then you can create a very simple server-side script (in Python, .NET, PHP) to publish spatial data from your database. The ability of PostGIS to serve GeoJSON makes this trivial. Serving single features as KML and creating ...


5

In Mapserver you can either set the OPACITY at the LAYER level or for each individual STYLE. A layer can have multiple styles for each of the different line types. This method relies on you being able to split your linestrings into different classes based on an attribute (such as year in the example below). LAYER CLASSITEM "year" ... CLASS NAME "Lines" ...



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