Re: [mapserver-users] how to render labels on lines?
Hello Sergey, Using ANGLE FOLLOW in the label block will provide labels that follow the curvature of the line segment that is being labelled. Please note, that if the line segment is shorter than the label, the label will hang off the end of the line unless you use MINFEATURESIZE AUTO in the label block as well. Regards, Christy On 01/26/2011 05:52 AM, Теплов Сергей Геннадьевич wrote: Hello! I have a problem with using mapserver to render streets and labels to them. I want the labels to be rendered on the streets. If a street has any turn I want to have a curved label to it. So, I read an article about that: http://mapserver.org/development/rfc/ms-rfc-11.html#rfc11 . This idea was passed in 2006, but I haven't found any messages about solution. I am using mapserver-5.6.6.tar.gz release, but keyword FOLLOW doesn't work right, see screenshot. I think it is a common task. What is the easiest way to solve this problem? Thanks, Sergey. ___ 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] [SOLVED] Mapserver ./config with with httpd executable
Thanks everyone for help. I was following the documentation here for Linux compilation: http://mapserver.org/installation/unix.html My apache2 executable is not called httpd but rather apache2 and is located in /usr/sbin. I'm not sure if this is because apache2 is a newer version, or the package installer defaults to this naming, or it's a Ubuntu Linux thing. But i'll figure out the why later. Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5962650.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] [SOLVED] Mapserver ./config with with httpd executable
gregcorradini wrote: My apache2 executable is not called httpd but rather apache2 and is located in /usr/sbin. I'm not sure if this is because apache2 is a newer version, or the package installer defaults to this naming, or it's a Ubuntu Linux thing. Probably a package installer or Ubuntu thing. I installed Apache 2 from source code, and my apache executable is called httpd and is in /usr/local/apache2/bin Generally, stuff under /usr/sbin is installed by the system, and generally, we mortals don't touch that stuff lest we feel endless pain. As I said, I stay away from package managers as they can hit us up with unpleasant surprises. -- Puneet Kishor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] make cannot find -libodbc and -libodbcinst on compilation
Hello, I'm having one more compilation conflict on Ubuntu 10.10 with mapserver 5.6.6 and GDAL support. Here's the error: /usr/bin/ld: cannot find -lodbc /usr/bin/ld: cannot find -lodbcinst collect2: ld returned 1 exit status make: *** [shp2img] Error 1 My ./configure --with-gdal points to the correct gdal_config file. The dependent libs for gdal_config are listed here: CONFIG_DEP_LIBS= -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl-lcurl -Wl,-Bsymbolic-functions These libraries should be on my system by default. And they are: $ sudo find / -name libodbc.so /usr/lib32/libodbc.so /home/gcorradini/.local/share/Trash/files/usr/lib64/libodbc.so $ sudo find / -name libodbcinst.so /usr/lib32/libodbcinst.so So i have a few questions based on this : 1. How do i tell the compiler where to link to them? 2. Why isn't it able to see them on its own? Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5962776.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] make cannot find -libodbc and -libodbcinst on compilation
Hello, Le mercredi 26 janvier 2011 15:04:45, gregcorradini a écrit : Hello, I'm having one more compilation conflict on Ubuntu 10.10 with mapserver 5.6.6 and GDAL support. Here's the error: /usr/bin/ld: cannot find -lodbc /usr/bin/ld: cannot find -lodbcinst collect2: ld returned 1 exit status make: *** [shp2img] Error 1 My ./configure --with-gdal points to the correct gdal_config file. The dependent libs for gdal_config are listed here: CONFIG_DEP_LIBS= -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl-lcurl -Wl,-Bsymbolic-functions These libraries should be on my system by default. And they are: $ sudo find / -name libodbc.so /usr/lib32/libodbc.so /home/gcorradini/.local/share/Trash/files/usr/lib64/libodbc.so $ sudo find / -name libodbcinst.so /usr/lib32/libodbcinst.so So i have a few questions based on this : 1. How do i tell the compiler where to link to them? 2. Why isn't it able to see them on its own? System looking for in its own database which you have to update using ldconfig in root. It possible that this command will correct all of your previous error. So eahc time you finish to install a lib, run this command. When you install from binary package this commande is run by the system. Regards, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : +41 21 619 1031 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation
Thanks Yves, I tried that -- sudo ldconfig. But I'm still getting the same errors. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5962843.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] Label text always clipped by tiles
On 11-01-26 11:14 AM, Mike Stoddart wrote: I've read many posts and tried several options but my label text is always clipped at the edge of the tile. My mapfile contains: MAP METADATA LABELCACHE_MAP_EDGE_BUFFER -30 END ... LAYER PROCESSING LABEL_NO_CLIP=ON .. LABEL PARTIALS TRUE FORCE TRUE Any ideas what else I can try? Try: LABEL ... PARTIALS FALSE FORCE FALSE END -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Thanks Jeff, using this, most of my text labels are missing. My labels always need to be visible. Thanks Mike On Wed, Jan 26, 2011 at 10:35 AM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: On 11-01-26 11:14 AM, Mike Stoddart wrote: I've read many posts and tried several options but my label text is always clipped at the edge of the tile. My mapfile contains: MAP METADATA LABELCACHE_MAP_EDGE_BUFFER -30 END ... LAYER PROCESSING LABEL_NO_CLIP=ON .. LABEL PARTIALS TRUE FORCE TRUE Any ideas what else I can try? Try: LABEL ... PARTIALS FALSE FORCE FALSE END -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.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
Re: [mapserver-users] Label text always clipped by tiles
I came into this conversation a bit late, but... So you're tiling, and using MS as your backend. Are you using TileCache or similar in between? If so, TileCache supports meta-tiling which may help your label problems significantly. Using meta-tiling, TileCache requests a much larger tile (say a 5x5 tile) and slices it up. Thus, MapServer generates fewer tile edges and truncated/missing labels. That's aside from the obvious benefits of caching your tiles, if your layer isn't subject to change often such that caching is appropriate. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Thanks Gregor, I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Thanks Mike On Wed, Jan 26, 2011 at 10:41 AM, Gregor at HostGIS gre...@hostgis.com wrote: I came into this conversation a bit late, but... So you're tiling, and using MS as your backend. Are you using TileCache or similar in between? If so, TileCache supports meta-tiling which may help your label problems significantly. Using meta-tiling, TileCache requests a much larger tile (say a 5x5 tile) and slices it up. Thus, MapServer generates fewer tile edges and truncated/missing labels. That's aside from the obvious benefits of caching your tiles, if your layer isn't subject to change often such that caching is appropriate. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Thanks again. I don't think MapServer will work for me, but thanks for your help. On Wed, Jan 26, 2011 at 10:48 AM, Gregor at HostGIS gre...@hostgis.com wrote: I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
On 1/26/2011 7:55 AM, Mike Stoddart wrote: Thanks again. I don't think MapServer will work for me, but thanks for your help. Sure, you're quite welcome. I am curious what else you would use that would eliminate tile-edge artifacts. What map-serving software would you use, for example? I'm always looking to expand my toolkit. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
We currently use a custom generated SVG map - our maps are very small compared to most. I'm exploring alternatives and (shhh) playing with different technologies. Mike On Wed, Jan 26, 2011 at 10:56 AM, Gregor at HostGIS gre...@hostgis.com wrote: On 1/26/2011 7:55 AM, Mike Stoddart wrote: Thanks again. I don't think MapServer will work for me, but thanks for your help. Sure, you're quite welcome. I am curious what else you would use that would eliminate tile-edge artifacts. What map-serving software would you use, for example? I'm always looking to expand my toolkit. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Hi, I met the edge issue when I had to produce statistics maps with proportional symbols. TileCache addressed the issue indeed, with the metaBuffer option (see http://tilecache.org/docs/README.html#configuration). It means that MapServer will be called to generate larger tiles which are then cropped by TileCache, which has a time processing cost. The metaTile is meant to optimize this by rendering multiple tiles as a single one. Jeff 2011/1/26 Gregor at HostGIS gre...@hostgis.com: I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ 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] Label text always clipped by tiles
Thanks Jean-François, I'll try your solution. Is this clipping issue only a problem in the AGG renderer or does the original GD(?) renderer have the same problem. Thanks Mike On Wed, Jan 26, 2011 at 11:00 AM, Jean-François Gigand jean-franc...@gigand.fr wrote: Hi, I met the edge issue when I had to produce statistics maps with proportional symbols. TileCache addressed the issue indeed, with the metaBuffer option (see http://tilecache.org/docs/README.html#configuration). It means that MapServer will be called to generate larger tiles which are then cropped by TileCache, which has a time processing cost. The metaTile is meant to optimize this by rendering multiple tiles as a single one. Jeff 2011/1/26 Gregor at HostGIS gre...@hostgis.com: I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ 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] Label text always clipped by tiles
I set metaBuffer to 20 (I have SIZE=10) and there's no difference. metaTile=yes metaBuffer=20 Thanks Mike On Wed, Jan 26, 2011 at 11:12 AM, Jean-François Gigand jean-franc...@gigand.fr wrote: I'm not sure if the issue is related to the renderer. My issue is met on both AGG and GD, and is perfectly understandable: MapServer requests vector data only within the BBOX. So the rendered image misses symbols which are drawn from outside feature, even though they should be visible on the image because of their size. Same for labels: they are incomplete because missing on the tiles whose BBOX do not contain the geometry they were created from. TileCache is the solution. Set metaBuffer to the double of the maximum size in pixels of your symbols. A youger project following TileCache concepts is mod-geocache. It seems to support metaBuffer and metaTiles (haven't tested it yet): http://code.google.com/p/mod-geocache/ Jeff 2011/1/26 Mike Stoddart sto...@gmail.com: Thanks Jean-François, I'll try your solution. Is this clipping issue only a problem in the AGG renderer or does the original GD(?) renderer have the same problem. Thanks Mike On Wed, Jan 26, 2011 at 11:00 AM, Jean-François Gigand jean-franc...@gigand.fr wrote: Hi, I met the edge issue when I had to produce statistics maps with proportional symbols. TileCache addressed the issue indeed, with the metaBuffer option (see http://tilecache.org/docs/README.html#configuration). It means that MapServer will be called to generate larger tiles which are then cropped by TileCache, which has a time processing cost. The metaTile is meant to optimize this by rendering multiple tiles as a single one. Jeff 2011/1/26 Gregor at HostGIS gre...@hostgis.com: I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ 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] Label text always clipped by tiles
On 1/26/2011 8:25 AM, Mike Stoddart wrote: I set metaBuffer to 20 (I have SIZE=10) and there's no difference. metaTile=yes metaBuffer=20 Try metaTile=true, without the marks. And of course, erase any existing cached tiles, so you're sure to be generating new ones. I hate when I forget that; it's so embarrassing. :) Then, the relevant paragraph and maybe a URL of the map? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Sorry, the server is on my laptop and isn't accessible from the outside world. Yeah I've been burned too with a stale cache so I delete it everytime I make a change. I also restart Apache to make sure the new configuration is read. test.map: LAYER NAME test_text CONNECTIONTYPE postgis CONNECTION host=localhost port=5432 dbname=dbname user=username password=password DATA the_geom from gis_geometry using unique id FILTER dataset='test_text' and etype='text' STATUS DEFAULT PROCESSING LABEL_NO_CLIP=ON TYPE POINT TRANSPARENCY ALPHA LABELITEM text PROJECTION init=epsg:4326 END CLASS NAME text STYLE COLOR 0 0 0 END LABEL TYPE TRUETYPE FONT free-vera SIZE 10 COLOR 255 0 0 POSITION CC PARTIALS TRUE FORCE TRUE END END END tilecache.cfg: [test_text] type=MapServerLayer layers=test_text mapfile=/opt/test.map bbox=-5, -5, 5, 5 extension=png srs=epsg:4326 extent_type=loose resolutions=390.625, 195.3125, 97.65625, 48.828125, 24.4140625, 12.20703125, 6.103515625, 3.0517578125, 1.52587890625, 0.762939453125, 0.3814697265625, 0.19073486328125, 0.095367431640625, 0.0476837158203125, 0.02384185791015625, 0.011920928955078125, 0.0059604644775390625, 0.0029802322387695312, 0.0014901161193847656, 0.00074505805969238281 extent_type=loose metaTile=true metaBuffer=20 Thanks Mike On Wed, Jan 26, 2011 at 11:30 AM, Gregor at HostGIS gre...@hostgis.com wrote: On 1/26/2011 8:25 AM, Mike Stoddart wrote: I set metaBuffer to 20 (I have SIZE=10) and there's no difference. metaTile=yes metaBuffer=20 Try metaTile=true, without the marks. And of course, erase any existing cached tiles, so you're sure to be generating new ones. I hate when I forget that; it's so embarrassing. :) Then, the relevant paragraph and maybe a URL of the map? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS gre...@hostgis.com wrote: Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. If you find a mapping engine that can place labels like that (drawing half of a label on tile A when the point is on tile B) I would be interested to hear about it. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
I admit I haven't checked but does Google et al suffer the same problem? On Wed, Jan 26, 2011 at 12:03 PM, Gregor at HostGIS gre...@hostgis.com wrote: My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. If you find a mapping engine that can place labels like that (drawing half of a label on tile A when the point is on tile B) I would be interested to hear about it. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
On 1/26/2011 9:05 AM, Mike Stoddart wrote: I admit I haven't checked but does Google et al suffer the same problem? If you mean overlaying your data atop Google, say a small dataset expressable as KML, that should work A-OK. If it's pure vector data being rendered client-side, tiling wouldn't be an issue at all. But of course, that's where we leave MapServer Land and get into Google Earth, Google Maps, etc. If you mean how did Google do it? on their basemap I don't know entirely. They seem to have avoided (or later corrected) a lot of tile-edge artifacts. Their mechanisms probably included a) a mapping engine that positions labels to geographic points; b) large-scale meta-tiling with terabytes of RAM; and c) a large staff of personnel for QC and a few years of correcting reported issues. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Hi, 2011/1/26 Gregor at HostGIS gre...@hostgis.com: My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. I think it is possible! Because setting a big enough metaBuffer will make all labels far enough from tile boundaries (since the metaBuffer artificially extends tile boundaries). What about the labelcache_map_edge_buffer metadata option of MapServer the TileCache doc talks about ? (http://tilecache.org/docs/README.html) I could not find good doc about it. However, it should not be needed. Try setting the metaBuffer quite big (more than 20, say 100 as a test). Disable metaTile to keep things simple for the test. Enable MapServer logging and check the GetMap dimensions requested by TileCache. Requesting TileCache for 256px with metaBuffer=100 should generate MapServer GetMap requests with width and height of 456px. Also, make sure PIL has no problem cropping the image back to 256px. Check the interlaced PNG issue (http://tilecache.org/docs/README.html). ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
I set metaBuffer to 100 and I'm seeing this in MapServer's log: msDrawLabelCache(): labelcache_map_edge_buffer = -100 But tilecache always passes a width and height of 256 in the URL to mapserver. Thanks Mike On Wed, Jan 26, 2011 at 2:46 PM, Jean-François Gigand jean-franc...@gigand.fr wrote: Hi, 2011/1/26 Gregor at HostGIS gre...@hostgis.com: My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. I think it is possible! Because setting a big enough metaBuffer will make all labels far enough from tile boundaries (since the metaBuffer artificially extends tile boundaries). What about the labelcache_map_edge_buffer metadata option of MapServer the TileCache doc talks about ? (http://tilecache.org/docs/README.html) I could not find good doc about it. However, it should not be needed. Try setting the metaBuffer quite big (more than 20, say 100 as a test). Disable metaTile to keep things simple for the test. Enable MapServer logging and check the GetMap dimensions requested by TileCache. Requesting TileCache for 256px with metaBuffer=100 should generate MapServer GetMap requests with width and height of 456px. Also, make sure PIL has no problem cropping the image back to 256px. Check the interlaced PNG issue (http://tilecache.org/docs/README.html). ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
I have three layers; polygon, line and text (point). I get better results when I combine all three layers into one OpenLayer layer than when I move the text layer into its own OpenLayer layer. But I'm seeing fewer partials. Thanks Mike On Wed, Jan 26, 2011 at 2:46 PM, Jean-François Gigand jean-franc...@gigand.fr wrote: Hi, 2011/1/26 Gregor at HostGIS gre...@hostgis.com: My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. I think it is possible! Because setting a big enough metaBuffer will make all labels far enough from tile boundaries (since the metaBuffer artificially extends tile boundaries). What about the labelcache_map_edge_buffer metadata option of MapServer the TileCache doc talks about ? (http://tilecache.org/docs/README.html) I could not find good doc about it. However, it should not be needed. Try setting the metaBuffer quite big (more than 20, say 100 as a test). Disable metaTile to keep things simple for the test. Enable MapServer logging and check the GetMap dimensions requested by TileCache. Requesting TileCache for 256px with metaBuffer=100 should generate MapServer GetMap requests with width and height of 456px. Also, make sure PIL has no problem cropping the image back to 256px. Check the interlaced PNG issue (http://tilecache.org/docs/README.html). ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label text always clipped by tiles
Hi, I have never done this kind of label stuff myself, but Mapserver documentation seems to say that first the LAYER should have LABELCACHE ON before other advanced features have an effect. You sure have activated labelcache? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Mike Stoddart Lähetetty: 26. tammikuuta 2011 18:58 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Label text always clipped by tiles My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS gre...@hostgis.com wrote: Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up - only if you can recover. ___ 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] Label text always clipped by tiles
labelcache on is the default setting, and will apply for all layers where you have not set FORCE TRUE on your labels. if you don't want overlapping labels, this should be left as is. when tiling, you should *always* set PARTIALS FALSE on all your labels. - the metabuffer tilecache option should be set, to avoid artifacts on lines due to the the line caps that can be set. it will not have an effect on cut labels. when setting this option, mapserver *must* be configured with its labelcache_map_edge_buffer set to the same value as the tilecache metabuffer, so it will not put labels in the area that will be cut off by the metabuffer. - metatiling has an effect on the number of labels that can be displayed, in the sense that it is easier to display labels in a large image than it is in a 256x256 tile. as for your requirement of having all labels appear, without overlapping, and being continuous across tile boundaries, I'm afraid this is physically impossible to obtain. regards, thomas On Wed, Jan 26, 2011 at 21:43, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I have never done this kind of label stuff myself, but Mapserver documentation seems to say that first the LAYER should have LABELCACHE ON before other advanced features have an effect. You sure have activated labelcache? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Mike Stoddart Lähetetty: 26. tammikuuta 2011 18:58 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Label text always clipped by tiles My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS gre...@hostgis.com wrote: Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up - only if you can recover. ___ 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] Re: make cannot find -libodbc and -libodbcinst on compilation
Much thnx to Jeff for his reply. I ran $ ldconfig -v /tmp/ldconfig.output.txt 21 I found libodbc* in the output to be in exactly the same directories as when I run $ sudo find / -name libodbc* So as far as i can tell this means gdal-config is saying my libodbc* libraries should be one place when they are somewhere else. Makes sense that mapserver is errors out on make. Not sure how that happened. I tried editing the Makefile after configuring it to account for these differences but just got the same error. I then tried compiling mapserver without GDAL support. When i did that postgis started throwing me similar errors about libxslt, libpam and libreadline Not sure. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5965117.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] Re: GD rendering: polygons vs lines
On 1/26/2011 10:57 PM, Gregor at HostGIS wrote: *bump* Any developers out there care to comment on the visual artifacts? https://www.cartograph.com/~gregor/1.gif Normal polygons with corners aren't a real problem, but circles and curves like this render better as lines than polygons. Any ideas as to how we can smooth these out, still using GD? Or is it a lost cause for GD? Like I said, Plan B would be to render a line layer and then a no-outline fill layer; but the performance hit would obviate the advantage of GD. Hi Gregor, A while back someone, maybe Thomas Bonfort, did some performance tests comparing GD to AGG, and if I recall AGG was only slightly slower and in at least a couple of cases it was faster the GD. That said, I can't find the posts I was think of. And this very limited test of one single image: http://www.perrygeo.net/wordpress/?p=77 Implies the GD is about 2x the speed of AGG. More here if you care to look: http://www.google.com/#q=mapserver+performance+gd+agg Also I should point out that the GD renderer is getting removed in 6.0 as part of the rendering pipeline refactoring, unless that plan has changed. So I'm not sure there is much interest in chasing issue in the gd renderer. Best regards, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: GD rendering: polygons vs lines
A while back someone, maybe Thomas Bonfort, did some performance tests comparing GD to AGG, and if I recall AGG was only slightly slower and in at least a couple of cases it was faster the GD. In our case, GD renders in 1 second and AGG in 3 in these few tests cases we're concerned with. We're thus allowing a choice between fast mode and good quality mode Also I should point out that the GD renderer is getting removed So I'm not sure there is much interest in chasing issue Well, that's good to know. Thanks for the heads-up. I'll wait and see if someone comes up with any ideas before I give up entirely. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users