Re: [mapserver-users] Using Geotransform for arrow heads on lines?
you add it inside the same layer, eg: class style color 0 0 0 width 1 end style geomtransform 'end' angle auto symbol 'arrowhead' size 8 color 0 0 0 end end regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Thu, May 7, 2009 at 08:00, Ben Madin b...@remoteinformation.com.au wrote: G'day all, I am quite interested in this feature (from RFC 48), but not quite sure how it is intended to work - I vaguely interpreted that I could add an arrowhead to a line using it, but do I need to create a second layer (with the GEOTRANSFORM END) parameter to place a symbol, or can it work within the line layer? I have a large number of lines representing the start and end of various movements, and it would be great to be able to add an arrow head just to the end. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 b...@remoteinformation.com.au Out here, it pays to know... ___ 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] How to make mouseovers, image maps, etc
Hi Bob I do not know if this is the proper answer for a mailing list but i would suggest that you try Bill Kropla's Understanding MapServer: Open-source GIS developement. It contains the developement of an application like the one you want with clear and easy steps. Date: Wed, 6 May 2009 11:31:08 -0400 From: bob.bistr...@maine.gov To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] How to make mouseovers, image maps, etc I would like to make a web map that, when the user moves the mouse cursor over a feature, attribute information will be displayed. For example, a web map of the state, user moves the mouse over a town, the town’s name and population are displayed like a tool tip. I have read some discussions of this in older threads, and also was able to build an image map, but don’t really understand the process. Can anyone provide examples, step-by-step instructions, or other information on how to do this? _ 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] Using Geotransform for arrow heads on lines?
Thanks Thomas, Brilliant - that feature alone is enough justification for a version release - I have wanted something like this for about 12 months! Fantastic! inline: Picture 2.png Thanks again, cheers Ben On 07/05/2009, at 2:07 PM, Thomas Bonfort wrote: you add it inside the same layer, eg: class style color 0 0 0 width 1 end style geomtransform 'end' angle auto symbol 'arrowhead' size 8 color 0 0 0 end end regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Thu, May 7, 2009 at 08:00, Ben Madin b...@remoteinformation.com.au wrote: G'day all, I am quite interested in this feature (from RFC 48), but not quite sure how it is intended to work - I vaguely interpreted that I could add an arrowhead to a line using it, but do I need to create a second layer (with the GEOTRANSFORM END) parameter to place a symbol, or can it work within the line layer? I have a large number of lines representing the start and end of various movements, and it would be great to be able to add an arrow head just to the end. -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 b...@remoteinformation.com.au Out here, it pays to know... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Apache crash using Mapserver with big mapfile (about 2500 lines)
Dear users, I’m using the following environment: Ubuntu 6.06 (libc6 2.3.6) Apache 2.2.9 Php 4.4.2 Mapserver 4.8.2 Maplab 2.2.1 (last available version) Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 lines) the httpd process of Apache crash. Enclosed you can find the details of the crash (Backtrace). Apache compilation details: ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack --with-mpm=prefork PHP compilation details: ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 --with-pgsql=shared,/usr/local/pgsql8014 --with-pdflib=shared,/usr/local/pdflite703 --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi Mapserver compilation details: ./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-gd --with-httpd=/usr/local/apache229/bin/httpd --with-php=/usr/local/apache229/php --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql8014/bin/pg_config I tried to upgrade the OS version (Ubuntu 7.04 – libc6 2.5.0), but the result doesn’t change. I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, Mapserver 4.8.3 4.8.4), but the result doesn’t change Many thanks, Edgardo *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next size (fast): 0x087bdf40 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0xb7814de5] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x336)[0xb7828ca6] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0xb7828faa] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb7829f33] /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0xb77e34dd] /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6c)[0xb77db65c] /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674fe] /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006] /usr/local/apache229/modules/libphp4.so[0xb7c8171b] /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] /usr/local/apache229/bin/httpd[0x8095d9b] /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] /usr/local/apache229/bin/httpd[0x80b68f5] /usr/local/apache229/bin/httpd[0x80b6bb7] /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] --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] Unable to load DLL 'mapscript': Access is denied
hi friends...i created one mapserver website project in vs2005 based on mapserver tutorial available in c#(TutorialMapServerSolution.zip)...all working fine in my localhost...when i hosted website am getting an error like as follows..pls help me to solve this issue Unable to load DLL 'mapscript': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Line 59:ibMap.ImageUrl = MapStream.aspx?ACTION=INITMAP; Line 60://initialize controls Line 61:mapObj map = new mapObj(System.Configuration.ConfigurationSettings.AppSettings[mapFilePath].ToString()); Line 62://iterate the map layer to populate ddlLayer and cblLayer Line 63:for(int i=0;imap.numlayers;i++) - Meenu -- View this message in context: http://n2.nabble.com/Unable-to-load-DLL-%27mapscript%27%3A-Access-is-denied-tp2827731p2827731.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] Unable to load DLL 'mapscript': Access is denied
hi friends,i solved my problems by giving following permission to users...is this one correct way or not? read listfolders contents read/execute - Meenu -- View this message in context: http://n2.nabble.com/Unable-to-load-DLL-%27mapscript%27%3A-Access-is-denied-tp2827731p2827860.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] MapServer Dont Draw
Hi everyone, I have a website with p.mapper and mapserver and mapserver dont draw the maps, here is the example: http://www.orsep.gob.ar/test/pmapper-stable/map.phtml A strace debug: br /\nbWarning/b: dl() has been disabled for security reasons in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b51/bbr /\n, 165br / bWarning/b: dl() has been disabled for security reasons in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b51/bbr / ) = 165 write(1, br /\nbFatal error/b: Call to undefined function ms_newMapObj() in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b60/bbr /\n, 167br / bFatal error/b: Call to undefined function ms_newMapObj() in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b60/bbr / ) = 167 pwrite64(3, PM_BASE_DIR|s:43:\/home/orsep/public_html/test/pmapper-stable\;PM_BASECONFIG_DIR|s:50:\/home/orsep/public_html/test/pmapper-stable/config\;PM_CONFIG_LOCATION|s:7:\default\;PM_CONFIG_DIR|s:58:\/home/or..., 1371, 0) = 1371 close(3)= 0 Any idea? Kind regards. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] flash link broken on MS website
Hi guys, The link on this page to the flash demo is broken: http://mapserver.org/output/flash.html The broken link is http://mapserver.gis.umn.edu/docs/tutorial/demoflashmap/demoflashmaps Cheers, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver
Hi All, I am trying to integrate the census tracts on the google maps base. I am using the tile mode and have successfully drawn the shape files over the states of USA. I have some data in an access database that I need to show to the user when he selects a particular census tract (the shapes are polygons). However, since its a tile mode that I am using on google maps, I am unable to understand how do I get the information from mapserver as to which census tract was selected by the user? Is there a way mapserver can send me the polygon selected based on a co-ordinate lying inside the polygon? I know there is a way by using queries and a querymap for doing this. The query that I am using is as follows http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/census/testMap.mapmode=querymapxy=38.87795 -77.098617 I am providing a template in my map file that has the tract variables. However, the result is always the same msQueryByPoint(): Search returned no results. No matching record(s) found. Is it that mapserver is trying to look for a point feature in the location specifies by mapxy in the link above? How do I make mapserver to look for a polygon enclosing this co-ordinate and return me the result? I am attaching my mapfile also for reference. MAP NAME testMap STATUS ON SIZE 600 300 EXTENT -84 37 -75 40 UNITS DD SHAPEPATH data IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE ms_error.txt IMAGETYPE PNG WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ END QUERYMAP STATUS ON STYLE HILITE END LAYER NAME virginia STATUS DEFAULT TYPE polygon DATA tr51_d00 DEBUG 5 TOLERANCE 1000 TOLERANCEUNITS pixels TEMPLATE bodytemplate.html HEADER imapheader.html FOOTER imapfooter.html CLASS STYLE OUTLINECOLOR 128 128 128 COLOR 153 205 255 END TEMPLATE pointTemplate.html END END END Thanks, Varun On Mon, May 4, 2009 at 3:30 PM, Varun saraf vsaraf@gmail.com wrote: Hi Steve, If I provide Mapserver with a point x,y in WGS84 projection (from google maps) as a query, can mapserver give me the enclosing polygon information (using point-in-polygon method or something else)? If yes, how? I have already drawn the polygons on google map using tile mode. Can you suggest me a book/doc that helps with querying mapserver? Thanks, Varun On Sun, May 3, 2009 at 9:56 AM, Steve Lime steve.l...@dnr.state.mn.us wrote: Both examples show how to do this. You have to create a query using the coordinate from Google to access MapServer. My example uses the principle to query points but would work for polygons (which are actually easier). You could issue straight MapServer queries: http://.../cgi-bin/mapserv?mode=querymap=something.mapmapxy=google_x+google_yqlayer=the_polygons or do a WFS query. Since you're already using straight MapServer the former would probably be easiest. Steve Varun saraf vsaraf@gmail.com 05/02/09 1:34 PM Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google map? Goggle I believe can give me the exact co-ordinates of the point I clicked. Can mapserver use this point location to find which polygon was selected? Thanks, Varun 2009/5/2 Jim Strevinas voas_...@hotmail.com: A beautiful example that uses the Google Maps API is: http://www.dyasdesigns.com/geoxml/gmlusa.htm It makes use of an API plugin called geoxml that can load XML data which can be produced by a WFS server. In the source code, a static GML file is used but a google search shows that it can connect to a live WFS server using the URL. Date: Sat, 2 May 2009 09:28:01 -0500 From: steve.l...@dnr.state.mn.us To: vsaraf@gmail.com Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver CC: mapserver-users@lists.osgeo.org One way to do that is to construct MapServer queries based on the event and submit them using AJAX. This site does just that but with OpenLayers: http://www.dnr.state.mn.us/waters/csg/index_copy.html Click on the dots and a MapServer query is done behind the scenes. If successful a little window control is populated, if not, then nothing happens. Simple templates are used to present the information. Steve
Re: [mapserver-users] problem in reference map
Most likely your reference map size or extent are incorrect. That's where I'd start. Steve On 5/7/2009 at 6:54 AM, in message 20090507115038.m79...@deprem.gov.tr, Ahmet Temiz te...@deprem.gov.tr wrote: hello the red box in my reference map isn't settled on my zoomed main map. what am I likely to miss ? regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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 On 5/7/2009 at 4:31 AM, in message a3fc4ad4.1c9cef6.23e1ca...@provincia.biella.it, Edgardo Ghibaudo edgardo.ghiba...@provincia.biella.it wrote: Dear users, I’m using the following environment: Ubuntu 6.06 (libc6 2.3.6) Apache 2.2.9 Php 4.4.2 Mapserver 4.8.2 Maplab 2.2.1 (last available version) Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 lines) the httpd process of Apache crash. Enclosed you can find the details of the crash (Backtrace). Apache compilation details: ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack --with-mpm=prefork PHP compilation details: ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 --with-pgsql=shared,/usr/local/pgsql8014 --with-pdflib=shared,/usr/local/pdflite703 --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi Mapserver compilation details: ./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-gd --with-httpd=/usr/local/apache229/bin/httpd --with-php=/usr/local/apache229/php --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql8014/bin/pg_config I tried to upgrade the OS version (Ubuntu 7.04 – libc6 2.5.0), but the result doesn’t change. I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, Mapserver 4.8.3 4.8.4), but the result doesn’t change Many thanks, Edgardo *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next size (fast): 0x087bdf40 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0x b7814de5] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x 336)[0xb7828ca6] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0x b7828faa] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb 7829f33] /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0x b77e34dd] /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6 c)[0xb77db65c] /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674f e] /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006 ] /usr/local/apache229/modules/libphp4.so[0xb7c8171b] /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] /usr/local/apache229/bin/httpd[0x8095d9b] /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] /usr/local/apache229/bin/httpd[0x80b68f5] /usr/local/apache229/bin/httpd[0x80b6bb7] /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] --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
Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver
Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents are neg,pos,neg,pos? Also is your data in lat/lon? Steve On 5/7/2009 at 12:27 PM, in message 6db14d250905071027j7ff0aac8j30edeb7f8c938...@mail.gmail.com, Varun saraf vsaraf@gmail.com wrote: Hi All, I am trying to integrate the census tracts on the google maps base. I am using the tile mode and have successfully drawn the shape files over the states of USA. I have some data in an access database that I need to show to the user when he selects a particular census tract (the shapes are polygons). However, since its a tile mode that I am using on google maps, I am unable to understand how do I get the information from mapserver as to which census tract was selected by the user? Is there a way mapserver can send me the polygon selected based on a co-ordinate lying inside the polygon? I know there is a way by using queries and a querymap for doing this. The query that I am using is as follows http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/census/testMap.map; mode=querymapxy=38.87795 -77.098617 I am providing a template in my map file that has the tract variables. However, the result is always the same msQueryByPoint(): Search returned no results. No matching record(s) found. Is it that mapserver is trying to look for a point feature in the location specifies by mapxy in the link above? How do I make mapserver to look for a polygon enclosing this co-ordinate and return me the result? I am attaching my mapfile also for reference. MAP NAME testMap STATUS ON SIZE 600 300 EXTENT -84 37 -75 40 UNITS DD SHAPEPATH data IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE ms_error.txt IMAGETYPE PNG WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ END QUERYMAP STATUS ON STYLE HILITE END LAYER NAME virginia STATUS DEFAULT TYPE polygon DATA tr51_d00 DEBUG 5 TOLERANCE 1000 TOLERANCEUNITS pixels TEMPLATE bodytemplate.html HEADER imapheader.html FOOTER imapfooter.html CLASS STYLE OUTLINECOLOR 128 128 128 COLOR 153 205 255 END TEMPLATE pointTemplate.html END END END Thanks, Varun On Mon, May 4, 2009 at 3:30 PM, Varun saraf vsaraf@gmail.com wrote: Hi Steve, If I provide Mapserver with a point x,y in WGS84 projection (from google maps) as a query, can mapserver give me the enclosing polygon information (using point-in-polygon method or something else)? If yes, how? I have already drawn the polygons on google map using tile mode. Can you suggest me a book/doc that helps with querying mapserver? Thanks, Varun On Sun, May 3, 2009 at 9:56 AM, Steve Lime steve.l...@dnr.state.mn.us wrote: Both examples show how to do this. You have to create a query using the coordinate from Google to access MapServer. My example uses the principle to query points but would work for polygons (which are actually easier). You could issue straight MapServer queries: http://.../cgi-bin/mapserv?mode=querymap=something.mapmapxy=google_x+google_y qlayer=the_polygons or do a WFS query. Since you're already using straight MapServer the former would probably be easiest. Steve Varun saraf vsaraf@gmail.com 05/02/09 1:34 PM Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google map? Goggle I believe can give me the exact co-ordinates of the point I clicked. Can mapserver use this point location to find which polygon was selected? Thanks, Varun 2009/5/2 Jim Strevinas voas_...@hotmail.com: A beautiful example that uses the Google Maps API is: http://www.dyasdesigns.com/geoxml/gmlusa.htm It makes use of an API plugin called geoxml that can load XML data which can be produced by a WFS server. In the source code, a static GML file is used but a google search shows that it can connect to a live WFS server using the URL. Date: Sat, 2 May 2009 09:28:01 -0500 From: steve.l...@dnr.state.mn.us To: vsaraf@gmail.com Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver CC: mapserver-users@lists.osgeo.org One way to do that is to construct MapServer queries based on the
Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver
yes my data is in lat, long. I discovered the inverse lat long in mapxy just after sending this email and tried it. It works now but the New problem is that the result is a little tweaked. I guess its a problem with the projection. The tract number is not the current one when I click somewhere on the border of a tract. The projection is not that big a problem for me right now. I need to get this thing up and running by EOD with google maps (The dynamic clicking on the map etc). Thanks a lot for the prompt reply. On Thu, May 7, 2009 at 1:32 PM, Steve Lime steve.l...@dnr.state.mn.us wrote: Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents are neg,pos,neg,pos? Also is your data in lat/lon? Steve On 5/7/2009 at 12:27 PM, in message 6db14d250905071027j7ff0aac8j30edeb7f8c938...@mail.gmail.com, Varun saraf vsaraf@gmail.com wrote: Hi All, I am trying to integrate the census tracts on the google maps base. I am using the tile mode and have successfully drawn the shape files over the states of USA. I have some data in an access database that I need to show to the user when he selects a particular census tract (the shapes are polygons). However, since its a tile mode that I am using on google maps, I am unable to understand how do I get the information from mapserver as to which census tract was selected by the user? Is there a way mapserver can send me the polygon selected based on a co-ordinate lying inside the polygon? I know there is a way by using queries and a querymap for doing this. The query that I am using is as follows http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/census/testMap.map; mode=querymapxy=38.87795 -77.098617 I am providing a template in my map file that has the tract variables. However, the result is always the same msQueryByPoint(): Search returned no results. No matching record(s) found. Is it that mapserver is trying to look for a point feature in the location specifies by mapxy in the link above? How do I make mapserver to look for a polygon enclosing this co-ordinate and return me the result? I am attaching my mapfile also for reference. MAP NAME testMap STATUS ON SIZE 600 300 EXTENT -84 37 -75 40 UNITS DD SHAPEPATH data IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE ms_error.txt IMAGETYPE PNG WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ END QUERYMAP STATUS ON STYLE HILITE END LAYER NAME virginia STATUS DEFAULT TYPE polygon DATA tr51_d00 DEBUG 5 TOLERANCE 1000 TOLERANCEUNITS pixels TEMPLATE bodytemplate.html HEADER imapheader.html FOOTER imapfooter.html CLASS STYLE OUTLINECOLOR 128 128 128 COLOR 153 205 255 END TEMPLATE pointTemplate.html END END END Thanks, Varun On Mon, May 4, 2009 at 3:30 PM, Varun saraf vsaraf@gmail.com wrote: Hi Steve, If I provide Mapserver with a point x,y in WGS84 projection (from google maps) as a query, can mapserver give me the enclosing polygon information (using point-in-polygon method or something else)? If yes, how? I have already drawn the polygons on google map using tile mode. Can you suggest me a book/doc that helps with querying mapserver? Thanks, Varun On Sun, May 3, 2009 at 9:56 AM, Steve Lime steve.l...@dnr.state.mn.us wrote: Both examples show how to do this. You have to create a query using the coordinate from Google to access MapServer. My example uses the principle to query points but would work for polygons (which are actually easier). You could issue straight MapServer queries: http://.../cgi-bin/mapserv?mode=querymap=something.mapmapxy=google_x+google_y qlayer=the_polygons or do a WFS query. Since you're already using straight MapServer the former would probably be easiest. Steve Varun saraf vsaraf@gmail.com 05/02/09 1:34 PM Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google map? Goggle I believe can give me the exact co-ordinates of the point I clicked. Can mapserver use this point location to find which polygon was selected? Thanks, Varun 2009/5/2 Jim Strevinas voas_...@hotmail.com: A beautiful example that uses the Google Maps API is:
Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver
Make sure with polygon data to explicitly set TOLERANCE 0 in the layer definition to make sure the point is in the polygon. Steve On 5/7/2009 at 1:15 PM, in message 6db14d250905071115s6e44aec2g625edda034c78...@mail.gmail.com, Varun saraf vsaraf@gmail.com wrote: yes my data is in lat, long. I discovered the inverse lat long in mapxy just after sending this email and tried it. It works now but the New problem is that the result is a little tweaked. I guess its a problem with the projection. The tract number is not the current one when I click somewhere on the border of a tract. The projection is not that big a problem for me right now. I need to get this thing up and running by EOD with google maps (The dynamic clicking on the map etc). Thanks a lot for the prompt reply. On Thu, May 7, 2009 at 1:32 PM, Steve Lime steve.l...@dnr.state.mn.us wrote: Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents are neg,pos,neg,pos? Also is your data in lat/lon? Steve On 5/7/2009 at 12:27 PM, in message 6db14d250905071027j7ff0aac8j30edeb7f8c938...@mail.gmail.com, Varun saraf vsaraf@gmail.com wrote: Hi All, I am trying to integrate the census tracts on the google maps base. I am using the tile mode and have successfully drawn the shape files over the states of USA. I have some data in an access database that I need to show to the user when he selects a particular census tract (the shapes are polygons). However, since its a tile mode that I am using on google maps, I am unable to understand how do I get the information from mapserver as to which census tract was selected by the user? Is there a way mapserver can send me the polygon selected based on a co-ordinate lying inside the polygon? I know there is a way by using queries and a querymap for doing this. The query that I am using is as follows http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/census/testMap.map; mode=querymapxy=38.87795 -77.098617 I am providing a template in my map file that has the tract variables. However, the result is always the same msQueryByPoint(): Search returned no results. No matching record(s) found. Is it that mapserver is trying to look for a point feature in the location specifies by mapxy in the link above? How do I make mapserver to look for a polygon enclosing this co-ordinate and return me the result? I am attaching my mapfile also for reference. MAP NAME testMap STATUS ON SIZE 600 300 EXTENT -84 37 -75 40 UNITS DD SHAPEPATH data IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE ms_error.txt IMAGETYPE PNG WEB IMAGEPATH /ms4w/tmp/ms_tmp/ IMAGEURL /ms_tmp/ END QUERYMAP STATUS ON STYLE HILITE END LAYER NAME virginia STATUS DEFAULT TYPE polygon DATA tr51_d00 DEBUG 5 TOLERANCE 1000 TOLERANCEUNITS pixels TEMPLATE bodytemplate.html HEADER imapheader.html FOOTER imapfooter.html CLASS STYLE OUTLINECOLOR 128 128 128 COLOR 153 205 255 END TEMPLATE pointTemplate.html END END END Thanks, Varun On Mon, May 4, 2009 at 3:30 PM, Varun saraf vsaraf@gmail.com wrote: Hi Steve, If I provide Mapserver with a point x,y in WGS84 projection (from google maps) as a query, can mapserver give me the enclosing polygon information (using point-in-polygon method or something else)? If yes, how? I have already drawn the polygons on google map using tile mode. Can you suggest me a book/doc that helps with querying mapserver? Thanks, Varun On Sun, May 3, 2009 at 9:56 AM, Steve Lime steve.l...@dnr.state.mn.us wrote: Both examples show how to do this. You have to create a query using the coordinate from Google to access MapServer. My example uses the principle to query points but would work for polygons (which are actually easier). You could issue straight MapServer queries: http://.../cgi-bin/mapserv?mode=querymap=something.mapmapxy=google_x+google_y qlayer=the_polygons or do a WFS query. Since you're already using straight MapServer the former would probably be easiest. Steve Varun saraf vsaraf@gmail.com 05/02/09 1:34 PM Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google
Re: [mapserver-users] MapServer Dont Draw
Warning: dl() has been disabled for security reasons in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 51 That says it all: Your PHP installation does not allow you to load PHP modules, such as MapScript. So running a MapScript-based app, just isn't going to happen unless you ask your sysadmin to allow you to use dl() A long shot, but worth a try: Try commenting out the dl() line in globals.php:51 and see whether the app begins working. If so, it means that they pre-loaded MapScript for you and that you don't need to dl() it. If not, then you'll have to ask them very nicely to pre-load MapScript in the php.ini file, or get another web provider. (not to plug for ourselves, but we do map-friendly hosting; see signature) -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Label alignment (not as desired) . . .
All, Ok, let's try this again, I redid the link. . . . should work now for everyone. I'm playing around with generating a map collar image by labeling some lines with MapServer. I get the labels looking about what I would like them to look like, but the alignment vertically ( and this applies to horizontal alignment as well ) is not playing nice. See this link: http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595mapsize=70%20600mode=mapMOOSETIME=1241653121858 ( http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595mapsize=70%20600mode=mapMOOSETIME=1241653121858 ) I'm thinking that the labels are moving back and forth horizontally because of the underlying line work, It's not strictly horizontal but curved slightly, and there may or may not be a vertice visible within a view. (Can a vertice be marked somehow?) So I think MapServer is using the longest straight segment within the view to center on for labeling. Question, how do I get these to line up vertically (and horizontally)? I know there was some recent justification work going on, but didn't follow it in detail. Thanks bobb Pertinent mapfile chunks: LAYER METADATA ows_title layer_0 gml_include_items all END NAME 'usng' DATA '_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET -15 -1 FORCE true END END END LAYER METADATA ows_title layer_0 gml_include_items all END NAME 'usng' DATA '_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 15 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 FORCE true END END END LAYER METADATA ows_title layer_0 gml_include_items all END NAME 'usng' DATA '_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET 14 -1 FORCE true END END MAXSCALE 500 END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer Dont Draw
dl() its allow in the php.ini the extension=php_mapscript.so load ok and the mapserver is: mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE if commenting the dl() line the strace result is: bFatal error/b: Call to undefined function ms_newMapObj() in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b60/bbr /\n, 167br / bFatal error/b: Call to undefined function ms_newMapObj() in b/home/orsep/public_html/test/pmapper-stable/incphp/globals.php/b on line b60/bbr / Any ideas? Kind regards. 2009/5/7 Gregor at HostGIS gre...@hostgis.com: Warning: dl() has been disabled for security reasons in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 51 That says it all: Your PHP installation does not allow you to load PHP modules, such as MapScript. So running a MapScript-based app, just isn't going to happen unless you ask your sysadmin to allow you to use dl() A long shot, but worth a try: Try commenting out the dl() line in globals.php:51 and see whether the app begins working. If so, it means that they pre-loaded MapScript for you and that you don't need to dl() it. If not, then you'll have to ask them very nicely to pre-load MapScript in the php.ini file, or get another web provider. (not to plug for ourselves, but we do map-friendly hosting; see signature) -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer Dont Draw
dl() its allow in the php.ini the extension=php_mapscript.so load ok I'd have to disagree. If you call dl() you're told that you're not allowed to use dl() That means that dl() is not allowed in the php.ini If you leave it out, mapscript is obviously not loaded via an extension= line in php.ini since ms_newMapObj() is undefined. And at any rate you don't want to do both. So let's start over: Do you have command-line access? What happens if you run this command? echo '?php dl(php_mapscript.so); print Hello ?'| php If you get Module 'MapScript' already loaded then MapScript really is loading via php.ini In that case, remove the dl() line since it's useless to load an already-loaded module. If not, then php_mapscript.so is definitely NOT being loaded via php.ini and you WILL want to use dl() In this case, double check your php.ini for the enable_dl keyword, and restart Apache if you haven't done so already. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4
G'day all, I see a rewrite of PostGIS handling was a major achievement in the 5.4 Release. I have a number of polygon layers that I use on a fairly static basis (political boundaries etc) but I vaccilate between using them from: PostGIS (for convenience - I use them for analysis as well so they are in the database anyway, easy to backup and keep consistent between servers) or from Shapefiles (exported because they were faster to render). Most of them are not overly complex or large, is there still significant benefit to using them from shapefiles, or is it becoming a more closely run race between sources. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 b...@remoteinformation.com.au Out here, it pays to know... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4
The PostGIS rewrite was more about maintainability than speed. In fact, the new code is a touch slower although probably not significantly so. If you're really trying to crank as much performance out as possible then in many cases shapefiles will win. Convenience should not be overlooked though so why bother with multiple versions of the same data if you can live with a few milleseconds slower. Steve Ben Madin b...@remoteinformation.com.au 05/07/09 10:14 PM G'day all, I see a rewrite of PostGIS handling was a major achievement in the 5.4 Release. I have a number of polygon layers that I use on a fairly static basis (political boundaries etc) but I vaccilate between using them from: PostGIS (for convenience - I use them for analysis as well so they are in the database anyway, easy to backup and keep consistent between servers) or from Shapefiles (exported because they were faster to render). Most of them are not overly complex or large, is there still significant benefit to using them from shapefiles, or is it becoming a more closely run race between sources. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 b...@remoteinformation.com.au Out here, it pays to know... ___ 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] mapserver is giving blank map
Hi everyone, I am an ultra newbie to mapserver.I am following the tutorial: http://demo.mapserver.org/tutorial/sections.html In the first example itself I am getting a blank map.Only the background is appearing. I am using the same mapfile from the tutorail i.e. example1-1.map with the only change in the path of the data. Please suggest a solution. -- View this message in context: http://n2.nabble.com/mapserver-is-giving-blank-map-tp2843614p2843614.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