SV: [mapserver-users] Clipping out unprojectable area?
Hi. You could try something like this: DATA geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326 It's not very nice, but it works. Regards, Espen -- Espen Messel -Opprinnelig melding- Fra: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] På vegne av paalkr Sendt: 12. mai 2009 16:19 Til: mapserver-users@lists.osgeo.org Emne: Re: [mapserver-users] Clipping out unprojectable area? Hi! I'm trying to achieve the same thing, but I need some hints on how to incorporate the spatial filter in the DATA statement. This is a snippet from my mapfile DATA geometri from general.country USING UNIQUE ogc_fid USING SRID=4326 and this is the spatial filter i try to apply ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) but I don't manage build the right the DATA statement! Can someone please help with the DATA statement? Regards, Pål Kristensen Gregor at HostGIS wrote: With some SQL know-how I did get the EPSG database merged with our own spatial_ref_sys table (it has other mods for our uses, so this was trivial) and our program generating ST_Intersection(the_geom) statements. This does work as expected, which is great. Thanks for another simple and elegant solution, Christopher. Now to cope with some of our data having self-intersecting polygons which break such operators... -- Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development hosting services, http://www.HostGIS.com/ Remember that no one cares if you can back up, only if you can restore. - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984 7p2869427.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] UMN and SVG output
Daniel, firstr of all many thanks for your reply, we already did that: The upper is the SVG code comes from the mapserver, where the SVG appears in black, the lower one is the correct one. The differene between the files is the style definition ' style=fill: none; ' which is missing in the upper SVG. Both mapservers are 4.10, are compiled with the flag --with-svg and use exactly the same mapfile could it be that there are any differences in the linked GD library or the uinterface beteen UMN and GD ...? Regards - Till ?xml version=1.0 encoding=UTF-8? svg version=1.1 width=1162 height=671 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; !-- START LAYER test -- path stroke=#ff stroke-width=10 d=M 578 339 L 306 339 L 245 671 L 578 339 M 713 339 L 442 339 L 381 671 L 713 339 z/ /svg ?xml version=1.0 encoding=UTF-8? svg version=1.1 width=1162 height=671 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; !-- START LAYER test -- path stroke=#ff stroke-width=10 style=fill: none; d=M 578 339 L 306 339 L 245 671 L 578 339 M 781 339 L 510 339 L 449 671 L 781 339 z/ /svg Till Adams wrote: Dear list, we have a problem with (old but working) Mapserver 4.10 version and svg output transparency: On one system (solaris 10) everything works fine. On the other system (solaris 10) with exactly the same mapfile, the originally as transparent defined polygons (COLOR -1 -1 -1) come out in black. I guess that GD library is responsible for creating the SVG. Did anybody had this problem before or does anybody have an idea which component may cause this error? Till, Did you really mean SVG? SVG is a vector format which is rendered by the browser, are you using the same browser to access both servers? I'd suggest you start by comparing the SVG output from both to try to figure the difference (it's XML-ish) between the output from your two servers, and then we can go from there. Daniel -- -- terrestris GmbH Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Geschäftsführung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 ad...@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 - Komplementärin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] UMN and SVG output
Till Adams wrote: Daniel, firstr of all many thanks for your reply, we already did that: The upper is the SVG code comes from the mapserver, where the SVG appears in black, the lower one is the correct one. The differene between the files is the style definition ' style=fill: none; ' which is missing in the upper SVG. Both mapservers are 4.10, are compiled with the flag --with-svg and use exactly the same mapfile could it be that there are any differences in the linked GD library or the uinterface beteen UMN and GD ...? Ha! Found it! This was an issue in early 4.10.x versions that was fixed in 4.10.2: http://trac.osgeo.org/mapserver/ticket/2055 You probably have 4.10.0 or 4.10.1 on one machine, and 4.10.2 or more recent on the other. 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] Re: [mapserver-dev] How to repair the error display label in mapserver application
hi, you probably haven't set the ENCODING keyword in your labels. It should match the encoding of your data. http://mapserver.org/mapfile/label.html regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Fri, May 15, 2009 at 11:29, Huynh Thai Hoc ht...@yahoo.com wrote: Dear list I'm having trouble with using true type fonts in my mapserver application. My database is using by SQL Server 2005, and connecting by ArcSDE9.2. I show the map is no problems, but my labels is get error, it is only the sign (see the image). I don't know what to do, please help me. Thank you very much View this message in context: How to repair the error display label in mapserver application Sent from the Mapserver - Dev mailing list archive at Nabble.com. ___ mapserver-dev mailing list mapserver-...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev ___ 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
Re: [mapserver-users] coding for pan the map
You can exploit the rich features provided by Openlayers. It will help you to setup the basic features like zoom and pan easily. Regards, Ritesh Ambastha meenu wrote: hi all can anybody help me to do the coding for pan the map? i did one website using the help of TutorialMapServerSolution.zip(VS2005) advance thanks regards -- View this message in context: http://n2.nabble.com/coding-for-pan-the-map-tp2889881p2908884.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] I: Apache crash using Mapserver with big mapfile(about 2500 lines)
Hey, Larger size of mapfile is not the culprit over here. I have used mapfile of more than 20K lines. Issue is something else. I don't know much about it but it seems like you have a glibc version conflict on your box. But, I am sure and 100% confident that mapfile size is not an issue. When you get warnings like glibc detected malloc()/free()/double, they indicate that the heap has been corrupted. One work around is to use DieHard, which replaces your memory allocator with one that is unaffected by most of these errors (www.diehard-software.org). Note: I dont work for DieHard. I just got some reference of it on web Regards, Ritesh Ambastha Edgardo Ghibaudo wrote: Steve, I compiled mapserver with -enable-debug option. Then I launched shp2img in the following way: ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, dst=0,0,470,520 [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** Aborted Edgardo -Messaggio originale- Da: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Inviato: giovedì 7 maggio 2009 19.29 A: 'mapserver-users@lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve --http://www.provincia.biella.it-- Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso-- Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a c...@provincia.biella.it. Grazie -Il Webmaster. --Warning- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to c...@provincia.biella.it. The Webmaster. -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/I%3A-Apache-crash-using-Mapserver-with-big-mapfile%28about-2500-lines%29-tp2844265p2908941.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] Mapserver returns part of an image and then crashes
Nelson, The information you've provided is not enough to find out the problem. You should probaly localize which layers/features cause this problem and extract a subset of the data to be able to reproduce it. You could use ogr2ogr and specify the -spat option to copy the relevant data into a new data source. Best regards, Tamas 2009/5/15 Nelson Correia nelson...@hotmail.com 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! http://www.live.com/getstarted.aspx ___ 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 messageshttp://www.microsoft.com/windows/windowslive/ -- Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hotspot information on point layers
pls help me to do the hotspot in mapif anybody knows the reference links for this...pls forward me - Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2911368.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