New answers tagged mapserver
I was able to define legend on fly (i.e. definition of boundaries are made on fly) using the following trick: DATA "geom FROM (SELECT E.%type% as value, (select max(%type%)/5 from EMISSIONS) as fifth_of_max_value, E.YEAR as YEAR, E.SHAPE_60M as geomFROM EMISSIONS E WHERE e.level=%level% ) USING NONE" Then, in the classes definition, I use the ...
I have solved my problem. Perhaps not the best way... The solution was a "singleTile" option for every WMS-Layer. It was set always to true. With "singleTile: false" I solved my problem. Actually my problem with WMS "vector" layers persisted on all zoom levels. It was simply difficult to see this.
When I pasted your WKT into http://prj2epsg.org - it suggested a number of possible codes one of which is epsg:3059 another possible one is EPSG:25884 TM Baltic93. But it looks like your problem is to do with your MapServer set up not the projection of the shapefile.
I do't know why you have set EPSG:42304 as projection. This value is not defined in the SRS list or the EPSG registry. EPSG:3059 has the same parameters as your WKT definition. You have to add it to your list of wms_srs to allow requests in that srs.
After a lot of trials and errors, I have come up with solution which has this functionality: zoom in; zoom out; center map; legend (embedded into map, check section LEGEND ); scalebar (embedded into map, check section SCALEBAR). reference map (displayed nex to map, check section REFERENCE). make persistent changes to map (for example, I click a button, ...
You should add at least one CLASS/STYLE to your LAYER block: CLASS STYLE COLOR 0 0 0 END END
I'm not sure if this will fix your problem, but the projection information in the map file is, I think, incorrect. For example in the first PROJECTION declaration (as below), there should be just one projection, which should be the default projection for the service. MAP NAME "africa_southafrica_admin" PROJECTION "init=epsg:4326" ...
I'd change your map file in these ways: You don't have a WEB ... END section in your map file? Check documentation to see if you need it (I always include one). Your LAYER section should have a projection defined. Your DATA defn should be in the form of a SQL SELECT statement. Not sure you really want STATUS OFF? Like this: LAYER NAME "plats" ...
This isn't completely a MapServer issue it's an issue with the standard BlueMarble tif. It's just not intended to be displayed as a Polar projection. As you zoom into the hole you should see some content, but there will always be a hole. You can see the same effect in the below image showing Antarctica, in this instance we have the standard BlueMarble ...
Top 50 recent answers are included