[mapserver-users] Displaying a point given its latitude and longitude
Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Displaying a point given its latitude and longitude
Hi ramya please check mapserver tutorials on its website On 8/20/08, ramya srinivasan [EMAIL PROTECTED] wrote: Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Thanks Regards Sandeep Kumar Jakkaraju ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] Displaying a point given its latitude andlongitude
Ramya, Here is an example that allows me to display a rectangle in a custom coordinate system. Start from there using your own coordinate system. LAYER PROJECTION init=epsg:42105 END METADATA wms_title Fond de carte END NAME fond_carte STATUSON DUMP TRUE EXTENT3 75000 170 212 TYPE POLYGON FEATURE POINTS -8000 57150 -8000 2111000 1773200 2111000 1773200 57150 -8000 57150 END END CLASS COLOR 240 230 175 END END __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de ramya srinivasan Envoyé : 20 août 2008 06:09 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] Displaying a point given its latitude andlongitude Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Corrupt image output (solved?)
Hello again, I think I found the cause of my problem - on my server (where I had preprocessed all of my imagery), I have libgeotiff-1.2.4 installed from the F8 repositories. On my laptop I had libgeotiff-1.2.3 installed from source. I upgraded my laptop to libgeotiff-1.2.4 (I tried 1.2.5, but it didn't compile for me), and recompiled gdal and mapserver. Now it seems that imagery renders okay (after some quick tests). I didn't realize I had different libgeotiff library versions...but it also hadn't occurred to me that a GeoTiff dataset might be incompatible with different versions of libgeotiff. So should I maybe close the ticket that I opened earlier today? Mike Mike Leahy wrote: Ok, I'll file a ticket shortly...but I have a few more things I've tried that might add insight to this. It seems if I load the map via cgi mapserver, I get the same problems - so this isn't limited to mapscript. In contrast, I don't seem to have any trouble with the output values if I extract a single pixel from an image using gdal_translate to a *.grd file (at the same coordinates where I get corrupt results from mapscript/mapserver) - so the problem doesn't seem to be with gdal by itself. Also, I can point out that the corrupted areas in the output have no coincidence with tile-index boundaries. I say this out because if I render a layer from a non-tiled image dataset, the corrupted areas appear as horizontal bands across the entire width of the image output, rather than rectangular areas (though my non-tiled dataset is a single-band floating-point DEM, rather than an rgb image). However, as before, the height and number of lines of each band is variable. Maybe it's just time to upgrade my OS (F7 is EOL after all). Regards, Mike Tamas Szekeres wrote: Mike, It's quite difficult to find out what's going on. You should file a ticket including the example and sample data. Probably the problem may be reproduced in other machines as well. Best regards, Tamas 2008/8/19 Mike Leahy [EMAIL PROTECTED]: Tamas, I just gave this a try a few times - deleted the cache, and loaded one tile. It seems to happen less frequently, but I still have about a 1 in 3 chance of getting various rectangle artifacts on the image. It basically looks like something forgets to draw one or more of the rgb colours. Mike Tamas Szekeres wrote: Mike, Did you experience the same problem when calling tile.php directly when rendering an individual tile? Best regards, Tamas 2008/8/19 Mike Leahy [EMAIL PROTECTED]: Hello list, I'm wondering if anyone can help me figure out a problem I'm having with corrupted output from from a tiled geotiff dataset I'm using in a ka-Map environment. You can see what's happening to the imagery here: http://img527.imageshack.us/my.php?image=corrupthd1.png This generally happens when I'm zoomed in fairly close, and usually with this high-resolution image dataset. However, I can get corrupted output for other raster datasets (all geotiff, but not always tiled). It seems to happen when the machine is processing most intensively (i.e., usually when the imagery is being rendered by ka-Map). It also seems to be limited to the laptop I am using, which is running F7-x86_64. In contrast, I have an actual server (F8-x86_64), which has a virtually identical setup (with respect to MapServer and its various dependencies), but with lots more cpu cores and ram, and it's having no trouble at all (as far as I have noticed). The corruption in the output from the same application my laptop is not always the same - if I clear the cache for ka-Map and re-render the images, I'll get similar artifacts appearing in the output (red, green, blue and/or black rectangles), but they will vary in size and location. It happens for both GD/AGG drivers, and JPEG/PNG output formats. Until now, I figured it was just a problem with limited memory on my laptop (it was always around 100% when rendering this imagery on the web service + viewing the application in a browser), but now I've upgraded the ram - there's plenty of spare room and I'm still getting the same problem. I just finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. Basically, the only real differences I can think of between my laptop and my server are the number of cpu cores (1 on my laptop vs. 8 on the server), and possibly the versions of some of the underlying libraries in the system. Does anyone know where I should start looking to find the cause of this? Or perhaps somebody recognizes this problem, and knows what I might be doing wrong... Thanks for any suggestions, Mike ___ 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
Re: [mapserver-users] Using space in layer's name?
Jukka is right, layernames with spaces will throw warnings in a WMS GetCapabilities request. Advice: never use spaces in a layername, period. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ [EMAIL PROTECTED] wrote: Er, nope. I'm not using WMS. --- On Wed, 8/20/08, Rahkonen Jukka [EMAIL PROTECTED] wrote: From: Rahkonen Jukka [EMAIL PROTECTED] Subject: Re: [mapserver-users] Using space in layer's name? To: [EMAIL PROTECTED], mapserver-users@lists.osgeo.org Date: Wednesday, August 20, 2008, 2:46 AM Hi, Are you using WMS?In the document WMS servers with MapServer http://mapserver.gis.umn.edu/docs/howto/wms_server reads: # Layer Name and wms_title metadata: Every individual layer needs its own unique name and title. Layer names are also used in GetMap and GetFeatureInfo requests to refer to layers that should be included in the map output and in the query. Layer names must start with a letter when setting up a WMS server (layer names should not start with a digit or have spaces in them). I believe that spaces in layer names are not allowed by WMS standard, but I may be wrong. I do also believe that MapServer cgi supports them, at least I can find example map files with layers named like my layer. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Puolesta [EMAIL PROTECTED] Lähetetty: 20. elokuuta 2008 8:40 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Using space in layer's name? I'm using MapServer 5.0.2. I have two layers: the first is named jaringan ipal dan iplt (layer name contains space character), while the second is named jaringan_telepon (does not contain space). I am using the [layers] parameter to dynamically pass my layers to another template for printing purpose. Alas, because one layer contains space, that particular layer is not passed at all. Here is the contents of the [layers] parameter: layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon The layer jaringan_telepon is displayed correctly, but the layer jaringan ipal dan iplt fails to display, because MapServer takes the space character (%20) as delimiter. I tried to use the parameter [layers_esc] instead, and here is the contents of the [layers_esc]: layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon Here, the layer jaringan ipal dan iplt still fails to display, because MapServer replaces the space with + (plus sign), which is also used as delimiter. Thus, not even [layers_esc] allows us to use space character in layer's name. Is there any other way to use layer with space character in its name, then? Thanks, -Kresh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04
Hi, I'm struggling a trying to configure MapServer 5.2 for the performance comparison presentation that we'll hold at FOSS4G 2008 (http://conference.osgeo.org/index.php/foss4g/2008/paper/view/256) In particular, no matter what I do, a single, long running mapserv process seems to be handling all of the requests coming down the pipe, regardless of how many client threads I'm using to hit the server. Some details on what I've done so far follow. I've followed the instructions on these pages to build MapServer from sources along with support with fastcgi and AGG: http://mapserver.gis.umn.edu/docs/howto/mapserverubuntu http://mapserver.gis.umn.edu/docs/howto/fastcgi I then copied a mapserv in /usr/lib/cgi-bin, and then made a copy named mapserver.fcgi to be able and test with both fastcgi enabled and not. Apache wise, the /etc/apache/mods-available/fastcgi.conf contains: IfModule mod_fastcgi.c AddHandler fastcgi-script .fcgi #FastCgiWrapper /usr/lib/apache2/suexec FastCgiIpcDir /var/lib/apache2/fastcgi FastCgiConfig -initial-env PROJ_LIB=/usr/local/share/proj -initial-env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5 /IfModule and the /etc/apache/sites-enabled/default contains: NameVirtualHost * VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/ Directory / Options FollowSymLinks AllowOverride None /Directory Directory /var/www/ Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all /Directory ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ Directory /usr/lib/cgi-bin AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all /Directory ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ /usr/share/doc/ Directory /usr/share/doc/ Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 /Directory /VirtualHost If I hit cgi-bin/mapserv a mapserv executable is created and destroyed per request, which is what I expect, but if I hit cgi-bin/mapserv.fcgi a single process is created, which never dies (that's ok) and that serves alone every incoming request, meaning the second core of my cpu is not working at all. Of course this is bad, it hampers scalability as the client threads used for testing go up. I've tried both with threaded and forked model for Apache itself, made no difference. Any suggestion? Cheers Andrea ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users