[MAPSERVER-USERS] Route Layer - Transparency
Hello Ka-mappers, I am successfully showing routing on my map using ka-map routing. I am unable to set TRANSPARENCY to this route layer. I have two map files, a) main.map (consists of many layers) b) route.map (consists of only one route layer) In main.map, I am able to play with transparency. But, I am unable to set transparency to route.map. I am using GD/PNG driver, and png24 as outputformat. Your suggestions will be highly appreciated. Regards, Ambastha -- View this message in context: http://www.nabble.com/Route-Layer---Transparency-tp16442995p16442995.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] 500 Internal server error
I've compiled and installed mapserver on Suse 10.0 and mapserv file is on cgi-bin directory. When I try to run the scripts I get a 500 internal error message. I can read on this page http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix /500 Internal server error: This is a fairly generic error message. All it basically tells you is that the web server was unsuccessful in running the program. You will have to consult the web server's error log to find out more, and may need to enlist the help of your webmaster/system administrator/ Mapserver creates a 0 bytes image in temp directory, and returns 500 error, so I think Apache is running program but mapserver fails. mapserv -v returns: MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there any way to check mapserv script is compiled ok? Should I check other things? Thanks for your help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 500 Internal server error
On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote: I've compiled and installed mapserver on Suse 10.0 and mapserv file is on cgi-bin directory. When I try to run the scripts I get a 500 internal error message. I can read on this page http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix 500 Internal server error: This is a fairly generic error message. All it basically tells you is that the web server was unsuccessful in running the program. You will have to consult the web server's error log to find out more, and may need to enlist the help of your webmaster/system administrator well, what does your Apache error_log say? Did you check the logfile? Mapserver creates a 0 bytes image in temp directory, and returns 500 error, so I think Apache is running program but mapserver fails. mapserv -v returns: MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there any way to check mapserv script is compiled ok? Should I check other things? Thanks for your help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 500 Internal server error
Apache error log : [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: undefined symbol: gdImageJpegCtx, referer: http://www.dipuleon.es/atica/portada_turcia.html [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of script headers: mapserv, referer: http://www.dipuleon.es/atica/portada_turcia.html I tried PNG, it works fine, but JPEG returns 500 error P Kishor escribió: On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote: I've compiled and installed mapserver on Suse 10.0 and mapserv file is on cgi-bin directory. When I try to run the scripts I get a 500 internal error message. I can read on this page http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix 500 Internal server error: This is a fairly generic error message. All it basically tells you is that the web server was unsuccessful in running the program. You will have to consult the web server's error log to find out more, and may need to enlist the help of your webmaster/system administrator well, what does your Apache error_log say? Did you check the logfile? Mapserver creates a 0 bytes image in temp directory, and returns 500 error, so I think Apache is running program but mapserver fails. mapserv -v returns: MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there any way to check mapserv script is compiled ok? Should I check other things? Thanks for your help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 500 Internal server error
On 11/2/07, Ignacio J. Moratiel [EMAIL PROTECTED] wrote: Apache error log : [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: undefined symbol: gdImageJpegCtx, referer: http://www.dipuleon.es/atica/portada_turcia.html [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of script headers: mapserv, referer: http://www.dipuleon.es/atica/portada_turcia.html I tried PNG, it works fine, but JPEG returns 500 error there you go. You solved it yourself (with a little nudge from me and a big nudge from your error log). If you insist on using Jpeg, recompile the program correctly (it seems that your mapserv does claim that it supports jpeg, but I don't know what is going on there), else use PNGs or GIFs. Should keep you busy for a while. Good luck. P Kishor escribió: On 4/2/08, Ignacio J. Moratiel [EMAIL PROTECTED] wrote: I've compiled and installed mapserver on Suse 10.0 and mapserv file is on cgi-bin directory. When I try to run the scripts I get a 500 internal error message. I can read on this page http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix 500 Internal server error: This is a fairly generic error message. All it basically tells you is that the web server was unsuccessful in running the program. You will have to consult the web server's error log to find out more, and may need to enlist the help of your webmaster/system administrator well, what does your Apache error_log say? Did you check the logfile? Mapserver creates a 0 bytes image in temp directory, and returns 500 error, so I think Apache is running program but mapserver fails. mapserv -v returns: MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there any way to check mapserv script is compiled ok? Should I check other things? Thanks for your help ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 4.8.3: MapScript setProjection
Simon, Are you also setting the wms_srs metadata in the map's web object? If not then perhaps try setting the wms_srs metadata in the web object to EPSG:27700 and see if that helps. Daniel Simon Greig wrote: Hi, We have made the changes to remove the explicit layer setProjection and allow each layer to inherit the projection from its map. However for some vector layers we consistently get: Layer must have an EPSG or AUTO projection code (in its PROJECTION object or wms_srs metadata) A layer either works or does not work, but 30% of our layers fail with this error. Also layers that work or fail differ between environments. We don't use a map file for layer data (just for mapObj config) as all of our layer configurations are stored in a database. Our WMS_LAYERS table stores all of the data that you would normally see within the LAYERS section of a mapfile. I have checked the PROJECTION setting and for all layers it is set to init='epsg:27700'. Our code manually constructs mapObj and layerObj objects taking the configuration from our config database. When our code constructs the layerObj JNI objects it checks the PROJECTION value from the database and if the DB value is the same as the mapObj projection then the code skips the layerObj.setProjection because it assumes that the layer will inherit the projection from the mapObj used in the constructor of the layerObj. None of the layers in the list are WMS layers and the layers that fail are all going to our Oracle Spatial database. I have asked the database team to investigate the differences between layers that work and fail in the same environment and layers that work in one environment and fail in another. I have inspected the development database and a I cannot see anything different between a layer that works and one that does not. e.g. If I simulate the mapfile syntax for our layers for the benefit of the email, if we had defined our layers in the mapfile they would look like this: LAYER NAME 2001UrbanAreas(Census) CONNECTION usr/pwd@SPR01 STATUS ON TYPE POLYGON DATA GEOMETRY FROM OTHERAGENCIES.DCLG0001 USING SRID 81989 MAXSCALE MINSCALE 0 TRANSPARENCY 60 PROJECTION init=epsg:27700 END LAYER NAME EnglishHeritageRegions CONNECTION usr/pwd@SPR01 STATUS ON TYPE POLYGON DATA GEOMETRY FROM OTHERAGENCIES.ENGH0001 USING SRID 81989 MAXSCALE MINSCALE 0 TRANSPARENCY 60 PROJECTION init=epsg:27700 END 2001Urban layer fails with the projection error, the EnglishHeritageRegions works for the exact same bounding box/scale. We have not applied the METADATA change as the layers are not external WMS layers and presumably setting the METADATA wms_srs would provide the same effect as calling layerObj.setProjection? If we restore the code to setProjection for every layer then the errors go away - but our performance goes down. Does any of this description allow anyone to suggest areas that I should get the database team to focus on? Any advice appreciated :-) Simon / / /Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980)
Tamas, Thanks for the suggestion but the layerObj does not contain and UpdateFromString property or method (when viewed from Visual Studio's object browser nor when viewing the API reference online). Thoughts? Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tamas Szekeres Sent: Tuesday, April 01, 2008 4:48 PM To: Hulbert, Brian Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) You can probably use layerObj.UpdateFromString with the string you have in your mapfile. However I'm not sure how you loose your settings after the first refresh? Do you recreate your map by using Clone() or something? We should also fix msCopyLayer to copy the layerinfo with the graticule layers. Best regards, Tamas 2008/4/1, Hulbert, Brian [EMAIL PROTECTED]: I have a MAP file that contains a layer for displaying graticule (see below). However, after the first refresh, the labelformat for my grid object is lost. This was noted in bug 1980. I cannot find a workaround for this bug by traversing the layer-class object hierarchy and trying to set a labelformat for the GridObject. Can the label format be reset via the mapscript_csharp dll interface? If not, is drawing the graticule lines better accomplished via a shape file? Even if I need to do both a equirectangular and orthographic projections? Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 LAYER NAME grid METADATA DESCRIPTION Grid END TYPE LINE STATUS ON PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME Graticule COLOR 192 192 192 LABEL COLOR 255 255 0 FONT arial TYPE truetype SIZE 8 POSITION AUTO #ur PARTIALS FALSE BUFFER 5 END END GRID LABELFORMAT %g° # dec degrees with symbol MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 64 END END # Layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980)
Brian, Which version are you using? I guess the mapserver 5.0 should contain this option. Here's the related change, which is pretty old. http://trac.osgeo.org/mapserver/changeset/6362 Best regards, Tamas 2008/4/2, Hulbert, Brian [EMAIL PROTECTED]: Tamas, Thanks for the suggestion but the layerObj does not contain and UpdateFromString property or method (when viewed from Visual Studio's object browser nor when viewing the API reference online). Thoughts? Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tamas Szekeres Sent: Tuesday, April 01, 2008 4:48 PM To: Hulbert, Brian Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) You can probably use layerObj.UpdateFromString with the string you have in your mapfile. However I'm not sure how you loose your settings after the first refresh? Do you recreate your map by using Clone() or something? We should also fix msCopyLayer to copy the layerinfo with the graticule layers. Best regards, Tamas 2008/4/1, Hulbert, Brian [EMAIL PROTECTED]: I have a MAP file that contains a layer for displaying graticule (see below). However, after the first refresh, the labelformat for my grid object is lost. This was noted in bug 1980. I cannot find a workaround for this bug by traversing the layer-class object hierarchy and trying to set a labelformat for the GridObject. Can the label format be reset via the mapscript_csharp dll interface? If not, is drawing the graticule lines better accomplished via a shape file? Even if I need to do both a equirectangular and orthographic projections? Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 LAYER NAME grid METADATA DESCRIPTION Grid END TYPE LINE STATUS ON PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME Graticule COLOR 192 192 192 LABEL COLOR 255 255 0 FONT arial TYPE truetype SIZE 8 POSITION AUTO #ur PARTIALS FALSE BUFFER 5 END END GRID LABELFORMAT %g° # dec degrees with symbol MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 64 END END # Layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] flash swf output
Hello, I have a couple of suggestions for the SWF output which would really help with making more interesting applications: -THE most important: name the objects in the swf so they can be accessed by ActionScript -define the rollover, rollout, press and release actions in one prototype in the root. this will not break any existing applications and will reduce file size a bit. -allow the user to set the amount by which the resolution can be reduced. how much is lost with FULL_RESOLUTION=FALSE ? -line thickness for vector lines I'd like to help work on some of these things, but I need some guidance. Maybe a google summer of code thing? I am a student Also, the page at http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html should be updated to indicate that the new version of XAMPP contains a compiled version of Ming 0.4 for Windows. Florin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] agg and line widths
Thomas, I'm drawing administrative boundaries like counties. The data came from a polygon shapefile and converted to PostGIS. The boundaries are topologically correct in that shared boundaries are completely coincident and not adjacent. I have never seen these polygons being drawn like you describe. It didn't even occurred to me that MapServer would have any difficulties drawing this kind of data... How do you publish for instance the US states? Thanks, Duarte tbonfort wrote: hi, you're probably drawing polygons with adjacent borders right? in this case, each line except the outer ones is drawn twice, and thus its final width is larger than what is requested. I don't think there's much you can do about it except preprocess your data to transform it into a line layer with no duplicates. cheers, -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com On Sat, Mar 29, 2008 at 1:22 PM, DNC [EMAIL PROTECTED] wrote: Hi. I'm having trouble getting thin lines to draw. The thinnest line I get seems to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. Anyone can point out why this happens? Some sections from the map file: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 END LAYER NAME 'test' GROUP test group TYPE POLYGON #MINSCALE 25 CONNECTIONTYPE postgis CONNECTION 'bla' PROCESSING CLOSE_CONNECTION=DEFER DATA 'the_geom from table using unique gid' #FILTER '' METADATA 'wms_title' 'some layer' ows_abstractsome text 'wms_srs' 'EPSG:27492' wms_opaque0 wms_group_title group title wms_group_abstract group text END STATUS ON TRANSPARENCY 100 PROJECTION 'init=epsg:27492' END EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 MINSCALE 1 #MAXSCALE 10 # data is queryable DUMP TRUE HEADER /ms_ogc_workshop/templates/rivers_query_header.html TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html # fuzziness for querying TOLERANCE 5 CLASS NAME 'outlines' STYLE WIDTH 1 OUTLINECOLOR 232 232 232 END END END Regards, Duarte -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] agg and line widths
hi, it's one of the drawbacks of antialiasing in general, not a mapserver specific issue. an analogy could be found when drawing on paper with a felt-tip pen: if you pass twice on the same line the resulting effect is that the paper is twice as saturated in ink and the line appears thicker. this doesn't happen when drawing aliased bresenham lines as with the gd renderer, as multiple passes on a given line produces the same result as a single pass. hth, thomas On Wed, Apr 2, 2008 at 9:51 PM, DNC [EMAIL PROTECTED] wrote: Thomas, I'm drawing administrative boundaries like counties. The data came from a polygon shapefile and converted to PostGIS. The boundaries are topologically correct in that shared boundaries are completely coincident and not adjacent. I have never seen these polygons being drawn like you describe. It didn't even occurred to me that MapServer would have any difficulties drawing this kind of data... How do you publish for instance the US states? Thanks, Duarte tbonfort wrote: hi, you're probably drawing polygons with adjacent borders right? in this case, each line except the outer ones is drawn twice, and thus its final width is larger than what is requested. I don't think there's much you can do about it except preprocess your data to transform it into a line layer with no duplicates. cheers, -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com On Sat, Mar 29, 2008 at 1:22 PM, DNC [EMAIL PROTECTED] wrote: Hi. I'm having trouble getting thin lines to draw. The thinnest line I get seems to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. Anyone can point out why this happens? Some sections from the map file: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 END LAYER NAME 'test' GROUP test group TYPE POLYGON #MINSCALE 25 CONNECTIONTYPE postgis CONNECTION 'bla' PROCESSING CLOSE_CONNECTION=DEFER DATA 'the_geom from table using unique gid' #FILTER '' METADATA 'wms_title' 'some layer' ows_abstractsome text 'wms_srs' 'EPSG:27492' wms_opaque0 wms_group_title group title wms_group_abstract group text END STATUS ON TRANSPARENCY 100 PROJECTION 'init=epsg:27492' END EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 MINSCALE 1 #MAXSCALE 10 # data is queryable DUMP TRUE HEADER /ms_ogc_workshop/templates/rivers_query_header.html TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html # fuzziness for querying TOLERANCE 5 CLASS NAME 'outlines' STYLE WIDTH 1 OUTLINECOLOR 232 232 232 END END END Regards, Duarte -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users