[mapserver-users] labeling streets
Hello! I'm stuck in simple-looking problem, but the solution is just hiding somewhere. The question is: how I can label only those line features, whos label does not run over the line like that: http://picasaweb.google.com/snaperski/Ort#5344831130138846050 As street lengths are very different, I cant solve the problem by setting suitable MINFEATURESIZE for respective MINSCALE,MAXSCALE range. All the best, Raivo Alla ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] labeling streets
Hi, You could set MINFEATURESIZE to AUTO and then only the labels that fit on the lines should be drawn. Regards, Christy Raivo Alla wrote: Hello! I'm stuck in simple-looking problem, but the solution is just hiding somewhere. The question is: how I can label only those line features, whos label does not run over the line like that: http://picasaweb.google.com/snaperski/Ort#5344831130138846050 As street lengths are very different, I cant solve the problem by setting suitable MINFEATURESIZE for respective MINSCALE,MAXSCALE range. All the best, Raivo Alla ___ 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] Need help with ProxyPass configuration, please
AJ, Did you ever get an answer to you question? I have a similar problem I think. Below is a description of what I am trying to deal with. I'm just getting into Apache and have used IIS for a few small sites. My current situation is that I have Apache and IIS running on the same server with one IP address. IIS is running on port 8080 and Apache is running on port 80. Access to both my apache sites and iis sites work so long as I type in the :8080 for the iis sites. I now have a need for users to no longer type in the port 8080 so I have attempted to add some virtual hosts in my apache vhosts.conf file. Below are the contents of that file... NameVirtualHost 111.111.111.111:80 NameVirtualHost 111.111.111.111:8080 # Apache Site VirtualHost 111.111.111.111:80 DocumentRoot /ms4w/Apache/htdocs ServerName 111.111.111.111 /VirtualHost # IIS Site VirtualHost 111.111.111.111:8080 ServerName 111.111.111.111:8080 DocumentRoot F:/Applications/2009/Custom/SomeTown ProxyRequests OFF ProxyPass / http://111.111.111.111:8080/ ProxyPassReverse / http://111.111.111.111:8080/ /VirtualHost Access to the apache sites work fine, however access to the IIS sites do not work unless I still type in the :8080. If I replace the IP:port number with * in the VirtualHost tags AND make the IIS Site the first in the list then I can access my IIS sites without typing port 8080 in the URL, however the Apache sites are not accessible. I have also tried the following (among other configurations), but just can't seem to get thiings to work NameVirtualHost 111.111.111.111:80 # Apache Site VirtualHost 111.111.111.111:80 DocumentRoot /ms4w/Apache/htdocs ServerName 111.111.111.111 /VirtualHost # IIS Site VirtualHost 111.111.111.111:80 ServerName 111.111.111.111:80 DocumentRoot F:/Applications/2009/Custom/SomeTown ProxyRequests OFF ProxyPass / http://111.111.111.111:8080/ ProxyPassReverse / http://111.111.111.111:8080/ /VirtualHost The above code doesn't work either; it seems as though the 2nd virtual host isn't being recognized. SomeTown is actually in F:/Applications/2009/Custom. Below is the output of an error log file. Hope you can help. Thanks, Carl [Thu Jun 04 08:43:07 2009] [notice] Apache/2.2.10 (Win32) configured -- resuming normal operations [Thu Jun 04 08:43:07 2009] [notice] Server built: Oct 10 2008 12:39:04 [Thu Jun 04 08:43:07 2009] [notice] Parent: Created child process 844 [Thu Jun 04 08:43:07 2009] [notice] Child 844: Child process is running [Thu Jun 04 08:43:07 2009] [notice] Child 844: Acquired the start mutex. [Thu Jun 04 08:43:07 2009] [notice] Child 844: Starting 64 worker threads. [Thu Jun 04 08:43:07 2009] [notice] Child 844: Starting thread to listen on port 80. [Thu Jun 04 08:43:23 2009] [error] [client 111.111.111.111] File does not exist: C:/ms4w/Apache/htdocs/SomeTown [Thu Jun 04 08:43:28 2009] [error] [client 111.111.111.111] File does not exist: C:/ms4w/Apache/htdocs/SomeTown -- View this message in context: http://n2.nabble.com/Need-help-with-ProxyPass-configuration%2C-please-tp1972267p3042849.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] Ignoring top level settings
Hello list, It seems as though my top level settings in my mapfile are being ignored. No matter what I put as projection, the output doesn't change (unless it's an invalid projection). Changing the values of EXTENT doesn't change anything either, as my map always starts zoomed out very far. I also have not been able to make my base layer output as anything other than jpg. I have a feeling that this is related to an invalid /tmp/ location in the mapfile. I have not been able to write the location of the /tmp/ folder (it's on the root of my c: drive) in a way that mapserver will use it. Apart from these things, everything works fine. I've been able to sort of counter-act the projection ignoring by telling mapserver that the layer's projection has lat_0=-49 when in fact, it is in epsg:43204 meaning lat_0=49. I've attached my mapfile. Thanks in advance, Alexandre Laplante Étudiant Co-op / Co-op Student Division de l'Agriculture / Agriculture Division Statistique Canada / Statistics Canada 170 Tunney's Pasture Driveway Éd. Jean-Talon, 12è étage D1 / Jean-Talon Building, 12th floor D1 Ottawa, Ontario alex.map alex.map Description: alex.map ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Need help with ProxyPass configuration, please
cbrydon wrote: I have also tried the following (among other configurations), but just can't seem to get thiings to work NameVirtualHost 111.111.111.111:80 # Apache Site VirtualHost 111.111.111.111:80 DocumentRoot /ms4w/Apache/htdocs ServerName 111.111.111.111 /VirtualHost # IIS Site VirtualHost 111.111.111.111:80 ServerName 111.111.111.111:80 DocumentRoot F:/Applications/2009/Custom/SomeTown ProxyRequests OFF ProxyPass / http://111.111.111.111:8080/ ProxyPassReverse / http://111.111.111.111:8080/ /VirtualHost The above code doesn't work either; it seems as though the 2nd virtual host isn't being recognized. SomeTown is actually in F:/Applications/2009/Custom. Below is the output of an error log file. Carl, You need a single VirtualHost for what you're trying to do. You have to decide which directories go to the proxy'd (IIS) server and list them there, and then let the local (MS4W) server handle the rest. For instance, if what you want is: http://111.111.111.111/SomeTown- IIS http://111.111.111.111/AnotherTown - IIS http://111.111.111.111/ (anything else) - MS4W Then a config as follows should do the trick: NameVirtualHost 111.111.111.111:80 # Apache Site VirtualHost 111.111.111.111:80 DocumentRoot /ms4w/Apache/htdocs ServerName 111.111.111.111 # Forward some directories to the IIS server on port 8080 # Anything not explicitly proxy'd here is expected to be local by default. ProxyPass/SomeTown http://111.111.111.111:8080/SomeTown ProxyPassReverse /SomeTown http://111.111.111.111:8080/SomeTown ProxyPass/AnotherTown http://111.111.111.111:8080/AnotherTown ProxyPassReverse /AnotherTown http://111.111.111.111:8080/AnotherTown /VirtualHost I hope that helps Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] CGI issue
Hello, I compiled mapserver 5.4.0 and the process went smoothly. It created the mapserv executable. I am using Solaris 10 on a Unix box and Glasssfish as a web server. I set up the cgi-bin in WEB-INF and I checked it with some perl scripts and they worked fine (Hello, etc.) and I copied the mapserv executable to that location. I ran ./mapserv and ./mapserv -v and both returned the expected results (This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. AND MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER S UPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER S UPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE.) I was able to create an image using shp2img at the command prompt also. However, when I use a web browser to test a map (http://mywebserver/cgi-bin/mapserv) I get a browser showing nothing. I checked the glassfish error log and saw this: ServletContext.log():cgi: runCGI (stderr):Unrecognized character \x7F at /export/home/www/gim/build/web/WEB-INF/cgi/mapserv line 1.|#. It seems as though CGI is trying to run mapserv as an script instead of as an executable. Last buy not least I made sure the proper directories and files had the right permissions. Any help would be appreciated. If i have not included some necessary information let me know and I will include it. Thanks -- View this message in context: http://n2.nabble.com/CGI-issue-tp3045085p3045085.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] PHP mapscript and getResult()
Did this get added into PHP mapscript in the 5.4.1 release? If so, is it a layer object method? -Original Message- From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Sent: Monday, April 06, 2009 1:54 PM To: Worth Lutz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript and getResult() Worth Lutz wrote: There is a SWIG mapscript reference to a layerObj method getResults() returning a resultCacheObj. The resultCacheObj has an attribute bounds which is the extent of the results. Is this available in PHP mapscript. It seems to be missing. It is missing in php mapscript. Added a ticket on it and It should be available for the 5.4.1 release: http://trac.osgeo.org/mapserver/ticket/2967 Best Regards Worth ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Assefa Yewondwossen Software Analyst Email: ass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] cartographic lines
Hello all, i've come across a cosmetic issue I'm trying to solve and looking for advice. Specifically this relates to drawing street/road lines, although I guess it relates to any type of cartographic line. I'm using mapserver 5.4.1 using AGG renderer with quantize enabled: OUTPUTFORMAT NAME'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB # FORMATOPTIONQUANTIZE_FORCE=ON FORMATOPTIONQUANTIZE_NEW=ON FORMATOPTIONQUANTIZE_DITHER=OFF FORMATOPTIONQUANTIZE_COLORS=256 END Mapserver was built with --with-experimental-png (which does indeed resolve the colour variations between tiles that I reported earlier). I'm drawing street layers with elipses, but I'm now wondering if that is the best way to achieve the result, being an inner colour with a border, viz: STYLE COLOR [border_color] SYMBOL road_line SIZE $x END STYLE COLOR [surface_colour] SYMBOL road_line SIZE $x-2 END where road_line is a simple SYMBOL elipse. The problem I'm seeing is two-fold. Firstly, the ends are rounded, which is not desirable where roads of different classes (defined in different layers) join. I think this can be solved by drawing all streets in the same layer and using different classes with EXPRESSION statements, but my brief experiment with this resulted in a large detriment effect on rendering speed. If it matters, the layers are in PostGIS (and appropriately indexed). So my question is, is there a better or at least an alternative way of drawing roads with borders which does not result in this problem? The second problem is that I'm trying to add OPACITY to some layers, such as tunnels, so that they either appear underneath other objects or at least allow other objects to show through. However - and it may be related to the use of symbols to draw the roads - this results rendering as shown in the attached file, with elipses of a different shade appearing where objects intersect. Can this be avoided (perhaps by using a different method for drawing road lines)? Note that since I am rendering a flat tile which includes a background I'm using RGB rather than RGBA and I suspect this may affect rendering of OPACITY in layers. However I can't seem to find the magic that will render a background colour other than black (and yes, I'm using IMAGECOLOR in the MAP section, but it seems to have no effect when rendering with transparency). Best regards, David attachment: map01.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] labeling streets
Thank You, so it should be, but somehow in my case it does not work properly. When i have no declaration of MINFEATURESIZE, then the picture looks fine: http://picasaweb.google.com/snaperski/Ort#5345194219497220482 But when I add MINFEATURESIZE AUTO, most labels just disappear, even if they have enough space to fit in: http://picasaweb.google.com/snaperski/Ort#5345195269825705586 And those labeled straight streets contain only one feature (line feature) each - so the label should fit in decently. Label is declared this way: LABEL TYPE truetype ANTIALIAS true FONT arial COLOR 240 240 240 OUTLINECOLOR 52 52 52 SIZE 9 force false MINDISTANCE 250 MINFEATURESIZE auto ANGLE follow POSITION cc BUFFER 1 END Changing FORCE or POSITION parameters didnt help either Raivo On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca wrote: Hi, You could set MINFEATURESIZE to AUTO and then only the labels that fit on the lines should be drawn. Regards, Christy Raivo Alla wrote: Hello! I'm stuck in simple-looking problem, but the solution is just hiding somewhere. The question is: how I can label only those line features, whos label does not run over the line like that: http://picasaweb.google.com/snaperski/Ort#5344831130138846050 As street lengths are very different, I cant solve the problem by setting suitable MINFEATURESIZE for respective MINSCALE,MAXSCALE range. All the best, Raivo Alla ___ 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