Re: [mapserver-users] Display performance
Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 20 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 2 or 20 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Chris Jackson Lähetetty: 2. syyskuuta 2010 23:03 Vastaanottaja: Lime, Steve D (DNR) Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Display performance Steve That saves some work, but how long would you expect one that size to load? I have just realised (admittedly not looked at the data for a couple of years) that it is actually 170,000 records - takes about 20 secs to load - sound reasonable? Chris On 2 September 2010 20:50, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: That's not that big a dataset. Probably faster from a local shapefile. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson Sent: Thursday, September 02, 2010 2:29 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Display performance Hi I wondered if anyone knew if displaying a 50,000 polygon dataset would be significantly faster if called from a database rather than a spatially indexed shapefile, or is it a similar overhead for both. Thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Commercial support
Hi Guys, Some companies choose commercial software such as Oracle MapViewer because they offer the security of commercial support. So if the companies have any problem configuring it (or any other problem) they will use the support that they have paid for. IT engineers in general can learn for them self and with the help of the community support (mailing list) they are able to solve virtually any problem. And MapServer mailing list is the perfect example of that. Nevertheless, CEOs and boards of directors still need some kind of security and they prefer to use software that provide commercial support. Are you guys aware of companies that provide commercial support for MapServer ? thanks, -- Sebastian E. Ovide ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] thread safety and php and fastcgi
On 09/02/10 16:03, Frank Warmerdam wrote: In the case of FastCGI the fastcgi mapserver process is only given one cgi request at a time to handle. It won't be given another until the previous one is complete. Apache can start multiple separate FastCGI MapServer instances in order to handle multiple requests at once but they each have their own process. So, FastCGI does not have multi-threading issues. It does occationally run into issues with memory leaks or left over state from a previous cgi request. What about mod_fcgid and mod_python? Are they thread-safe too running MapServer and MapScript scripts? Reading the PHP-MapScript installation guide at http://mapserver.org/installation/php.html I see mod_php is still considered unsafe. Jan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Commercial support
Sebastian, if you just look for application support there are many companies in each country, if you look for support for further developments and/or bugfixing there are companies like mapgears or dm solutions and i'm sure some more. Till Sebastian E. Ovide wrote: Hi Guys, Some companies choose commercial software such as Oracle MapViewer because they offer the security of commercial support. So if the companies have any problem configuring it (or any other problem) they will use the support that they have paid for. IT engineers in general can learn for them self and with the help of the community support (mailing list) they are able to solve virtually any problem. And MapServer mailing list is the perfect example of that. Nevertheless, CEOs and boards of directors still need some kind of security and they prefer to use software that provide commercial support. Are you guys aware of companies that provide commercial support for MapServer ? thanks, -- Sebastian E. Ovide ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- - 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] Display performance
Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME meanspringpeakflow TYPE polygon DEBUG 5 DATA Tide TEMPLATE void PROJECTION +proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs END METADATA DESCRIPTION Mean Spring Peak Flow RESULT_FIELDS ID,DISTANCE,DEPTH,MEAN_SP_PC RESULT_HEADERS ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s) ows_title meanspringpeakflow RESULT_HYPERLINK ID|| Load graphing tool END # Metadata CLASS NAME ' 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] = 4 AND [MEAN_SP_PC] 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] = 3.5 AND [MEAN_SP_PC] 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc On 3 September 2010 09:04, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 20 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 2 or 20 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Display performance
Hi, I guess that classification has a big effect in your case. I have been reading that string comparisons are faster than logical ones. How about to have a try by classifying your shapefile and writing the classes directly to a new attribute field? This is my scale dependent group, simplified and spiced with some typos, I fear. LAYER GROUP Parcels NAME all_parcels TYPE POLYGON STATUS ON DATA parcels_2008 UNITS METERS MAXSCALEDENOM 10 CLASS NAME parcel_class STYLE OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA ows_include_items AREA, PERIMETER wms_titleall_parcels wms_srs EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913 END PROJECTION init=epsg:2393 END END LAYER GROUP Parcels NAME ten_percent TYPE POLYGON STATUS ON DATA parcels_2008_0 UNITS METERS MAXSCALEDENOM 100 MINSCALEDENOM 10 CLASS NAME parcel_class STYLE OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA ows_include_items AREA, PERIMETER wms_titleten_percent wms_srs EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913 END PROJECTION init=epsg:2393 END END LAYER GROUP Parcels NAME one_percent TYPE POLYGON STATUS ON DATA parcels_2008_00 UNITS METERS MINSCALEDENOM 100 CLASS NAME parcel_class STYLE # COLOR 240 240 0 OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA ows_include_items AREA, PERIMETER wms_titleone_percent wms_srs EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913 END PROJECTION init=epsg:2393 END END LAYER -Jukka- Lähettäjä: Chris Jackson [mailto:webturt...@gmail.com] Lähetetty: 3. syyskuuta 2010 12:13 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Display performance Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME meanspringpeakflow TYPE polygon DEBUG 5 DATA Tide TEMPLATE void PROJECTION +proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs END METADATA DESCRIPTION Mean Spring Peak Flow RESULT_FIELDS ID,DISTANCE,DEPTH,MEAN_SP_PC RESULT_HEADERS ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s) ows_title meanspringpeakflow RESULT_HYPERLINK ID|| Load graphing tool END # Metadata CLASS NAME ' 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] = 4 AND [MEAN_SP_PC] 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] = 3.5 AND [MEAN_SP_PC] 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc On 3 September 2010 09:04, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all
[mapserver-users] Artifacts on raster dataset after using gdaladdo
Hi, I have a set of aerial ortophoto images. I have done the following: 1. gdal_translate -co TILED=YES on all of them 2. gdaladdo 2 4 8 16 on all of them 3. gdaltindex The problem is - artifacts appear in the lower right corner of each raster file (tiled and overviewed). They ave different colors depending of the scale. For example, on 1:15000 scale they appear as yellow squares. On 1:1 scale they appear as blue _| (reverse L). On 1:5000 they disappear I investigated and found out this happens after using gdaladdo. I am using gdaladdo from gdal-bin on 64bit debian. The version of gdal-bin is 1.5.2-3. I saw similar issues reported in ticket #2346 2 years ago. Should I use newer GDAL library? regards, dejan___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Display performance
Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM MEAN_SP_PC CLASS EXPRESSION 1 NAME 4.00 (m/s) STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Display performance
That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson webturt...@gmail.com wrote: Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM MEAN_SP_PC CLASS EXPRESSION 1 NAME 4.00 (m/s) STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris ___ 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] Display performance
On Fri, Sep 3, 2010 at 11:12, Chris Jackson webturt...@gmail.com wrote: Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME meanspringpeakflow TYPE polygon DEBUG 5 DATA Tide TEMPLATE void PROJECTION +proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs END METADATA DESCRIPTION Mean Spring Peak Flow RESULT_FIELDS ID,DISTANCE,DEPTH,MEAN_SP_PC RESULT_HEADERS ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s) ows_title meanspringpeakflow RESULT_HYPERLINK ID|| Load graphing tool END # Metadata CLASS NAME ' 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] = 4 AND [MEAN_SP_PC] 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] = 3.5 AND [MEAN_SP_PC] 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc you can speed things up a little by simplifying your expressions in case mean_sp_pc is a continous value: class expression ([item]=4) ... end class expression ([item]=3.5) #this suffices and implies [item] 4 as all entries with [item]=4 wil have been treated by the first class ... end class ...etc... end regards, thomas On 3 September 2010 09:04, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 20 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 2 or 20 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- ___ 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] Display performance
Ok Folks I am now ready to go home and have a sit down!! I have re-classified the layer with a new class column and then ordered the shapefile by the most common classes. the results are in.. 3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main saving was by just reclassifying. Thanks to all as this has been a great learning experience, I am now going to see if I can find a bigger model grid to play with.! ;o) Chris On 3 September 2010 11:07, thomas bonfort thomas.bonf...@gmail.com wrote: That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson webturt...@gmail.com wrote: Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM MEAN_SP_PC CLASS EXPRESSION 1 NAME 4.00 (m/s) STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris ___ 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] rotation issue using mores symbols for a class
-- Forwarded message -- From: DFE mimmopastic...@gmail.com Date: 2010/9/3 Subject: rotation issue using mores symbols for a class To: mapserver-users@lists.osgeo.org Hi all, using a POINT Layer, I need to use a CLASS with two symbols: i.e. two triangles one inside the other. I followed the reference [1] and everything work as aspected excepet when I applied a rotation using the ANGLE property: if the ANGLE value isn't a standard value like 0°, 90° etc. the inner shape isn't centered inside the bigger, see [2]. I'm using Mapserver 5.6.3, following the mapfile part. LAYER NAME 'layer_sht' TYPE POINT DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT 5 35 25 50 DATA '../tracks.shp|layerid=0' METADATA 'ows_title' 'layer_sht' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'IS_SHT' EXPRESSION ( '[IS_SHT]' eq 'Y' ) ) STYLE SYMBOL triangle3 #SIZE 16 COLOR 255 0 0 #OUTLINECOLOR 0 0 0 ANGLE [COURSE] END STYLE SYMBOL triangle3 SIZE 8.0 #OUTLINECOLOR 0 0 0 COLOR 0 0 0 ANGLE [COURSE] END END END What is the best way to paint that symbols? Thanks in advance, Domenico. [1] http://mapserver.org/mapfile/symbology/construction.html#sym-construction [2] http://shareimage.org/images/jc2mjqtm5mumqrlkvd2u.png ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] formatting query and identify results
Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + - + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] formatting query and identify results
On 9/3/2010 8:12 AM, Mark Volz wrote: Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + “-“ + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not modify the existing pin, then adding a new column would not count as modify the existing pin. -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] formatting query and identify results
Andy, Thank you for your reply. I could add a new column to the data to create a new mask so that the application will work. However, once I am complete with the development of the application, I will no longer be in control of the data. Since the data source has the wrong mask, any data updates from my client will not include the correct mask. Mark Volz GIS Specialist -Original Message- From: Andy Colson [mailto:a...@squeakycode.net] Sent: Friday, September 03, 2010 9:02 AM To: Mark Volz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] formatting query and identify results On 9/3/2010 8:12 AM, Mark Volz wrote: Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + - + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not modify the existing pin, then adding a new column would not count as modify the existing pin. -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] formatting query and identify results
On 9/3/2010 8:12 AM, Mark Volz wrote: Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + - + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not modify the existing pin, then adding a new column would not count as modify the existing pin. -Andy On 9/3/2010 9:08 AM, Mark Volz wrote: Andy, Thank you for your reply. I could add a new column to the data to create a new mask so that the application will work. However, once I am complete with the development of the application, I will no longer be in control of the data. Since the data source has the wrong mask, any data updates from my client will not include the correct mask. Mark Volz GIS Specialist Ah, bummer. Where in the process are we talking? The beginning? They open a web browser with url http://.../map=a.mappin=badmask? Or you are generating the map, know the pin, but need to display the bad mask instead of the good? Humm... still using geoMoose? So the backend is cgi w/shapefiles? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] formatting query and identify results
Mark, I think mapserver will pass Javascript, but the templates must be named using a .html (and note the lower case) extension. I had a problem with using upper case .HTML in mapserver 5.2.1 (http://trac.osgeo.org/mapserver/ticket/784). Depending on the target of the html/javascript, triggering it could get tricky. If its a new window, then onload, etc will work. If its an AJAX framework like GeoMoose then I'm not so sure. With Geomoose 1.6 I used some of the input validation tools to do some calculation, but I haven't looked into similar capability within Geomoose 2.2. Best Regards, Brent Fraser Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + - + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist ___ 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] Re: VRT memory usage (from C# Mapscript)
Frank Warmerdam wrote: Lisa, In recent versions of MapServer an effort is made to keep GDAL files open between render requests for raster layers with a single file as opposed to a tile index. I wonder if you might be running into a problem with this behavior in a long running mapscript script. I don't understand the whole context in which you are operating so I could be off base. But you might consider adding: PROCESSING CLOSE_CONNECTION=NORMAL to your raster layer to force the files to be closed at the end of a render. That seems to fix it. Is there any way to set that option globally when compiling? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/VRT-memory-usage-from-C-Mapscript-tp5491654p5495733.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] Re: VRT memory usage (from C# Mapscript)
Lisa Gaudette wrote: Frank Warmerdam wrote: Lisa, In recent versions of MapServer an effort is made to keep GDAL files open between render requests for raster layers with a single file as opposed to a tile index. I wonder if you might be running into a problem with this behavior in a long running mapscript script. I don't understand the whole context in which you are operating so I could be off base. But you might consider adding: PROCESSING CLOSE_CONNECTION=NORMAL to your raster layer to force the files to be closed at the end of a render. That seems to fix it. Is there any way to set that option globally when compiling? You could change this code in mapraster.c: if( close_connection == NULL layer-tileindex == NULL ) close_connection = DEFER; To assign a default of NORMAL instead. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Commercial support
adams wrote: Sebastian, if you just look for application support there are many companies in each country, if you look for support for further developments and/or bugfixing there are companies like mapgears or dm solutions and i'm sure some more. Thank you Till for the plug. :) As Till wrote, there are several organizations providing professional support and development services and training all around the world, and you can find many of them through OSGeo's service provider directory: http://www.osgeo.org/search_profile I'd add that for any open source project, you can also look up the developers/contributors list and usually several of them are consultants providing professional support/development/training services around the software they develop. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Commercial support
There are several I know of in New Zealand others internationally. Where are you after such support? I have often found that companies are more in need of a support contract for legal/liability issues than capability ones. FOSS tends to be on a user beware basis, rather than take on the responsibility for running maintaining software systems companies want someone else to be responsible. It brings to mind one contract we lost by offering a FOSS based solution. The response came back that the client did not want an Open Source solution. What they got was a contract with a colleague based on the same Open Source apps we had proposed, with a support contract no mention that the underlying tools were in fact Open Source. Brent Wood --- On Fri, 9/3/10, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: From: Sebastian E. Ovide sebastian.ov...@gmail.com Subject: [mapserver-users] Commercial support To: mapserver-users@lists.osgeo.org Date: Friday, September 3, 2010, 8:51 PM Hi Guys, Some companies choose commercial software such as Oracle MapViewer because they offer the security of commercial support. So if the companies have any problem configuring it (or any other problem) they will use the support that they have paid for. IT engineers in general can learn for them self and with the help of the community support (mailing list) they are able to solve virtually any problem. And MapServer mailing list is the perfect example of that. Nevertheless, CEOs and boards of directors still need some kind of security and they prefer to use software that provide commercial support. Are you guys aware of companies that provide commercial support for MapServer ? thanks, -- Sebastian E. Ovide -Inline Attachment Follows- ___ 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] Commercial support
http://www.osgeo.org/search_profile Thanks for that guys. That is exactly what I was looking for. -- Sebastian E. Ovide ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Display performance
One other tip is that in the case where everything is to be classified you can leave the expression off the last class and it becomes a default. Saves a little processing. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson Sent: Friday, September 03, 2010 6:05 AM To: thomas bonfort Cc: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Display performance Ok Folks I am now ready to go home and have a sit down!! I have re-classified the layer with a new class column and then ordered the shapefile by the most common classes. the results are in.. 3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main saving was by just reclassifying. Thanks to all as this has been a great learning experience, I am now going to see if I can find a bigger model grid to play with.! ;o) Chris On 3 September 2010 11:07, thomas bonfort thomas.bonf...@gmail.commailto:thomas.bonf...@gmail.com wrote: That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson webturt...@gmail.commailto:webturt...@gmail.com wrote: Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM MEAN_SP_PC CLASS EXPRESSION 1 NAME 4.00 (m/s) STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto: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