[mapserver-users] ippj-5.3.dll was not found
I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe at the command line but I get and error stating "Application failed to start because ippj-5.3.dll was not found. Reinstalling the application may fix this problem" I tried to reinstall but I still get the same error. -- View this message in context: http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128008.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] ippj-5.3.dll was not found
Thanks Franks, I wiped out the folder and started from scratch, this time I only installed what was necessary and that worked. I now have a functioning MapServer now I need to figure out how built a webpage using it. I was only running it from the command line to see if it was working. Frank Warmerdam wrote: > > boesiii wrote: >> I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe >> at >> the command line but I get and error stating "Application failed to start >> because ippj-5.3.dll was not found. Reinstalling the application may fix >> this problem" >> >> I tried to reinstall but I still get the same error. > > Hi, > > Did you by any chance install *all* OSGeo4W packages? This is really not > wise because several packages depend on external items. One of these is > the > libjpeg-ipp package which depends on your having a special external > package > installed. To correct this particular item go into the advanced install, > and select "reinstall" for the libjpeg package. This will replace the > special > IPP enhanced libjpeg with the standard one. > > However, if you have installed everything you will also likely have > plugins > for stuff like oracle, sde and ecw that depend on external components and > may > cause problems. It might be better to wipe your C:\OSGeo4W tree and > reinstall > somewhat more selectively. > > I think I may need to remove the libjpeg-ipp package since you aren't the > first person to fall into the same trap. > > 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 > > -- View this message in context: http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128911.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] Help, Error Message: CGI variable "map" is not set.
I just trying to get a static map to show up in my browser. I have a map file created and I have a shapefile. When I type "http://127.0.0.1/cgi-bin/mapserv.exe? map=/osgeo4w/apps/tutorial/htdocs/nira1.map&layer=roads&mode=map" in the address bar in Firefox. I get an error message "loadMap(): Web application error. CGI variable "map" is not set." What do I need to do get a working static map? -- View this message in context: http://n2.nabble.com/Help%2C-Error-Message%3A-CGI-variable-%22map%22-is-not-set.-tp2129226p2129226.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] Help, Error Message: CGI variable "map" is not set.
There was an extra space in the address, it works now. boesiii wrote: > > I just trying to get a static map to show up in my browser. > > I have a map file created and I have a shapefile. > > When I type "http://127.0.0.1/cgi-bin/mapserv.exe? > map=/osgeo4w/apps/tutorial/htdocs/nira1.map&layer=roads&mode=map" in the > address bar in Firefox. I get an error message "loadMap(): Web > application error. CGI variable "map" is not set." > > What do I need to do get a working static map? > -- View this message in context: http://n2.nabble.com/Help%2C-Error-Message%3A-CGI-variable-%22map%22-is-not-set.-tp2129226p2134229.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] Problem with dynamic map
http://n2.nabble.com/file/n2134557/nira2.html nira2.html http://n2.nabble.com/file/n2134557/nira2.map nira2.map I am trying to create a dynamic map but when I open my html in firefox the map doesn't show up and when I click on the map it asks if I want to save mapserv.exe I attached my html file and map file. I tried going thru the demo with no luck. Could someone help? -- View this message in context: http://n2.nabble.com/Problem-with-dynamic-map-tp2134557p2134557.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] Problem with MS101 demo
http://n2.nabble.com/file/n2142314/ms101_demo.png I have gone through all the examples and still can't get the final html code to work. I attached a picture of what I get when I open "file:///C:/ms4w/apps/ms101/htdocs/ms101final.html" in my browser. What could I be doing wrong? I need to get a working demo of a dynamic page so I can modify with my own conteent. -- View this message in context: http://n2.nabble.com/Problem-with-MS101-demo-tp2142314p2142314.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] Problem with MS101 demo
Thanks that worked! -- View this message in context: http://n2.nabble.com/Problem-with-MS101-demo-tp2142314p2146974.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] Problem with dashed lines
I am trying to draw a line as dashed and I tried using the example from the Mapserver documentation but I keep getting an error when it reads the symbols file. The error is on line 170 and I can't figure out how to fix it, below is a snippet from the symbol file. SYMBOL NAME ’point’ TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME ’rectangle-train’ TYPE VECTOR POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END FILLED TRUE STYLE 8 12 8 12 END END -- View this message in context: http://n2.nabble.com/Problem-with-dashed-lines-tp2157454p2157454.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] Is there a way to add a single click zoom button
by just using the map file and html template file. -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.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] Problem with north arrow image not showing up
I placed the code below into my html template but for some reason the image will not display. In my map file I have IMAGETYPE set to GIF. I tried to copy the image to any folder I can think of but it still will not display. What could be the problem? ../images/north.gif -- View this message in context: http://n2.nabble.com/Problem-with-north-arrow-image-not-showing-up-tp2163246p2163246.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] How to open a new window for print layout
I have a working MapServer application and would like to add a button somewhere on the page that will open a new window just for printing purposes, it doesn't need layers control, zooms or pan. How do I grab the current map extent and scale and put it in a new window. The new window will be setup so that it will fit nicely onto a 8 1/2" x 11" paper. Also, I don't know anything about php or javascript. Thanks, Ed -- View this message in context: http://n2.nabble.com/How-to-open-a-new-window-for-print-layout-tp2169826p2169826.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] umn map server requested url not found on this server error
I don't think you need the "/" after every where you have "tfc" Below is my alias file: #This is the Apache config file for Nira Map. Alias /awa_map "/ms4w/apps/awa_map/htdocs" AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all Also, you need to have an index.html file located in your tfc directory to initialize mapserver. -- View this message in context: http://n2.nabble.com/umn-map-server-requested-url-not-found-on-this-server-error-tp2092066p2171800.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] How to show html legend with multiple columns.
I am using html to display my legend. Is there a way to tell it to display across multiple columns? -- View this message in context: http://n2.nabble.com/How-to-show-html-legend-with-multiple-columns.-tp2179676p2179676.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] Is there a way to add a single click zoom button
PG I added the script and the button control but I am not sure about the third item you mentioned. I added the lines " " in the mapserver variables section but when I click the button nothing happens? What is the problem? Pietro Giannini wrote: > > Yes, but using some javascript in template html. > > if you want to zoomin 2x: > > > function zoom2x() > { > document.forms['mapserv'].imgxy.value = [mapwidth]/2 + " " + > [mapheight]/2; > document.forms['mapserv'].zoom.value = 2; > document.forms['mapserv'].submit(); > } > > > called from a button control: > > > assuming that you have an hidden field named 'imgxy' and a control > (select, radio, another hidden fiedl...) named 'zoom' in a form named > 'mapserv'. > > ciao > ...pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41°50'38.58"N 12°29'13.39"E > > > > On Mer, Gennaio 14, 2009 18:34, boesiii wrote: >> >> by just using the map file and html template file. >> -- >> View this message in context: >> http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.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 > > -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2183552.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] How to add rubberband zoom?
What is the easiest way to add a rubberband type of zoom control? -- View this message in context: http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2183681.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] How to add rubberband zoom?
I am not familiar with javascript. Couyld you give an example? Do I just need a copy of openlayers.js in my root? -- View this message in context: http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2184773.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] Overlapping lines not shown correctly
I have a shapefile layer which is a polygon layer drawn as a line that has a dashed apperance. All the lines don't show up correctly because dashed lines overlap other dashed lines. How do I get them to show up correctly? -- View this message in context: http://n2.nabble.com/Overlapping-lines-not-shown-correctly-tp2190301p2190301.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] Is there a way to add a single click zoom button
PG, The button is not working because of I have a refresh button with a "submit" value I think. The refresh button is for updating layers. How can I make is so both buttons work. Code: -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2193900.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] How to open a new window for print layout
Thanks Steve! Below are lines of code that I added to my HTML and MAP file to make it happen HTML Code: function printmap() { var url = "http://[host]/cgi-bin/mapserv.exe?map=[map]&mapext=[mapext]&layers=all&map_web=TEMPLATE+templates/print.html&mapsize=650+650";; // alert(url); window.open(url); } MAP FILE Code added to MAP definition TEMPLATEPATTERN '.' You also need to have an html file called print.html, this is the file that it opens to put the map file image into. The only problem I have now is that when I print, my browser adds headers and footers. -- View this message in context: http://n2.nabble.com/How-to-open-a-new-window-for-print-layout-tp2169826p2193940.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] Is there a way to add a single click zoom button
PG, here is the template file and map file. http://n2.nabble.com/file/n2203271/awa_map_final.html awa_map_final.html http://n2.nabble.com/file/n2203271/awa_map.map awa_map.map -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2203271.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] Scalebar not correct
When I print out a copy of my map and the scalebar is shown, it is not a correct representation of the scale. I don't have any sizes coded into the html template. Below is the snippet from my map file. SCALEBAR IMAGECOLOR 255 255 255 COLOR0 0 0 UNITSFEET INTERVALS3 TRANSPARENT FALSE STATUS EMBED POSITION LR END -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2205596.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] Scalebar not correct
The map file is attached along with an example image -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2206899.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] Scalebar not correct
My units are feet. I changed the units to feet and that fixed it. Thanks again Steve. -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2207182.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] Create a button for Query
My current html template has a drop down list for map modes, browse, single layer query and multi-layer query. I would like to have a single button for querying. Will I have to use javascript or is there a simpler way? -- View this message in context: http://n2.nabble.com/Create-a-button-for-Query-tp2236684p2236684.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] Create a button for Query
Thanks PG, I will give it a try. -- View this message in context: http://n2.nabble.com/Create-a-button-for-Query-tp2236684p2241517.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] Any way to measure between two picked points?
I am using mapserver with an html template. Is there anyway to add a tool that would enable a user to pick two points on a map and have it tell the distance between the two points? -- View this message in context: http://n2.nabble.com/Any-way-to-measure-between-two-picked-points--tp2272684p2272684.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] Is there a way to change the background color at the url?
In my map file I specify the color using "IMAGECOLOR205 205 205". In my main html template I have a button to setup a new webpage for nicer printing but I would like the background to be white and not "205 205 205" (it's a light grey). Is there anyway to change image color in the url. Below is the code from my html template: function printmap_11x17() { var url = "http://nira_201/cgi-bin/mapserv.exe?map=c:/ms4w/apps/niramap/htdocs/niramap.map&mapext=[mapext]&layers=[layers]&map_web=TEMPLATE+templates/print_11x17.html&mapsize=1400+875";; // alert(url); window.open(url); } Here's my MAP file http://n2.nabble.com/file/n2284718/niramap.map niramap.map -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-the-url--tp2284718p2284718.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] Is there a way to change the background color atthe url?
Thanks that worked. I forgot to add "map." before imagecolor -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-the-url--tp2284718p2284855.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] Map File for Open Street Map symbology
Gregor Mosheh wrote: > > Ooh, that'd be neat. If so, can someone post it to the Symbology > Exchange pages of the website's wiki? We do have one "google-style > streets" posting up there now. > Gregor, I would like the find the "google style" and I looked on the Symbology examples page and couldn't find it. Could you point me in the right direction. -- View this message in context: http://n2.nabble.com/Map-File-for-Open-Street-Map-symbology-tp2099050p2300742.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] How to open a MPEG file from mapserver
I will have a shapefile with an attribute that points to the location of a MPEG file. Is there any way to open that file once it is selected by the user. -- View this message in context: http://n2.nabble.com/How-to-open-a-MPEG-file-from-mapserver-tp2322350p2322350.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] Move point symbols (water valves) along a line (waterline) depending on scale
I have a point shapefile representing gate valves for waterlines and some of the gate valves are very close to each other and you may or may not be able to view them depending on scale. Is there a way to have MapServer automatically adjust point symbols (water valves) along a line (waterline) so the points are displayed at any scale? ArcGIS does this with a tool called cartographic representation. -- View this message in context: http://n2.nabble.com/Move-point-symbols-%28water-valves%29-along-a-line-%28waterline%29-depending-on-scale-tp2536075p2536075.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] Question about Mapserver, WMS and Mapcache
I am developing a mapping application using Openlayers, Mapserver and Mapcache and I am trying to understand all the terminology. Mapserver without any WMS parameters in the MAP file will return an image based on the url request. Mapserver becomes a WMS server when you add the necessary WMS parameters in the MAP file and will return an image similar to a plain Mapserver setup. When Mapcache is added to the mix, it can generate image tiles and serve those tiles to users as needed. What is the quickest way to serve image tiles using Mapserver? The image tiles will act as a custom background which displays buildings, roads, road names, parcel boundaries, and contours. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Question-about-Mapserver-WMS-and-Mapcache-tp5051711.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] Problem with mapserver & python mapscript
I have mapserver setup and working on Ubuntu 12.04 and I need to be able to use python mapscript so that I can use Tilecache. How do I configure python mapscript on an existing setup of Mapserver? Do I need to recompile mapserver? I read the readme file in the python folder and tried to install using python setup.py install but received an error stating "Has mapserver been made?". -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-mapserver-python-mapscript-tp5053188.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] Problem with mapserver & python mapscript
When I try to test tilecache on Firefox using: http://localhost/tilecache-2.11/tilecache.cgi?LAYERS=basic&SERVICE=WMS%20&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90%20&WIDTH=256&HEIGHT=256 The output on my screen shows the contents of tilecache.cgi, see below: #!/usr/bin python from TileCache import Service, cgiHandler, cfgfiles if __name__ == '__main__': svc = Service.load(*cfgfiles) cgiHandler(svc) -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-mapserver-python-mapscript-tp5053188p5053204.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] Problem with mapserver & python mapscript
I added the following: AddHandler cgi-script .cgi Options +ExecCGI to apache2.conf -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-mapserver-python-mapscript-tp5053188p5053210.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] Problem with legend url
I am trying to get the legend image from the url below: http://127.0.0.1/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fftmagisapp_v2%2Fmaps%2F%2Fshapefiles%2Fftma_water_features.map&layers=ftma_water_features&mode=legend&mapext=1280723.5701179+416135+1289860.4298821+420983&imgext=1280723.5701179+416135+1289860.4298821+420983&map_size=2157+1144&imgx=1078.5&imgy=572&imgxy=2157+1144 Why don't I get an image when I issue the above url? I checked all the symbols to make sure it is finding them in my symbol file. Below is the map file it is referencing: [code] MAP NAME 'ftma_water_features' SIZE 800 650 STATUS ON EXTENT 1572300 4532647 1629466 4588139 UNITS FEET TRANSPARENT TRUE INCLUDE "../geomoose_globals.map" QUERYMAP STATUS ON STYLE SELECTED END WEB INCLUDE "../temp_directory.map" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER # ftma_water_features NAME 'ftma_water_features' DATA './ftma_water_features.shp' STATUS DEFAULT TYPE POINT TOLERANCE 1 CLASSITEM 'STRCT_TYPE' CLASS EXPRESSION "Air Relief Valve" STYLE SYMBOL "right_hole" SIZE15 COLOR0 0 0 OUTLINECOLOR 0 0 0 OFFSET -13 0 END STYLE SYMBOL "left_hole" SIZE15 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Blowoff" STYLE SYMBOL "circle" SIZE12 COLOR0 218 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "circle" SIZE6 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Check Valve" STYLE SYMBOL "circle" SIZE10 COLOR0 183 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "vert_line" SIZE10 COLOR0 0 0 END END CLASS EXPRESSION "Reducer" STYLE SYMBOL "circle" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "triangle" SIZE7 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "PRV" STYLE SYMBOL "square" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "Vault" STYLE SYMBOL "square" SIZE10 COLOR0 218 255 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION "FSV" STYLE SYMBOL "circle" SIZE10 COLOR255 128 165 OUTLINECOLOR 0 0 0 END END CLASS
[mapserver-users] Re: Problem with legend url
Figured it out. I forgot to add a "NAME" for each class. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-legend-url-tp6948935p6949394.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] Mapscript Sample
I am trying to learn PHP MapScript and was starting with this webpage http://mapserver.org/mapscript/php/by_example.html but when I try to load the first example with my modifications I get an "undefined function dl()" error, so I commented that line out because I think php is already initialized but when I reload the file I get a broken image symbol on the screen, but when I check the tmp folder I find the image file. Why is the image not being displayed on my screen? Thanks for your help. My php file is below: draw(); $image_url=$image->saveWebImage(); ?> Example 1: Displaying a map > Below is my MAP file: MAP NAME 'ftma' SIZE 800 650 STATUS ON EXTENT 1245367 413891 1294441 444067 UNITS FEET MAXSIZE 1 TRANSPARENT TRUE OUTPUTFORMAT NAME 'agg/png' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=TRUE" END SHAPEPATH "C:/ms4w/apps/ftmagisapp_v2/maps/shapefiles" IMAGETYPE agg/png WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/tmp/" END LAYER NAME ftma DATA './ftma_waterlines2.shp' STATUS ON TYPE LINE CLASS #NAME 'ftma' STYLE WIDTH 3 COLOR 0 0 255 END END END END ## end Map -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapscript-Sample-tp7002818p7002818.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] Re: Mapscript Sample Problem
Thanks for explaining the IMAGE... sections. That helped me fix my issue. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapscript-Sample-Problem-tp7002818p7004432.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] How to join to a MDB database for display on my map?
I have a polygon shapefile showing parcel outlines and an access database containing owner names. I would like add a layer displaying the owner name but after reading the MapServer documentation "You cannot use joins to affect the look of a map", I realize this is not possible. Is there any other way to accomplish what I am trying to do? Is there an OGR/GDAL command line function that will export the table from the MDB to DBF file? I know I can join the files together using ESRI ArcGIS but was hoping to leave the files in the original format because the data is maintained by someone else. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-join-to-a-MDB-database-for-display-on-my-map-tp7008818p7008818.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] Re: How to join to a MDB database for display on my map?
Brent, I tried your suggestion, but I get an internal server error, when I turn on the layer. Part of MAP file below: CONNECTIONTYPE OGR CONNECTION 'D:/ms4w/apps/ftmagisapp_v2/maps/background/PLOTS.shp' DATA "SELECT * FROM PLOTS LEFT JOIN 'ODBC:geoplan,County_Taxid_Parcels'.County_Taxid_Parcels ON PLOTS.SHRT_TXID=County_Taxid_Parcels.SHRT_TXID" LABELITEM 'OWNR_NAME' In the apache error log it stated Premature end of script headers: mapserv.exe, referer: http://127.0.0.1/ftmagisapp_v2/geomoose.html Does it make a difference if I am on Windows 7 64bit and I am using the 32bit ODBC? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-join-to-a-MDB-database-for-display-on-my-map-tp7008818p7009187.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] Re: How to join to a MDB database for display on my map?
When I issue your text at the command line, ogrinfo starts to open the file but crashes after it opens the shapefile. http://osgeo-org.1803224.n2.nabble.com/file/n7009324/Capture.png If I enter "ogrinfo odbc:geoplan", it will list all the tables with in the database. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-join-to-a-MDB-database-for-display-on-my-map-tp7008818p7009324.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] I am having a problem using processQueryTemplate...
I am trying to diagnose why processQueryTemplate is not returning any values. Below is part of the relevant code: $results = $map->processquerytemplate(array(), false); I am using MapServer 5.6.6 and GeoMoose 2.4. Below is part of my MAP file: METADATA 'itemquery' 'ftma_waterlines_itemquery.html' 'itemquery-filter' '/.*[qstring].*/i' 'qstring_validation_pattern' '.' END Does the processQueryTemplate method work correctly in 5.6.6? I found this http://www.osgeo.org/pipermail/mapserver-dev/2010-April/009935.html which talks about processQueryTemplate being broken. Does someone have an easy example of how to use processQueryTemplate, so that I can better understand how the method is supposed to work? Thanks Ed -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/I-am-having-a-problem-using-processQueryTemplate-tp7047793p7047793.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] Sanitary Sewer Flow Direction Line Symbol
Is it possible to create a line symbol as shown in the picture below, specifically the black arrow, one triangle for each line segment at the downstream point? Please ignore the circles, they are manhole points in a separate shapefile. Thanks, http://osgeo-org.1803224.n2.nabble.com/file/n7100828/san_pipe_symbol.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Sanitary-Sewer-Flow-Direction-Line-Symbol-tp7100828p7100828.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] Re: Sanitary Sewer Flow Direction Line Symbol
Thanks, but it's not quite right, yet. The arrow is offset (above and below) from the line. How would I get it centered on the line? Symbol Name 'flow' Type VECTOR FILLED TRUE Points 1 1.5 0 2 0 1 1 1.5 END END STYLE GEOMTRANSFORM "end" ANGLE auto SIZE 30 COLOR 0 0 0 SYMBOL "flow2" END http://osgeo-org.1803224.n2.nabble.com/file/n7100971/san_pipe_symbol_2.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Sanitary-Sewer-Flow-Direction-Line-Symbol-tp7100828p7100971.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] Can I classify attributes using a wildcard?
I would like classify a road centerline shapefile. The shapefile has a coded attribute representing the type of road (ex. A11, A15, A16, A22, A25). Is there a way I can use a wildcard in my expression (ex. EXPRESSION 'A1*' ) so mapserver will classify all values with a "A1_"? -- View this message in context: http://n2.nabble.com/Can-I-classify-attributes-using-a-wildcard--tp2615958p2615958.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] Rotate parcel labels so that they are normal to their parcel
Is there a way to have mapserver place a label and rotate it so that the rotation is normal to the parcel? Currently I have Mapserver place labels in the CC position. Thanks, Ed -- View this message in context: http://n2.nabble.com/Rotate-parcel-labels-so-that-they-are-normal-to-their-parcel-tp3787860p3787860.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