[mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file?
Hi, Instead of having an embedded class/style/label statement like listed below could a map file instead reference a .sld file? Thanks, John CLASS STYLE COLOR 255 0 0 WIDTH 2 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 FONT arial TYPE truetype SIZE 6 POSITION AUTO PARTIALS FALSE END END -- John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file?
No, this is not yet possible. It will need some funding to get done most likely. Best regards, Bart > Hi, > > Instead of having an embedded class/style/label statement like listed > below > could a map file instead reference a .sld file? > > Thanks, > > John > > CLASS > STYLE > COLOR 255 0 0 > WIDTH 2 > END > > LABEL > COLOR 150 150 150 > OUTLINECOLOR 255 255 255 > FONT arial > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > END > >END > > -- > John J. Mitchell > ___ > 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 display vector symbols (direction and magnitude) in MapServer?
I don't think ANGLE can be used in your case (if you do not use scripting to calculate the ANGLEs yourself for each generated map). Is there a need for a new TAG - for instance with the name "ORIENTATION", that could be used to specify compass directions (0=north, 90=east, 180=south, 270=west) for point symbols? Håvard Tveite John Maurer wrote: Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter in MapServer 5.0. One remaining concern I have, though, is how the angle will be interpreted by MapServer? Will -90 degrees always point to the South Pole regardless of the map projection I'm using (e.g. a polar stereo map centered on the South Pole), or will it always just point to the bottom of the map image regardless of the projection? i.e. Does MapServer interpret the degrees spatially or just in terms of the image? Unfortunately, if the latter is the case (which I suspect it probably is) it will not solve my problem. Do you know? Thanks again! Cheers, John Maurer Daniel Morissette wrote: John Maurer wrote: Dear MapServer Users, Does anybody have experience displaying vectors in MapServer? By "vectors", I don't mean the usual vector vs. raster difference. What I mean is displaying data like wind vectors, which are point locations that have both a direction (degrees) and magnitude (e.g. meters per second). Usually these are displayed as arrows, which each point in a certain direction and whose tails vary in length depending on the magnitude each measurement. Is this possible in MapServer? Thanks for any suggestions! You could bind the symbol size and angle to an attribute in your layer definition. If you can precompute the size in pixels based on the wind speed and store that to an 'arrowsize' attribute then you could use a layer defn's like this: LAYER TYPE POINT ... CLASS SYMBOL 'arrow' ANGLE [direction] SIZE [arrowsize] COLOR 0 0 0 END END If you can't precompute the arrow size in pixels, then you could use classes based on the wind speed attribute: LAYER TYPE POINT ... CLASSITEM 'windspeed' CLASS EXPRESSION ([windspeed] < 5) SYMBOL 'arrow' ANGLE [direction] SIZE 10 COLOR 0 0 0 END CLASS EXPRESSION ([windspeed] < 25) SYMBOL 'arrow' ANGLE [direction] SIZE 15 COLOR 0 0 0 END CLASS EXPRESSION ([windspeed] < 100) SYMBOL 'arrow' ANGLE [direction] SIZE 20 COLOR 0 0 0 END CLASS # No expression ... catch all for windspeed > 100 SYMBOL 'arrow' ANGLE [direction] SIZE 25 COLOR 0 0 0 END END Daniel -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 "Without geography, you're nowhere!" ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Håvard Tveite Department of Mathematical Sciences and Technology, UMB Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] build mapserver 5.2.0 with proj 4.6.0
Hello, I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script tells me : "configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required." , here is the configure comande line: ./configure --with-postgis --with-wmsclient --with-wfsclient --with-geos --with-proj=/usr/local/ --with-gdal --with-ogr --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ --with-curl-config=/usr/bin/curl-config --with-tiff --with-xml2-config=/usr/bin/xml2-config Do you know how to resolv this? Thanks Y. -- Yves Jacolin --- http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0
make sure you don't have any pre-installed Proj lib which would get linked during the ./configure Jacolin Yves a écrit : > Hello, > > I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script > tells me : "configure: error: This version of PROJ is too old. PROJ4.4.2 or > later is required." , here is the configure comande line: > ./configure > --with-postgis > --with-wmsclient --with-wfsclient > --with-geos > --with-proj=/usr/local/ > --with-gdal --with-ogr > --with-freetype=/usr/bin/freetype-config --with-eppl > --with-xpm=/usr/X11R6/lib/ > --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ > --with-curl-config=/usr/bin/curl-config > --with-tiff --with-xml2-config=/usr/bin/xml2-config > > Do you know how to resolv this? > > Thanks > > Y. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0
Hi Guillaume, This is a fresh system install from a "virtual private server" under OpenVZ, I tried to remove all packetage with apt-get remove, and nothing is removed ;) Furthermore I setup the option --with-proj which link to /usr/local/lib where libproj is installed (by myself). I built all main dependance (proj, gdal, geos, libecw and agg). It seems that configure script test pj_transform in proj and if this is not present, think it is an old proj release. I ma going to check in the proj ML to know more about this. Regards, Y. Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez écrit : > make sure you don't have any pre-installed Proj lib which would get > linked during the ./configure > > Jacolin Yves a écrit : > > Hello, > > > > I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure > > script tells me : "configure: error: This version of PROJ is too old. > > PROJ4.4.2 or later is required." , here is the configure comande line: > > ./configure > > --with-postgis > > --with-wmsclient --with-wfsclient > > --with-geos > > --with-proj=/usr/local/ > > --with-gdal --with-ogr > > --with-freetype=/usr/bin/freetype-config --with-eppl > > --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ > > --with-agg=/mnt/data/compil/agg-2.5/ > > --with-curl-config=/usr/bin/curl-config > > --with-tiff --with-xml2-config=/usr/bin/xml2-config > > > > Do you know how to resolv this? > > > > Thanks > > > > Y. -- Yves Jacolin --- http://softlibre.gloobe.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0
what is surprising is that I have here an Ubuntu box with proj 4.6.0 package and a mapserver 5.2.0 compiled on it without any problem. Jacolin Yves a écrit : > Hi Guillaume, > > This is a fresh system install from a "virtual private server" under OpenVZ, > I > tried to remove all packetage with apt-get remove, and nothing is removed ;) > > Furthermore I setup the option --with-proj which link to /usr/local/lib where > libproj is installed (by myself). > > I built all main dependance (proj, gdal, geos, libecw and agg). > > It seems that configure script test pj_transform in proj and if this is not > present, think it is an old proj release. I ma going to check in the proj ML > to know more about this. > > Regards, > > Y. > Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez écrit : >> make sure you don't have any pre-installed Proj lib which would get >> linked during the ./configure >> >> Jacolin Yves a écrit : >>> Hello, >>> >>> I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure >>> script tells me : "configure: error: This version of PROJ is too old. >>> PROJ4.4.2 or later is required." , here is the configure comande line: >>> ./configure >>> --with-postgis >>> --with-wmsclient --with-wfsclient >>> --with-geos >>> --with-proj=/usr/local/ >>> --with-gdal --with-ogr >>> --with-freetype=/usr/bin/freetype-config --with-eppl >>> --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ >>> --with-agg=/mnt/data/compil/agg-2.5/ >>> --with-curl-config=/usr/bin/curl-config >>> --with-tiff --with-xml2-config=/usr/bin/xml2-config >>> >>> Do you know how to resolv this? >>> >>> Thanks >>> >>> Y. > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Layer and tranform
Dear All, I've update the current version of mapserver with the new 5.2.0. When I put the layer in the map, I see the image "overturned". Any suggestions? Thanks, Monica ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Instead of having an embedded class/style/label statement...
Hi John, i was asking nearly the same question some weeks ago. Unfortunately there seems to be no way. In the near future the inspire guideline has to be implemented and it demands standards like SLD. We will also have the governmental specification to implement the standards configuration-side and not only output-side. But this means, that the service itself binds the SLD and not to reference it during the request. That's an indispensable duty for services we provide for this job. I hope that there will be a support for this function in the near future. Best regards Albrecht > Hi, > > Instead of having an embedded class/style/label statement > like listed below > could a map file instead reference a .sld file? > > Thanks, > > John > > CLASS > STYLE > COLOR 255 0 0 > WIDTH 2 > END > > LABEL > COLOR 150 150 150 > OUTLINECOLOR 255 255 255 > FONT arial > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > END > >END > > -- > John J. Mitchell > -- next part -- > An HTML attachment was scrubbed... > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/2 > 0080819/c28e2009/attachment-0001.html > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0
Arg, I built again proj4 and I successfully run the masperver configure script :) Y. Le Tuesday 19 August 2008 11:44:00 Guillaume Sueur, vous avez écrit : > what is surprising is that I have here an Ubuntu box with proj 4.6.0 > package and a mapserver 5.2.0 compiled on it without any problem. > > Jacolin Yves a écrit : > > Hi Guillaume, > > > > This is a fresh system install from a "virtual private server" under > > OpenVZ, I tried to remove all packetage with apt-get remove, and nothing > > is removed ;) > > > > Furthermore I setup the option --with-proj which link to /usr/local/lib > > where libproj is installed (by myself). > > > > I built all main dependance (proj, gdal, geos, libecw and agg). > > > > It seems that configure script test pj_transform in proj and if this is > > not present, think it is an old proj release. I ma going to check in the > > proj ML to know more about this. > > > > Regards, > > > > Y. > > > > Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez écrit : > >> make sure you don't have any pre-installed Proj lib which would get > >> linked during the ./configure > >> > >> Jacolin Yves a écrit : > >>> Hello, > >>> > >>> I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure > >>> script tells me : "configure: error: This version of PROJ is too old. > >>> PROJ4.4.2 or later is required." , here is the configure comande line: > >>> ./configure > >>> --with-postgis > >>> --with-wmsclient --with-wfsclient > >>> --with-geos > >>> --with-proj=/usr/local/ > >>> --with-gdal --with-ogr > >>> --with-freetype=/usr/bin/freetype-config --with-eppl > >>> --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ > >>> --with-agg=/mnt/data/compil/agg-2.5/ > >>> --with-curl-config=/usr/bin/curl-config > >>> --with-tiff --with-xml2-config=/usr/bin/xml2-config > >>> > >>> Do you know how to resolv this? > >>> > >>> Thanks > >>> > >>> Y. -- Yves Jacolin --- http://softlibre.gloobe.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Corrupt image output
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] Re: Corrupt image output
Hello again, Just to follow-up on this, this problem isn't limited to just image rendering. I also get odd results from raster queries in php mapscript - about half the time, I'll get appropriate rgb values, but as you can see in this example (http://img411.imageshack.us/my.php?image=corrupt2rj9.png), I don't always get the correct results. Often, I'll get zeros for all three values, or just one value - in that sample image, the location on the map indicated by the red dot should have something returned for all three red/green/blue fields. So perhaps this is a problem somewhere between mapscript and the gdal library? Mike Mike Leahy wrote: 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
RE: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file
John: you could add the extra keyword-value pairs to the CONNECTION object, i.e.: CONNECTION "http://localhost:8080/geoserver/wms?filter=fieldname=fieldvalue"; Hope this helps ..Tom -Original Message- From: [EMAIL PROTECTED] on behalf of John Mitchell Sent: Mon 18-Aug-08 19:10 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file Below I have listed a sample layer section which does a WMS call to a local geoserver and this work fine, but what I would like to now do is be able to add to this WMS request a filter parameter (e.g. &filter=fieldname=fieldvalue) which geoserver can accept. How can I add adhoc requests like the filter example listed above to the end of the WMS request when mapserver is making a WMS request? Thanks, John LAYER # name of layer NAME "vector:sangis_unexploded_ordnance_child" GROUP "SanGIS_parent" # what type of data is this? TYPE RASTER # always returned with interface STATUS ON TRANSPARENCY 100 CONNECTION "http://localhost:8080/geoserver/wms"; CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name""vector:sangis_unexploded_ordnance" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "sangis_unexploded_ordnance_style" END END -- John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] DNC's
Hi I am trying to get the color for each symbol/layer within a DNC. Using ogrinfo I can get the f_code for each layer however I cannot find the symbol number stored anywhere. Using document MIL-DTL-89045 I can get a table of symbol number mapped to color. However I need, if possible, to find a way of getting the symbol number from the DNC files OR a means of mapping f_code to color so I can complete the map file. I tried specifying STYLEITEM "AUTO" in one of my Layers to use the default colors within the layer but that does not seem to be supported by OGR and results in a white/blank image (tried empty Class). I have also tried searching through the files for a specific symbol number with no success. Has anyone any ideas of how to do find the symbol number Many thanks Derek Send instant messages to your online friends http://uk.messenger.yahoo.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Change a class name by url
Manipulation of parameters that don't go through some validation as part of parsing (e.g. most strings) is not supported in 5.0 and 5.2. The exceptions are data and template IF datapattern and templatepattern are set. I've realized this change is probably too limiting and intended to remedy for 5.4. Look for an RFC on the topic soon. Steve >>> Jeff McKenna <[EMAIL PROTECTED]> 08/19/08 12:55 AM >>> hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAMEmunicipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > ___ 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] Fractional line widths?
We've talked about this as part of a package of graphics-related enhancements. Look for it in 5.4 soon. Steve >>> "Tamas Szekeres" <[EMAIL PROTECTED]> 08/18/08 7:06 PM >>> Dane, I think it would be implemented by means of replacing the int-s with doubles at the style and the symbol definitions and the corresponding interfaces since AGG have already been using doubles internally in the code. Best regards, Tamas 2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>: > Tamas, > Great, thanks!. I'll file a ticket then regarding the agg render and adding > a FORMATOPTION for generating 'thinner' looking lines. > My question comes from the context of comparing Mapnik's agg output to > mapserver. Mapnik seems to interpret user-entered fractional widths in a > clever way, by lightening the color and intensity. > I'm comparing this graphic generated with a width=0.1 with Mapnik: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png > to this graphic generated with Mapserver with Width 1.0: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png > It fully possible that my mapfile is not doing an equal comparison, so if > anyone has suggestions I've pasted it below. > > Thanks, > Dane > > > # This mapfile mirrors the mapnik hello world example > here: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ > # A map can be generated from it by running shp2img. > # For example: > # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png > # or > # once you have installed the mapserv cgi use this url: > # > http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map > MAP > IMAGETYPEAGG > EXTENT -180 -93 180 86 > SIZE 600 300 > SHAPEPATH "../../data/" > IMAGECOLOR 70 130 180 > > OUTPUTFORMAT >NAME 'AGG' >DRIVER AGG/PNG >IMAGEMODE RGB >MIMETYPE "image/png" > END > LAYER > NAME world > DATA world_borders.shp > STATUS ON > TYPE POLYGON > CLASS > NAME "World" > STYLE > COLOR 242 239 249 > OUTLINECOLOR 127 127 127 > WIDTH 1 > END > > END > END > END > > > On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: > > Dane, > > I think it's reasonable but would only be feasible for the AGG renderer > though. > > > Best regards, > > Tamas > > > > 2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>: > > I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style > > that only integers are supported for the Style > Width parameter. > > Are thinner lines (a float type) a possibility or have they been considered > > in the MapServer code base? > > I can't find anything in trac to suggest so, but I thought to check here > > before filing a ticket. > > Thanks, > > Dane > > > > ___ > > 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer and tranform
Monica: Some examples of what "overturned" means would be helpful. Perhaps before and after image samples? Steve >>> On 8/19/2008 at 4:53 AM, in message <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > Dear All, > I've update the current version of mapserver with the new 5.2.0. > When I put the layer in the map, I see the image "overturned". > Any suggestions? > > Thanks, > Monica > > ___ > 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 display vector symbols (direction andmagnitude) in MapServer?
Or a way to alter the interpretation of angles, e.g. ANGLEMODE or something like that... Steve >>> On 8/19/2008 at 3:06 AM, in message <[EMAIL PROTECTED]>, Havard Tveite <[EMAIL PROTECTED]> wrote: > I don't think ANGLE can be used in your case (if you do not > use scripting to calculate the ANGLEs yourself for each > generated map). > > Is there a need for a new TAG - for instance with the name > "ORIENTATION", that could be used to specify compass > directions (0=north, 90=east, 180=south, 270=west) for > point symbols? > > Håvard Tveite > > John Maurer wrote: >> Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter >> in MapServer 5.0. One remaining concern I have, though, is how the angle >> will be interpreted by MapServer? Will -90 degrees always point to the >> South Pole regardless of the map projection I'm using (e.g. a polar >> stereo map centered on the South Pole), or will it always just point to >> the bottom of the map image regardless of the projection? i.e. Does >> MapServer interpret the degrees spatially or just in terms of the image? >> Unfortunately, if the latter is the case (which I suspect it probably >> is) it will not solve my problem. Do you know? Thanks again! >> Cheers, >> John Maurer >> >> Daniel Morissette wrote: >>> John Maurer wrote: Dear MapServer Users, Does anybody have experience displaying vectors in MapServer? By "vectors", I don't mean the usual vector vs. raster difference. What I mean is displaying data like wind vectors, which are point locations that have both a direction (degrees) and magnitude (e.g. meters per second). Usually these are displayed as arrows, which each point in a certain direction and whose tails vary in length depending on the magnitude each measurement. Is this possible in MapServer? Thanks for any suggestions! >>> You could bind the symbol size and angle to an attribute in your layer >>> definition. >>> >>> If you can precompute the size in pixels based on the wind speed and >>> store that to an 'arrowsize' attribute then you could use a layer >>> defn's like this: >>> >>> LAYER >>> TYPE POINT >>> ... >>> CLASS >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE [arrowsize] >>> COLOR 0 0 0 >>> END >>> END >>> >>> >>> If you can't precompute the arrow size in pixels, then you could use >>> classes based on the wind speed attribute: >>> >>> LAYER >>> TYPE POINT >>> ... >>> CLASSITEM 'windspeed' >>> CLASS >>> EXPRESSION ([windspeed] < 5) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 10 >>> COLOR 0 0 0 >>> END >>> CLASS >>> EXPRESSION ([windspeed] < 25) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 15 >>> COLOR 0 0 0 >>> END >>> CLASS >>> EXPRESSION ([windspeed] < 100) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 20 >>> COLOR 0 0 0 >>> END >>> CLASS >>> # No expression ... catch all for windspeed > 100 >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 25 >>> COLOR 0 0 0 >>> END >>> END >>> >>> >>> Daniel >> >> -- >> John Maurer >> Web/Database Applications Engineer >> National Snow and Ice Data Center (NSIDC) >> University of Colorado at Boulder >> http://cires.colorado.edu/~maurerj >> +1-303-586-1677 >> >> "Without geography, you're nowhere!" >> >> >> ___ >> 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] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file?
Is there a ticket for this? If not there should be. Steve >>> On 8/19/2008 at 3:09 AM, in message <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > No, this is not yet possible. It will need some funding to get done most > likely. > > Best regards, > Bart > >> Hi, >> >> Instead of having an embedded class/style/label statement like listed >> below >> could a map file instead reference a .sld file? >> >> Thanks, >> >> John >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT arial >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >>END >> >> -- >> John J. Mitchell >> ___ >> 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: msGetLabelSize(): TrueType Font error.Requested font (sans) not found.
Font references are stored in a fontset, a simple text file. You need to reference that in your map object and can look at it's contents to determine what's available. Steve >>> On 8/18/2008 at 4:24 PM, in message <[EMAIL PROTECTED]>, "John Mitchell" <[EMAIL PROTECTED]> wrote: > Sorry for the extra email. I forgot to ask my question to the below email > which is: > How do I know what fonts that are available to my mapserver. > > > On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> Within a map file I am trying to draws labels based on an attribute value >> and I get the following error within the label object: >> msGetLabelSize(): TrueType Font error. Requested font (sans) not found. >> >> Below is part of the map file: >> >> LABELITEM "type" >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT sans >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >>END >> >> Thanks, >> >> -- >> John J. Mitchell >> > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): General error message.URL-basedTEMPLATE...
When changing a template via a URL the value is compared against a regex stored in TEMPLATEPATTERN. If the value validates then the template is changed. Is this the stock MapServer demo or have you altered it? Steve >>> On 8/15/2008 at 11:44 PM, in message <[EMAIL PROTECTED]>, LMonge <[EMAIL PROTECTED]> wrote: > Hello everybody ! > > I do not understand this error: loadWeb(): General error message. URL-based > TEMPLATE configuration failed pattern validation. > somebody can help me? I have verified the code in my templetes, but I didńt > find the error. > > I have installed in my pc: mapserver 5.2 and MapServer 5.x Demo > Application > > > > thank you ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file?
No I don't think there is a ticket already. Assefa did prepare an RFC once IIRC, but this never made it to mapserver-dev as the project fell through unfortunately. Best regards, Bart > Is there a ticket for this? If not there should be. > > Steve > On 8/19/2008 at 3:09 AM, in message > <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: >> No, this is not yet possible. It will need some funding to get done most >> likely. >> >> Best regards, >> Bart >> >>> Hi, >>> >>> Instead of having an embedded class/style/label statement like listed >>> below >>> could a map file instead reference a .sld file? >>> >>> Thanks, >>> >>> John >>> >>> CLASS >>> STYLE >>> COLOR 255 0 0 >>> WIDTH 2 >>> END >>> >>> LABEL >>> COLOR 150 150 150 >>> OUTLINECOLOR 255 255 255 >>> FONT arial >>> TYPE truetype >>> SIZE 6 >>> POSITION AUTO >>> PARTIALS FALSE >>> END >>> >>>END >>> >>> -- >>> John J. Mitchell >>> ___ >>> 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Corrupt image output
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 http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fractional line widths?
Fantastic, thanks for the feedback everyone. Dane On Aug 19, 2008, at 5:39 AM, Steve Lime wrote: We've talked about this as part of a package of graphics-related enhancements. Look for it in 5.4 soon. Steve "Tamas Szekeres" <[EMAIL PROTECTED]> 08/18/08 7:06 PM >>> Dane, I think it would be implemented by means of replacing the int-s with doubles at the style and the symbol definitions and the corresponding interfaces since AGG have already been using doubles internally in the code. Best regards, Tamas 2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>: Tamas, Great, thanks!. I'll file a ticket then regarding the agg render and adding a FORMATOPTION for generating 'thinner' looking lines. My question comes from the context of comparing Mapnik's agg output to mapserver. Mapnik seems to interpret user-entered fractional widths in a clever way, by lightening the color and intensity. I'm comparing this graphic generated with a width=0.1 with Mapnik: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png to this graphic generated with Mapserver with Width 1.0: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png It fully possible that my mapfile is not doing an equal comparison, so if anyone has suggestions I've pasted it below. Thanks, Dane # This mapfile mirrors the mapnik hello world example here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ # A map can be generated from it by running shp2img. # For example: # $ shp2img -m world.map -o map/ hello_world_with_mapserver_mapfile.png # or # once you have installed the mapserv cgi use this url: # http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map MAP IMAGETYPEAGG EXTENT -180 -93 180 86 SIZE 600 300 SHAPEPATH "../../data/" IMAGECOLOR 70 130 180 OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png" END LAYER NAME world DATA world_borders.shp STATUS ON TYPE POLYGON CLASS NAME "World" STYLE COLOR 242 239 249 OUTLINECOLOR 127 127 127 WIDTH 1 END END END END On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: Dane, I think it's reasonable but would only be feasible for the AGG renderer though. Best regards, Tamas 2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>: I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style that only integers are supported for the Style > Width parameter. Are thinner lines (a float type) a possibility or have they been considered in the MapServer code base? I can't find anything in trac to suggest so, but I thought to check here before filing a ticket. Thanks, Dane ___ 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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres
I tried to import shapefiles into postgres by using this command: shp2pgsql shapefile_name table_name > sqlfile.sql I got chunks of errors like : fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. . . . fseek(-1035313584) failed on DBF file. What can be the problem? What should be checked in the DBF for these kind of errors? Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postgres-tp19052192p19052192.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] fseek dbf error while importing shapefile in postgres
Ritesh Ambastha wrote: fseek(-1035313584) failed on DBF file. What can be the problem? What should be checked in the DBF for these kind of errors? Are you positive that the DBF was uploaded correctly? The first thing I would suspect is that I FTPd it in ASCII mode, or only got half of the file uploaded. Check the DBF and make sure it's the right size and md5sum, is my advice. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres
Dear Gregor, Thanks for the quick support ! I checked the number of rows in the populated table in postgres against the DBF. Both are equal. I am unable to check the source of error. Regards, RItesh Ambastha Gregor Mosheh-3 wrote: > > Ritesh Ambastha wrote: >> fseek(-1035313584) failed on DBF file. >> What can be the problem? What should be checked in the DBF for these kind >> of >> errors? > > Are you positive that the DBF was uploaded correctly? The first thing I > would suspect is that I FTPd it in ASCII mode, or only got half of the > file uploaded. Check the DBF and make sure it's the right size and > md5sum, is my advice. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postgres-tp19052192p19052353.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] fseek dbf error while importing shapefile inpostgres
You might try the PostGIS list for this PostGIS question... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh Ambastha Sent: Tuesday, August 19, 2008 10:05 AM To: mapserver-users@lists.osgeo.org Subject: Re: [MAPSERVER-USERS] fseek dbf error while importing shapefile inpostgres Dear Gregor, Thanks for the quick support ! I checked the number of rows in the populated table in postgres against the DBF. Both are equal. I am unable to check the source of error. Regards, RItesh Ambastha Gregor Mosheh-3 wrote: > > Ritesh Ambastha wrote: >> fseek(-1035313584) failed on DBF file. >> What can be the problem? What should be checked in the DBF for these >> kind of errors? > > Are you positive that the DBF was uploaded correctly? The first thing > I > would suspect is that I FTPd it in ASCII mode, or only got half of the > file uploaded. Check the DBF and make sure it's the right size and > md5sum, is my advice. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postg res-tp19052192p19052353.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Res: [mapserver-users] Change a class name by url
Thaks for your reply Jeff. I've used the migration guide to change the way i modify variables by URL, like setting templates in WEB or LEGEND, adding POINTS in a FEATURE, etc. With that, my application works fine. But in some cases i need to modify the name of a class adding a number or a new text and this is the problem. In the older version it's quite simple as i wrote, but now i can't do in this new way and the error message doesn't explain too much... Did you try to do this class name change? Do you know another way to this? Jefferson Bauer - Mensagem original De: Jeff McKenna <[EMAIL PROTECTED]> Para: mapserver-users@lists.osgeo.org Enviadas: Terça-feira, 19 de Agosto de 2008 2:10:45 Assunto: Re: [mapserver-users] Change a class name by url hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAMEmunicipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Res: [mapserver-users] Change a class name by url
Hi Steve I receive now your answer just after send another one to Jeff. I've used the CGI reference manual and your RFC 31 to try a solution but didn't realize that's not possible. Thanks for the answer and i'll be waiting for this new RFC! Jefferson Bauer - Mensagem original De: Steve Lime <[EMAIL PROTECTED]> Para: [EMAIL PROTECTED]; mapserver-users@lists.osgeo.org Enviadas: Terça-feira, 19 de Agosto de 2008 9:36:56 Assunto: Re: [mapserver-users] Change a class name by url Manipulation of parameters that don't go through some validation as part of parsing (e.g. most strings) is not supported in 5.0 and 5.2. The exceptions are data and template IF datapattern and templatepattern are set. I've realized this change is probably too limiting and intended to remedy for 5.4. Look for an RFC on the topic soon. Steve >>> Jeff McKenna <[EMAIL PROTECTED]> 08/19/08 12:55 AM >>> hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAMEmunicipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > ___ 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 Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer and tranform
And this worked in a previous version of MapServer? Looks to me like an error with the format but then again I'm not a netcdf user at all. Others may have more ideas. Steve >>> On 8/19/2008 at 10:13 AM, in message <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > Dear Steve, > the attach is what I see... > The machine uses mapserver 5.2.0, netCDF 4.0 and gdal 1.5.2. > I don't understand if the problem is the netcdf format not correct (because > with the previous version of mapserver the file was show correctly) or a > setting of my layer into mapscript. > Thanks in advance for your suggestions, > Monica > > >> Monica: Some examples of what "overturned" means would be helpful. Perhaps > before >> and after image samples? >> >> Steve >> >> >>> On 8/19/2008 at 4:53 AM, in message >> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >> wrote: >> > Dear All, >> > I've update the current version of mapserver with the new 5.2.0. >> > When I put the layer in the map, I see the image "overturned". >> > Any suggestions? >> > >> > Thanks, >> > Monica >> > >> > ___ >> > 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: Res: [mapserver-users] Change a class name by url
If you can recompile MapServer then all you need to do is edit maplexer.l. Go down to the line: name and change it to: name and that should do it. Steve >>> On 8/19/2008 at 11:09 AM, in message <[EMAIL PROTECTED]>, Jefferson Bauer <[EMAIL PROTECTED]> wrote: > Thaks for your reply > Jeff. > > I've used the migration > guide to change the way i modify variables by URL, like setting > templates in WEB or LEGEND, adding POINTS in a FEATURE, etc. > > With that, my > application works fine. But in some cases i need to modify the name > of a class adding a number or a new text and this is the problem. In > the older version it's quite simple as i wrote, but now i can't do in > this new way and the error message doesn't explain too much... > > Did you try to do this > class name change? Do you know another way to this? > > Jefferson Bauer > > > - Mensagem original > De: Jeff McKenna <[EMAIL PROTECTED]> > Para: mapserver-users@lists.osgeo.org > Enviadas: Terça-feira, 19 de Agosto de 2008 2:10:45 > Assunto: Re: [mapserver-users] Change a class name by url > > hmm, u might also refer to the 5.0 migration guide, in case it helps > you: > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATIO > N_GUIDE.TXT > > I have also seen a variation of this error: > http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[MAPSERVER-USERS] epsg code for 'UTM 43 North'
How can I calculate exact EPSG code for the date projected in 'UTM 43 North' ? I just got few clues from this link : http://spatialreference.org/ref/epsg/?search=UTM&srtext=Search Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/epsg-code-for-%27UTM-43-North%27-tp19054466p19054466.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] epsg code for 'UTM 43 North'
Ritesh Ambastha wrote: How can I calculate exact EPSG code for the date projected in 'UTM 43 North' The UTM codes, the ones I've used anyway, all start with 267 or 269, then the zone. 267 for NAD27 and 269 for WGS84/NAD83 So I would suspect yours to be 26743 or 26943 You'd want to check PROJ's EPSG file to verify it, though: /usr/share/proj/epsg -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [MAPSERVER-USERS] epsg code for 'UTM 43 North'
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Ritesh Ambastha > Sent: 19 August, 2008 12:58 PM > To: mapserver-users@lists.osgeo.org > Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' > > > How can I calculate exact EPSG code for the date projected in > 'UTM 43 North' > ? > > I just got few clues from this link : > http://spatialreference.org/ref/epsg/?search=UTM&srtext=Search > If I check my proj installation, I find that the epsg file has a few references (in /usr/local/share/proj/epsg or in C:\ms4w\proj\nad\epsg for MS4W installs), such as: # WGS 84 / UTM zone 43N <32643> +proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Projection problem with EPSG 28992
Hello list, I was trying to build mapserver 5.2 on Hostgis (slackware). I downloaded proj.4 version 4.6.0 and build mapserver against it. I believe it has a problem with the dutch projection (28992). Every other projection works ok but if I use 28992 mapserver complains about an unknown projection id. So it can find proj but cannot operate with 28992. The strange thing is that if I change the proj.4 settings for 28992 in the epsg file (I change sterea in stere) it works. Does Proj.4 still operate with sterea or is this some kind of strange 'slackware' specific problem? Greetings Wim Blanken The Netherlands ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Projection problem with EPSG 28992
Wim Blanken wrote: Hello list, I was trying to build mapserver 5.2 on Hostgis (slackware). I downloaded proj.4 version 4.6.0 and build mapserver against it. I believe it has a problem with the dutch projection (28992). Every other projection works ok but if I use 28992 mapserver complains about an unknown projection id. So it can find proj but cannot operate with 28992. The strange thing is that if I change the proj.4 settings for 28992 in the epsg file (I change sterea in stere) it works. Does Proj.4 still operate with sterea or is this some kind of strange ‘slackware’ specific problem? Wim, Reviewing the PROJ.4 changelog, it appears sterea projection was added in 4.4.9. With recent PROJ.4 things seem to work ok for me: [EMAIL PROTECTED] proj -I +init=epsg:28992 0 0 3d18'49.421"E 47d58'30.94"N Perhaps there is a very old system libproj.so on your system that is getting used instead of the newer one? Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] 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] Corrupt image output
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 http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Corrupt image output
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 http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Corrupt image output
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 http://lists.osgeo.org/mailman/listinfo/mapserver-users
[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
Re: [mapserver-users] Using space in layer's name?
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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users