[mapserver-users] RE: Possible bug: Cairo/PDF output labels
It is a line layer with roads, and the label is the name of the roads. The problem is only when we try to output as PDF. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4897192.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] RE: Possible bug: Cairo/PDF output labels
I'll try to be a bit more specific :) Below I've posted my layers as they look in the mapfile. I'm drawing the PDF with C# MapScript in a webapplication. When debugging, I can see that it fails when calling draw() on my mapObj. It doesn't fail everytime, but most of the time. In my logfile it stop with this line: [Wed Apr 18 12:39:37 2012].327000 msDrawMap(): Drawing Label Cache, 0.000s My layers: LAYER # Streetnames CONNECTION C:\proj\Grundkort\VEJMIDTE_syddjurs.tab CONNECTIONTYPE ogr FILTER ([vejnavn] != UDEN NAVN) GROUP Oversigtskort LABELITEM vejnavn MAXSCALEDENOM 6 NAME Vejnavne STATUS on TYPE line METADATA ows_group_title Oversigtskort ows_title Oversigtskort - Vejnavne END CLASS LABEL ANGLE follow ALIGN center COLOR 0 0 0 FONT Arial MINDISTANCE 150 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 POSITION cc SIZE 10 TYPE truetype END END END LAYER # Housenumbers CONNECTION C:\proj\Grundkort\Husnr.tab CONNECTIONTYPE ogr GROUP Oversigtskort LABELITEM husnummer MAXSCALEDENOM 2000 NAME Husnumre STATUS on TYPE annotation METADATA ows_group_title Grundkort ows_title Grundkort - Husnumre END CLASS LABEL ANGLE [rotation] ALIGN center COLOR 0 0 0 FONT Arial OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 POSITION cc SIZE 10 TYPE truetype END END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4897513.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] Possible bug: Cairo/PDF output labels
We're trying to output a PDF with the Cairo driver. When printing a label with ANGLE set to follow, auto or an attribute, it fails regularly. Has anyone experienced this before? A solution or workaround? /Kristian -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4894039.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] Re: Problem with ECW files
Problem solved! I had to add a reference to my Visual Studio project to the gdal_csharp.dll. Now, I have the GDAL interface when adding using OSGeo.GDAL to my class. This allows me to use the following code to load the right DLL's: String gdal_bin_path = @c:\path\to\my\binaries; String gdal_driver_path = @c:\path\to\my\binaries\gdalplugins; String path = Environment.GetEnvironmentVariable(PATH); if (!path.Contains(gdal_bin_path)) { nbsp;nbsp;Environment.SetEnvironmentVariable(PATH, gdal_bin_path + ; + path); } Gdal.SetConfigOption(GDAL_DRIVER_PATH, gdal_driver_path); Now the ECW files show up as they are supposed to. - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5934825.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] Re: Problem with ECW files
Tamas Szekeres wrote: Try setting GDAL_DRIVER_PATH using SetConfigOption to the path of the plugin directory. Thanks for the quick reply :) I'm not sure where I'm supposed to use SetConfigOption? - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5921099.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] Problem with ECW files
I'm trying to show a ECW file in my application. I have checked with gdalinfo that GDAL supports the ECW format, and it is able to read the file. When using shp2img I'm able to create a image showing the ECW file. But when I try using my app. which uses MapScript to create a WMS service I get a service exception saying: msDrawMap(): Image handling error. Failed to draw layer named 'Ortofoto'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. I'm using Tamas' SDK from http://vbkto.dyndns.org/sdk/ vbkto.dyndns.org/sdk/ with the ECW plugin. - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5918048.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] MapScript WMS Server - Custom exceptions
Hi all I have created a C# MapScript wrapper for a WMS server. Now, I want to add some vendor-specific parameters to the request (e.g.: http://server/wms?request=getmap...login=usrpassword=pwd;) This I have also made work, to a point. When the user enters invalid information, I just return a 403 errorpage (Access denied). I was thinking about throwing a WMS exception (XML/InImage/Blank) and wondering if MapServer/MapScript is able to throw custom exceptions? Or do I have to handle it myself? /Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-WMS-Server-Custom-exceptions-tp5541770p5541770.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] Re: MapScript dlls?
I use this build for my ASP.NET application: http://vbkto.dyndns.org/sdk/ http://vbkto.dyndns.org/sdk/ They are compiled for Windows, so as far as i can tell they should work. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-dlls-tp5537964p5541780.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] Output geospatial PDFs
Is MapServer able to output geospatial PDFs? I know that PDFlib is able to handle it in version 8 (commercial), but appearently not in PDFlib Lite as MapServer uses. http://www.pdflib.com/pdflib-cookbook/geospatial-pdf/starter-geospatial/ PDFlib cookbook about geospatial PDFs http://en.wikipedia.org/wiki/Geospatial_PDF Wikipedia article about geospatial PDFs /Kristian frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5541843.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] Re: Mapscript WFS wrapper for C-sharp
Is there anywhere I can find a working VS2008 project with MapScript? -- View this message in context: http://n2.nabble.com/Mapscript-WFS-wrapper-for-C-sharp-tp4661038p4680236.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] Re: Mapscript WFS wrapper for C-sharp
I tried using your binaries, but now Visual Studio's webserver crashes without any error messages. -- View this message in context: http://n2.nabble.com/Mapscript-WFS-wrapper-for-C-sharp-tp4661038p4674525.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] Re: Mapscript WFS wrapper for C-sharp
Hi Tamas, and thanks for the answer :) Unfortunately, when adding all the dll's from apache/cgi-bin I get http://img517.imageshack.us/img517/6708/screenshotruntimeerror.jpg this runtime error . And then a message like this: [FileLoadException: Det lykkedes ikke at initialisere en DLL. (Exception from HRESULT: 0x8007045A)] Roughly translated into Unable to initialize a DLL. I've also tried not only to add the DDL's but also all the EXE's from the apache/cgi-bin directory. Nothing changes :( -Kristian Frost -- View this message in context: http://n2.nabble.com/Mapscript-WFS-wrapper-for-C-sharp-tp4661038p4666538.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] Mapscript WFS wrapper for C-sharp
Hi list I've been trying to make a C-sharp wrapper for WFS. I'm using MS4W's binaries. I have added a reference for MapScript to my Visual Studio project. When I try to execute this code: OWSRequest req = new OWSRequest(); req.loadParams(); mapObj map = new mapObj(C:/Udv/CSharp/Webgraf/SRC/WebGrafKortGui/App_Data/map.map); return mapscript.msIO_getStdoutBufferBytes().ToString(); I get this error: System.TypeInitializationException: An exception was thrown by the type initializer for OSGeo.MapServer.mapscriptPINVOKE --- System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper --- System.DllNotFoundException: mapscript.dll I have tried adding mapscript.dll to my bin directory, but that changes nothing. -Kristian Frost -- View this message in context: http://n2.nabble.com/Mapscript-WFS-wrapper-for-C-sharp-tp4661038p4661038.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] PDFlib versions
Hi again I've just read that georeferenced PDF will be available in PDFlib 8. Now, I know MapServer uses PDFlib Lite 7 but would it be possible to compile MS with PDFlib 8? - Kristian Frost -- View this message in context: http://n2.nabble.com/PDFlib-versions-tp4559844p4559844.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] Re: How use WMS and WFS webservices
Hi Venkat Do you want to create a WMS/WFS with your data, or do you want to use another WMS/WFS in your application? - Kristian Frost -- View this message in context: http://n2.nabble.com/How-use-WMS-and-WFS-webservices-tp4559549p4559895.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] Raster layer as a way of branding
That's exactly what i was looking for, thanks a lot. - Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4507272.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] Raster layer as a way of branding
Hi I was wondering if it's possible to generate a map with a raster layer/png in the bottom right corner? As a way of branding the map with our company logo. /Kristian -- View this message in context: http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4439127.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] Re: PNG24 problem in IE6
You can try this: http://www.twinhelix.com/css/iepngfix/ http://www.twinhelix.com/css/iepngfix/ . -- View this message in context: http://n2.nabble.com/PNG24-problem-in-IE6-tp4408017p4439253.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