[mapserver-users] Downloadable version of mailing-lists

2008-11-06 Thread Ad Brouwer
Hello All, I'm new to MapServer and MapScript, so I need as much info as i can get. I did not find a way to search the mailinglists. Is this because i missed is or isn't there any? As an alternative i tried the 'downloadable version of the mailinglist, but when untarred the file, the *.txt was

Re: [mapserver-users] Downloadable version of mailing-lists

2008-11-06 Thread bartvde
Hi Ad, I can confirm something is wrong with the text.gz archives. I'd suggest using plain old Google with a site keyword, something like: site:lists.osgeo.org/pipermail wfs problem Hope this helps. Best regards, Bart Hello All, I'm new to MapServer and MapScript, so I need as much info

[mapserver-users] getting field names using mapscript

2008-11-06 Thread Jochen Wagner
Hi list, I would like to list from any layer ($ qlayer) only the field names of the attribute tables and the number of objects in the table. With this code it works already: //loading mapfile $map= ms_newMapObj($mapfilepath.'\ demo.map'); //set layer $layer = $map-getLayerByName($qlayer);

RE: [MAPSERVER-USERS] point, polygon and line layers in single map file

2008-11-06 Thread Venkat Rao Tammineni
Hi, You want to store 3 type (point line polygon) in single table? if it is... It is not possible.. you can not store different data types(point line polygon). As per my knowledge. Or You want create 3 types in a single layer ? it is possible. This common approach.. Under map u can have any

[MAPSERVER-USERS] ms4w installation

2008-11-06 Thread lakku
hi iam using windows XP media center edition i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall apache but it is displaying error as 'httpd ' is not recognized as internal or external command,operable program or batch file plz tell me that -- View this message in

Re: [mapserver-users] getting field names using mapscript

2008-11-06 Thread Jochen Wagner
thanks, works fine and fast for each layer: $layer-open(); $myitems = $layer-getItems(); foreach($myitems as $item) { echo $item.br; } $layer-close(); but how can I get the numer of records without a query? Jo 2008/11/6 Umberto Nicoletti [EMAIL PROTECTED]: You can use the items array

Re: [mapserver-users] getting field names using mapscript

2008-11-06 Thread Umberto Nicoletti
Sorry don't know that :-( On Thu, Nov 6, 2008 at 2:32 PM, Jochen Wagner [EMAIL PROTECTED] wrote: thanks, works fine and fast for each layer: $layer-open(); $myitems = $layer-getItems(); foreach($myitems as $item) { echo $item.br; } $layer-close(); but how can I get the numer of

Re: [MAPSERVER-USERS] ms4w installation

2008-11-06 Thread Ritesh Ambastha
Have you tried /ms4w/apache-install.bat before trying uninstallation? Ritesh Ambastha On Thu, Nov 6, 2008 at 6:02 PM, lakku [EMAIL PROTECTED] wrote: hi iam using windows XP media center edition i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall apache but it is

[mapserver-users] map mode for ajax calls

2008-11-06 Thread nikos
Hi all, I've been playing using ajax calls to the ms executable. I'm using map mode and piping to a file, and returning this file ref to update the image div, and it works fast and fine. I would also like to update the legend, layer images, and it seems that these are only produced in browse

[MAPSERVER-USERS] point,polygon and line layers in single map file

2008-11-06 Thread S.Reena
Hi All, Is it possible to make a single map file having all the three types of layers ( point, polygon and line) and if yes how to store that in geometry_columns table in postgresql which gives duplication error ? -- View this message in context:

Re: [mapserver-users] map mode for ajax calls

2008-11-06 Thread Dan Little
You can actually call the legend and individual layer images. For the legends, mode=legend will help you out. For the layer images, you could iterate through the layer name list to generate each individual image. - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To:

[MAPSERVER-USERS] Features not displayed if LABELITEM is null

2008-11-06 Thread Philippe Kruschitz
Hi list, Is it normal that Mapserver won't draw features if it can't find a string in the [labelitem] attribute? I am trying to display a road network and, logically, some of the segments in it don't have any name attached to them. In this case, there is a NULL value in the 'name' column of my

Re: [MAPSERVER-USERS] point,polygon and line layers in single map file

2008-11-06 Thread Stephen Woodbridge
S.Reena wrote: Hi All, Is it possible to make a single map file having all the three types of layers ( point, polygon and line) and if yes how to store that in geometry_columns table in postgresql which gives duplication error ? Yes, all mapfiles tend to have multiple layers, I have some

Re: [MAPSERVER-USERS] Features not displayed if LABELITEM is null

2008-11-06 Thread Steve Lime
What layer type, version, etc...? On 11/6/2008 at 9:10 AM, in message [EMAIL PROTECTED], Philippe Kruschitz [EMAIL PROTECTED] wrote: Hi list, Is it normal that Mapserver won't draw features if it can't find a string in the [labelitem] attribute? I am trying to display a road network

[mapserver-users] Getteing the intersection of two layers

2008-11-06 Thread Christian Jauvin
Hi Everyone, I have two layers that I want to intersect: one with points, and one with multiple polygons representing the regions of a territory. The first approach I just tried is doing it programmatically, through Python/MS: I first union all the region polygons, and then get the convex hull

[mapserver-users] about Obtaing high performance in the map server response

2008-11-06 Thread fsalas
I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response

Re: [mapserver-users] about Obtaing high performance in the map server response

2008-11-06 Thread Guillaume Sueur
Holà, What sort of data are you displaying ? which format are them ? regards Guillaume fsalas a écrit : I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high

Re: [mapserver-users] getting field names using mapscript

2008-11-06 Thread Steve Lime
If you're using a shapefile however you can do something like: // in perl $shapefile = new mapscript::shapefileObj('myshapefile', -1); print $shapefile-{numshapes}; There is a getNumFeatures() method for layer objects although I don't know if it is widely implemented. Steve On

Re: [MAPSERVER-USERS] Features not displayed if LABELITEM is null

2008-11-06 Thread Philippe Kruschitz
Hi Steve, We work with a *lot* of mapfiles on this project and after going through them thoroughly, I found out that the older one still had a filter on null values set. Therefore, replacing the null values with a string seemed to do it I should have thought of this earlier, sorry. Thanks

Re: [mapserver-users] about Obtaing high performance in the map server response

2008-11-06 Thread Stephen Woodbridge
fsalas wrote: I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response There is a

Re: [mapserver-users] getting field names using mapscript

2008-11-06 Thread Nicol Hermann
Hi Jochen, Assuming you are using Shapefiles maybe you can achieve your second goal with the base module of PHP http://de3.php.net/manual/de/function.dbase-numrecords.php HTH Nicol Am Donnerstag, den 06.11.2008, 12:10 +0100 schrieb Jochen Wagner: Hi list, I would like to list from any layer

[mapserver-users] Fw: about Obtaing high performance in the map server response using Mapserver and postgis

2008-11-06 Thread fsalas
I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response I have been working with

Re: [mapserver-users] Getteing the intersection of two layers

2008-11-06 Thread Steve Lime
You could try a feature query in MapServer/MapScript. First step is to do a query that selects the polygons (probably by attribute) and then do a queryByFeatures() query on the point layer. The result would be a set of points that are contained in your polygon features. Be sure to set the

Re: [mapserver-users] about Obtaing high performance in the map server response

2008-11-06 Thread fsalas
Stephen, I Attached the map file I working with postgres/postgis with mapserver 5.2.0 best regards Francisco Salas - Original Message - From: Stephen Woodbridge [EMAIL PROTECTED] To: fsalas [EMAIL PROTECTED] Cc: mapserver mapserver-users@lists.osgeo.org Sent: Thursday, November 06,

Re: [mapserver-users] about Obtaing high performance in the map server response

2008-11-06 Thread Stephen Woodbridge
Do you have spatial index on all you geometry columns create index table_gidx on table using gist(the_geom); do this for each table and replace table wit the table name. then do: vacuum analyze; If you are zoomed all the way out and displaying all the data, then this is the worse case and it

Re: [MAPSERVER-USERS] ms4w installation

2008-11-06 Thread Jeff McKenna
lakku wrote: hi iam using windows XP media center edition i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall apache but it is displaying error as 'httpd ' is not recognized as internal or external command,operable program or batch file plz tell me that You can also

[mapserver-users] Map Labels Problem

2008-11-06 Thread Kusum
Dear All I am trying to use mercator projection in my mapfile. Also I am using a raster image along with my shp data At first level it does not show the raster image But when it does it hides the labels on map. u can see this link http://mapxl.com/interactive-maps/world-map11.php I am confused

Re: [mapserver-users] Map Labels Problem

2008-11-06 Thread Jeff McKenna
Kusum wrote: Dear All I am trying to use mercator projection in my mapfile. Also I am using a raster image along with my shp data At first level it does not show the raster image But when it does it hides the labels on map. u can see this link

[mapserver-users] Get the actual mode of the map

2008-11-06 Thread Rui Gomes
Good Morning... I try to find a substitution string to get the current mode of the map and i can't find it. There is some way to know what is the mode? Thanks -- Rui Gomes ___ mapserver-users mailing list

Re: [mapserver-users] Map Labels Problem

2008-11-06 Thread Kusum
Where exactly shoud we define the projection at the top of mapfile or with each layer I am trying to use 'init=epsg:54004' but its not changing the data projection if I use proj=merc only the projection of raster image changes and not the other data layers. Any suggestions please Kusum

Re: [mapserver-users] Map Labels Problem

2008-11-06 Thread Jeff McKenna
Kusum wrote: Where exactly shoud we define the projection at the top of mapfile or with each layer I am trying to use 'init=epsg:54004' but its not changing the data projection if I use proj=merc only the projection of raster image changes and not the other data layers. Any suggestions