RE: [mapserver-users] Problem with Russia polygon
Hi, This solution worked perfectly! Thank you all for your help. Nelson Correia -Original Message- From: arnd.wipperm...@web.de [mailto:arnd.wipperm...@web.de] Sent: quarta-feira, 6 de Janeiro de 2010 21:15 To: Nelson Correia Cc: mapserver-users@lists.osgeo.org Subject: AW: [mapserver-users] Problem with Russia polygon Hi, Use ogr tools to convert the shapefile to mapinfo mif. Then you can look at the coordinates for the polygons. There are a couple of times with a longitude -180. 179.86 -89.92 -180.14999 -89.779991 -179.99941 -84.4286809998 If you change them to -180 (i have tested with -179. and it works, perhaps -180 do not work) and convert the mapinfo file back to shape, then your trouble should be vanished. Arnd -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Nelson Correia Gesendet: Dienstag, 5. Januar 2010 15:05 An: Rahkonen Jukka; Barend Köbben; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users@lists.osgeo.org Betreff: RE: [mapserver-users] Problem with Russia polygon The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. I tried to re-project the polygons with postgis (st_transform), but I got the following error: ERROR: transform: couldn't project point: -20 (tolerance condition error) Which I don't know the meaning. In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. Thanks, Nelson -Original Message- From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] Sent: segunda-feira, 4 de Janeiro de 2010 22:03 To: Barend Köbben; Nelson Correia; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION init=epsg:900913 END -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Barend Köbben Lähetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION proj=longlat datum=WGS84 no_defs END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend Köbben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, Nelson Correia nelson-corr...@telecom.pt wrote: Here is the simplified shapefile, along with a mapfile that uses it: http://www.2shared.com/file/10449234/a18d6a03/countries.html Nelson -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: segunda-feira, 4 de Janeiro de 2010 17:28 To: Nelson Correia; Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nelson Correia Sent: Monday, January 04, 2010 7:32 AM To: Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180º and -180º that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -Original Message- From
RE: [mapserver-users] Problem with Russia polygon
The problem seems to be with the re-projection from 4326 to 900913, which I'm doing with mapserver (hence, the map file configuration). If I configure the mapfile to use 4326 and make a request in 4326, the problem disappear. So, the re-projection to 900913 should be screwing the polygons at the edges of the map. I tried to re-project the polygons with postgis (st_transform), but I got the following error: ERROR: transform: couldn't project point: -20 (tolerance condition error) Which I don't know the meaning. In the project I'm doing, I have to use 900913, so, if anyone have some ideas of how to solve this, they will be well appreciated. Thanks, Nelson -Original Message- From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] Sent: segunda-feira, 4 de Janeiro de 2010 22:03 To: Barend Köbben; Nelson Correia; Lime, Steve D (DNR); Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, Unfortunately the extents are OK and the problem is something more complicated. Extents are indeed in meters but that's how they must be because the MAP level projection looks like this: PROJECTION init=epsg:900913 END -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Barend Köbben Lähetetty: ma 4.1.2010 22:52 Vastaanottaja: Nelson Correia; Lime, Steve D (DNR); Andy Colson Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Problem with Russia polygon You've got data that is in latlong (units decimal degrees) in your shapefile, however in the EXTENT part of the map file you use EXTENT -20037508 -13590765 20037508 11229864 Which are not latlomngs but some projected coordinates, and UNITS meters IN the LAYER you tell mapserver that its: PROJECTION proj=longlat datum=WGS84 no_defs END These two are contradictory. You'll have to match the PROJECTION in the LAYER to the actual projection and units (apparentlt these are correct) , and make sure the EXTENT is expressed in the same system. So best thing is to set the EXTENT in latlons (as its the whole world -180 -90 180 90 is a safe bet) and UNITS to degrees... Yours, -- Barend Köbben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 04-01-10 19:34, Nelson Correia nelson-corr...@telecom.pt wrote: Here is the simplified shapefile, along with a mapfile that uses it: http://www.2shared.com/file/10449234/a18d6a03/countries.html Nelson -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: segunda-feira, 4 de Janeiro de 2010 17:28 To: Nelson Correia; Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nelson Correia Sent: Monday, January 04, 2010 7:32 AM To: Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180º and -180º that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -Original Message- From: Barend Köbben [mailto:kob...@itc.nl] Sent: sábado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend Köbben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15
RE: [mapserver-users] Problem with Russia polygon
Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180º and -180º that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -Original Message- From: Barend Köbben [mailto:kob...@itc.nl] Sent: sábado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend Köbben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, Andy Colson a...@squeakycode.net wrote: On 12/30/2009 11:14 AM, Nelson Correia wrote: Hello, I¹m using shapefile world data from gadm.org (I¹ve had this same problem with other data sources too) and I¹m having a problem with the Russian polygon: mapserver draws some strange lines parallel to the equator, near the north pole (like you can see in the attached image). Anyone had the same problem and knows how to solve it? Thanks, Nelson I have no idea if this is the same problem, but I have run into weird drawing problems before. I import shape files into PostGIS and then use mapserver on that. I got a polygon layer that had an unclosed line (I guess that is a good way to describe it). It pissed off mapserver. I could run sql like: select gid from layer where not ST_IsClosed(the_geom) and it would pull it up. The people that sent me the layer swore there was nothing wrong with it (they didn't see any error). I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Problem with Russia polygon
Here is the simplified shapefile, along with a mapfile that uses it: http://www.2shared.com/file/10449234/a18d6a03/countries.html Nelson -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: segunda-feira, 4 de Janeiro de 2010 17:28 To: Nelson Correia; Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Would be interesting to get a copy of the data in shapefile format, plus the mapfile that generates the error... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nelson Correia Sent: Monday, January 04, 2010 7:32 AM To: Barend Köbben; Andy Colson Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Problem with Russia polygon Hello, All the russian polygons are valid (st_valid) and closed (st_closed). The problem seems to be in the vertical lines at 180º and -180º that divide certain areas of the country. It seems like when mapserver tries to draw these lines, there's some kind of unknown behavior that make it draw horizontal lines instead, resulting in very strange polygons. However, I have not solved the problem yet. Nelson -Original Message- From: Barend Köbben [mailto:kob...@itc.nl] Sent: sábado, 2 de Janeiro de 2010 15:33 To: Andy Colson; Nelson Correia Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Problem with Russia polygon Hi, I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? You can use PostGIS's ST_IsValid() for that. The problem of Nelson seems to me to be a 'dateline' problem: you have coordinates in latlon and some polygons are crossing the dateline (and/or the poles), therefore the coordinates' sign jumps from - to + (or from E to W). If you then draw that in a Plate Carree 'projection (where latitudes and longitudes are treated as if they were Cartesian coordinates , which they surely aren't: they are angles from the middle of the Earth!), then the polygon jumps from the extreme right to the extreme left of the picture... -- Barend Köbben Senior Lecturer University of Twente, Faculty of Geo-Information Science and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-01-10 15:50, Andy Colson a...@squeakycode.net wrote: On 12/30/2009 11:14 AM, Nelson Correia wrote: Hello, I¹m using shapefile world data from gadm.org (I¹ve had this same problem with other data sources too) and I¹m having a problem with the Russian polygon: mapserver draws some strange lines parallel to the equator, near the north pole (like you can see in the attached image). Anyone had the same problem and knows how to solve it? Thanks, Nelson I have no idea if this is the same problem, but I have run into weird drawing problems before. I import shape files into PostGIS and then use mapserver on that. I got a polygon layer that had an unclosed line (I guess that is a good way to describe it). It pissed off mapserver. I could run sql like: select gid from layer where not ST_IsClosed(the_geom) and it would pull it up. The people that sent me the layer swore there was nothing wrong with it (they didn't see any error). I guess to make a long story short, do you have any editors (like qgis) that you can use to see/edit the layer and make sure each record is valid? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. ___ 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] Mapscript taking too long on my production server
Hi all, I'm doing an application in C# that uses mapscript to generate images. The features come from a postgis database. On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two production servers (both powerfull than my dev machine), I noticed a very strange behavior: it takes +-20 seconds to generate the same image. Doing some debug on what's happening, I realized that was the call to mapObj.draw() method that was taking all that time. Thinking it could be a database related problem, (note that I'm using a local database) I've inspected the server logs and saw that the query only arrived at the database after that 20 seconds. So, the time is being taken in the draw, but before the database call. Anyone have a clue on what could be happening? Thanks, Nelson _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Postgis tile index not working
Thanks Jeff! Just to share with those that have the same problem, I was having issues rendering PNG (changing to GIF worked the way I want) and the world file was missing too (I thought Mapserver would get the bounding box from the postgis database). Nelson Date: Mon, 31 Aug 2009 10:01:00 -0300 From: jmcke...@gatewaygeomatics.com To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Postgis tile index not working Nelson Correia wrote: Hi, I'm trying to use a postgis layer as tile index of a raster layer and can't get it working. Here are the layers I'm using: LAYER NAME layer_tindex TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION host=localhost port=5432 dbname=mydb user=myuser password=mypwd DATA bbox from shapes CLASS STYLE OUTLINECOLOR 0 0 0 END END END LAYER NAME layer_raster TYPE RASTER STATUS DEFAULT DUMP TRUE TILEINDEX layer_tindex TILEITEM image_path PROJECTION init=epsg:4326 END END When I make a request to Mapserver, everything gets into the image, except the images from the layer_raster layer. I can even see the bboxes if I turn on the layer layer_tindex. I can't find much documentation about this integration between Mapserver and Postgis, so tell me if I'm making some mistake. By the way, I'm doing this with a Mapserver 5.2.1. Thanks in advance, I would start by using the commandline utility shp2img with the '-all_debug 3' switch to see all errors (example#3 on http://www.mapserver.org/utilities/shp2img.html). -jeff -- Jeff McKenna FOSS4G 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 _ Share your memories online with anyone you want. http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] tilecache_clean.py cleaning more than expected
Hi all, I’m trying to keep my disk usage to about 500MB, but apparently tilecache_clean is freeing more space than what I’ve requested: # du -s -h /data/TILES 782M /data/TILES # python /apps/tilecache2.10/tilecache_clean.py -s 500 /data/TILES Cache entries found: 13040 Removed 12644 files. # du -s -h /data/TILES 73M /data/TILES Anyone knows why is this happening? Thanks, Nelson _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] tilecache_clean.py cleaning more than expected
Hi, I've sent it two times to tileca...@openlayers.org a few days ago, but it seems to never reached that mailing list... Nelson Date: Mon, 22 Jun 2009 09:18:55 -0400 To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] tilecache_clean.py cleaning more than expected From: crschm...@metacarta.com On Mon, Jun 22, 2009 at 08:30:40AM +, Nelson Correia wrote: Hi all, I?m trying to keep my disk usage to about 500MB, but apparently tilecache_clean is freeing more space than what I?ve requested: # du -s -h /data/TILES 782M /data/TILES # python /apps/tilecache2.10/tilecache_clean.py -s 500 /data/TILES Cache entries found: 13040 Removed 12644 files. # du -s -h /data/TILES 73M /data/TILES Anyone knows why is this happening? Please send this message to the tilecache mailing list. Regards, -- Christopher Schmidt MetaCarta _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver returns part of an image and then crashes
Hi, Have anyone ran through the same problem? Any ideas on how to solve it? Thanks, Nelson From: nelson...@hotmail.com To: szeker...@gmail.com Subject: RE: [mapserver-users] Mapserver returns part of an image and then crashes Date: Fri, 24 Apr 2009 17:28:53 + CC: mapserver-users@lists.osgeo.org Hi, I am using ms4w 2.3.1. Unfortunately it is a large data set and a huge map file, that I am not able to send, sorry. Thanks, Nelson Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: Re: [mapserver-users] Mapserver returns part of an image and then crashes From: szeker...@gmail.com To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia nelson...@hotmail.com Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Points and labels always together
Hi all, Is it possible to have points and labels always drawn together when in a POINT layer? The objective is to draw localities on a map, and I don't want points or labels to appear alone. The problem is with LABELCACHE that when turned on, the points are all drawn, but only the labels that fit on the map will be drawn. This leads to some points without the correspondent labels. I think LABELCAHE turned off is not an option, because then the labels will be overlapped. Any ideas? Thanks, Nelson _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Points and labels always together
Thanks! Date: Wed, 29 Apr 2009 08:16:45 -0400 From: cnie...@dmsolutions.ca To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Points and labels always together Hi, If you use an ANNOTATION layer instead of POINT, the only points that will be drawn are those where the labels will be drawn. Christy Nelson Correia wrote: Hi all, Is it possible to have points and labels always drawn together when in a POINT layer? The objective is to draw localities on a map, and I don't want points or labels to appear alone. The problem is with LABELCACHE that when turned on, the points are all drawn, but only the labels that fit on the map will be drawn. This leads to some points without the correspondent labels. I think LABELCAHE turned off is not an option, because then the labels will be overlapped. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! http://www.live.com/getstarted.aspx%20 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Outline on the roads label boxes
Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the letters and not for the background. Does Mapserver support it? You can see the labels (L2150, K2, K7) with white background and black outline at: http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158z=14 Thanks, Nelson _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Outline on the roads label boxes
I've done it with several rectangle symbols. Thank you all for the quick answers! :) Nelson Date: Tue, 28 Apr 2009 19:33:01 +0200 Subject: Re: [mapserver-users] Outline on the roads label boxes From: thomas.bonf...@camptocamp.com To: steve.l...@dnr.state.mn.us CC: nelson...@hotmail.com; mapserver-users@lists.osgeo.org The label background is getting quite cluttered actually, we have backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and maybe a couple of others I'm forgetting. maybe we could add something equivalent to backgroundstyle that would have the same syntax as a class STYLE, that would then be passed on as a normal style to msDrawShadeSymbol, along with the shapeobj corresponding to the background shade. we'd then have all the goodness of mapserver styles: outlines, symbols, opacity, etc... just a thought, thomas On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime steve.l...@dnr.state.mn.us wrote: You can however, develop separate classes based on label length. You'd have different symbols to handle wide text vs. narrow. For example: LABELITEM 'myitem' CLASS EXPRESSION (length('[myitem]') 5) # use a really wide shield STYLE SYMBOL 'reallywideshield' ... END END CLASS EXPRESSION (length('[myitem]') 3) # use a wide marker STYLE SYMBOL 'wideshield' ... END END CLASS # default to a regular shield STYLE SYMBOL 'shield' ... END END Steve On 4/28/2009 at 12:10 PM, in message 2922382e0904281010i47fadd9ds51346665bd481...@mail.gmail.com, Thomas Bonfort thomas.bonf...@camptocamp.com wrote: this isn't currently possible. best regards, thomas On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com wrote: Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the letters and not for the background. Does Mapserver support it? You can see the labels (L2150, K2, K7) with white background and black outline at: http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158 z=14 Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- www.camptocamp.com +33 4 79 26 57 97 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- www.camptocamp.com +33 4 79 26 57 97 _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver returns part of an image and then crashes
Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapserver returns part of an image and then crashes
Hi, I am using ms4w 2.3.1. Unfortunately it is a large data set and a huge map file, that I am not able to send, sorry. Thanks, Nelson Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: Re: [mapserver-users] Mapserver returns part of an image and then crashes From: szeker...@gmail.com To: nelson...@hotmail.com CC: mapserver-users@lists.osgeo.org Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia nelson...@hotmail.com Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Elevation-like map
Hi, Thanks for the quick answers. Do you know how can I convert a shapefile to a suitable format for those apps (either rel.py or DEM utilities)? I've searched the documentation, but I didn't find that info. Thanks, Nelson Correia Date: Mon, 13 Apr 2009 15:39:44 -0400 From: jmcke...@gatewaygeomatics.com To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Elevation-like map - Step 2: Create a hillshade layer. (I use rel.py with gdal to do this, but you can do it with something else.) A handy toolset is the DEM Utilities (http://www.perrygeo.net/wordpress/?p=7), which, if you're a Windows user, are available in MS4W. -jeff -- Jeff McKenna FOSS4G 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 _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available
Hi, I've tested both beta 1 and beta 2 on Windows Server 2008 64bit, but I was unable to run them properly. It always give an error: in beta 2 it is an error like the one below and in beta 1 a different error when loading my map file. Currently I am using the alpha 3 version, which is the latest one that I am able to run on my system. Nelson Correia Date: Tue, 14 Apr 2009 21:39:04 +0800 From: e...@163.com To: mapserver-users@lists.osgeo.org Subject: Re:Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2 is available Hi, Could you please tell me the version details of your OS? By the way maybe this link can help you: http://www.lavasoftsupport.com/lofiversion/index.php/t240.html Regards, Enri. 在2009-04-14,teeschke daniel.te...@web.de 写道: Hi Enri sounds realy cool! But when I doubleclick the MSCompanion.exe I receive Errors. One of them is Exception EReadError in module MSCompanion.exe as 000266F. Error reating RichEdit1.Lines.Strings: RichEdit line insertion error. thx, Tee -- View this message in context: http://n2.nabble.com/Mapfile-Editor---MSCompanion-version-1.0-beta2-is-available-tp2624234p2632347.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 网易邮箱,中国第一大电子邮件服务商 _ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Elevation-like map
Hi, Anyone knows how to make an elevation-like map, like the terrain mode in Google Maps. Does MapServer allow to do something like that? I have the level curves data of the area that I want to represent, is that enough? Thanks in advance, Nelson Correia _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users ] Mapserver images d oesn't fit well on a tiling scheme
With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlit...@yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org Check the documentation on the metaTile it requires having PIL installed but that is not really a big hassle. From: Nelson Correia nelson...@hotmail.com To: mapserver-users@lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongation of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users ] Mapserver images d oesn't fit well on a tiling scheme
I'm not sure if I got it right... When I request a 3x3 meta tile grid, tilecache only caches the center image? What if I request the image on the right of it and again another image to the right? Tilecache will issue new and overlapped requests to Mapserver? Or for the second request it will reuse a tile from the previous 3x3 request? Date: Tue, 3 Mar 2009 06:46:58 -0800 From: danlit...@yahoo.com Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org I think you're a bit wrong there. If you build the Cache using tilecache, when you use the metaTiles it will take a larger sample than the image being generated, for example if you have a 3x3 meta tile grid, the center tile of the nine-tile grid will be used. I had the exact same problem you are describing, but then setup the tilecache generator to use metatiles and things started to work beautifully -- including labels. From: Nelson Correia nelson...@hotmail.com To: mapserver-users@lists.osgeo.org Sent: Tuesday, March 3, 2009 8:11:16 AM Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlit...@yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org Check the documentation on the metaTile it requires having PIL installed but that is not really a big hassle. From: Nelson Correia nelson...@hotmail.com To: mapserver-users@lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongati on of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users