Re: [mapserver-users] mapcahe tile test return error
done. I found the that: IfModule mapcache_module MapCacheAlias /mapcache /path/to/osm-demo/mapcache/mapcache-osm.xml /IfModule there is some word is missspell in my file and I correct it. now it is show. 2012/9/22 thomas bonfort thomas.bonf...@gmail.com: On Sat, Sep 22, 2012 at 4:01 PM, 李杨 gisyan...@gmail.com wrote: Hello. everyone. I use mapcache and mapserver exactly like the site https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2; said. But now when I done everthing to test the tile. It show some error. when I use the link : http://61.149.194.113/mapcache/demo/tms It show some missing img. I check the missing img, img point to something like this: http://61.149.194.113/mapcache/tms/1.0.0/osm@WGS84/1/0/1.png I put the link in the browser. then get these info: http://61.149.194.113/mapcache/tms/1.0.0/osm@WGS84/1/0/1.png, then get the output error info: --- wms request for tileset osm returned an unsupported format: ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE ServiceExceptionReport SYSTEM http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd; ServiceExceptionReport version=1.1.1 ServiceException code=LayerNotDefined msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. /ServiceException /ServiceExceptionReport - I check the file mapcache-osm.xml, the LAYERS property is noproblem. Please include your mapcache.xml source entry I also use the link: http://61.149.194.113/cgi-bin/mapserv?map=/home/jack/osm-demo/basemaps/osm-google.mapmode=maplayers=all it also return an normal . How is the error occur? -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapcache module load error (in apache2)
Hi, everyone. I have a a problem when I use mapcache. when I install the mapcache module into apache2 and restart apachae2, I got the error like below, and I can not solve the problems. root@VM322A:~/osm-demo/mapcache-git# sudo apache2ctl restart apache2: Syntax error on line 208 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- enabled/mapcache.load: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libmapcache.so.0: cannot open shared object file: No such file or directory root@VM322A:~/osm-demo/mapcache-git# Anyone could help? -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Fwd: mapcache module load error (in apache2)
I have solve the problem using ldconfig. But nwo I feel that the mapcache is not working( not take effect). I check the cache dir and found nothing! Any one help me? -- Forwarded message -- From: 李杨 gisyan...@gmail.com Date: 2012/9/21 Subject: mapcache module load error (in apache2) To: mapserver-users@lists.osgeo.org Hi, everyone. I have a a problem when I use mapcache. when I install the mapcache module into apache2 and restart apachae2, I got the error like below, and I can not solve the problems. root@VM322A:~/osm-demo/mapcache-git# sudo apache2ctl restart apache2: Syntax error on line 208 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- enabled/mapcache.load: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libmapcache.so.0: cannot open shared object file: No such file or directory root@VM322A:~/osm-demo/mapcache-git# Anyone could help? -- Yang Li GIS Developer P.R.China -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: mapcache module load error (in apache2)
this ouput root@VM322A:~# ldd /usr/lib/apache2/modules/mod_mapcache.so linux-gate.so.1 = (0x00cb3000) libcurl.so.4 = /usr/lib/libcurl.so.4 (0x00189000) libpng12.so.0 = /lib/libpng12.so.0 (0x00a0e000) libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x00be3000) libapr-1.so.0 = /usr/lib/libapr-1.so.0 (0x00989000) libaprutil-1.so.0 = /usr/lib/libaprutil-1.so.0 (0x00b81000) libpcre.so.3 = /lib/libpcre.so.3 (0x00339000) libsqlite3.so.0 = /usr/lib/libsqlite3.so.0 (0x001ce000) libpixman-1.so.0 = /usr/lib/libpixman-1.so.0 (0x00816000) libtiff.so.4 = /usr/lib/libtiff.so.4 (0x0011) libdb-4.8.so = /usr/lib/libdb-4.8.so (0x0036a000) libmapcache.so.0 = /usr/local/lib/libmapcache.so.0 (0x00251000) libpthread.so.0 = /lib/libpthread.so.0 (0x0016c000) libc.so.6 = /lib/libc.so.6 (0x004cb000) libidn.so.11 = /usr/lib/libidn.so.11 (0x0028c000) liblber-2.4.so.2 = /usr/lib/liblber-2.4.so.2 (0x002be000) libldap_r-2.4.so.2 = /usr/lib/libldap_r-2.4.so.2 (0x00b1d000) librt.so.1 = /lib/librt.so.1 (0x00892000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x002ea000) libssl.so.0.9.8 = /lib/i686/cmov/libssl.so.0.9.8 (0x00614000) libcrypto.so.0.9.8 = /lib/i686/cmov/libcrypto.so.0.9.8 (0x0069c000) libz.so.1 = /lib/libz.so.1 (0x00c87000) libm.so.6 = /lib/libm.so.6 (0x0065d000) libuuid.so.1 = /lib/libuuid.so.1 (0x00184000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x00dfd000) libdl.so.2 = /lib/libdl.so.2 (0x00ffb000) libexpat.so.1 = /lib/libexpat.so.1 (0x007ee000) /lib/ld-linux.so.2 (0x002cd000) libresolv.so.2 = /lib/libresolv.so.2 (0x00319000) libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x0087) libgnutls.so.26 = /usr/lib/libgnutls.so.26 (0x0089b000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00a33000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00e9a000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x0032d000) libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x00bbe000) libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x00331000) libtasn1.so.3 = /usr/lib/libtasn1.so.3 (0x00683000) libgcrypt.so.11 = /lib/libgcrypt.so.11 (0x00c04000) libgpg-error.so.0 = /lib/libgpg-error.so.0 (0x00888000) root@VM322A:~# 2012/9/21 thomas bonfort thomas.bonf...@gmail.com what does ldd /usr/lib/apache2/modules/mod_mapcache.so give? -- thomas On Fri, Sep 21, 2012 at 10:16 AM, 李杨 gisyan...@gmail.com wrote: I have solve the problem using ldconfig. But nwo I feel that the mapcache is not working( not take effect). I check the cache dir and found nothing! Any one help me? -- Forwarded message -- From: 李杨 gisyan...@gmail.com Date: 2012/9/21 Subject: mapcache module load error (in apache2) To: mapserver-users@lists.osgeo.org Hi, everyone. I have a a problem when I use mapcache. when I install the mapcache module into apache2 and restart apachae2, I got the error like below, and I can not solve the problems. root@VM322A:~/osm-demo/mapcache-git# sudo apache2ctl restart apache2: Syntax error on line 208 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- enabled/mapcache.load: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libmapcache.so.0: cannot open shared object file: No such file or directory root@VM322A:~/osm-demo/mapcache-git# Anyone could help? -- Yang Li GIS Developer P.R.China -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fwd: mapcache module load error (in apache2)
I just test it in firefox browser IN the browser there are some missing img, point to url like this I use the http://199.195.214.155/mapcache/demo/tms; to test, 199.195.214.155 is my server. http://199.195.214.155/mapcache/tms/1.0.0/osm@WGS84/1/3/1.png but as I know my mapcache is not in my www dir. so mapcache dir there is no file. I just configure the mapserver , mapcache like this site say: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 my mapcacche dir is in /root/osm-demo/mapcache/cache So I can not solve. I should refer to mapcache open doc? 2012/9/21 thomas bonfort thomas.bonf...@gmail.com If you've not accessed the tiles through a browser or manually launched a seeding, then it's normal for the cache dir to be empty. Navigate to http://localhost/mapcache/demo/tms to check. On Fri, Sep 21, 2012 at 10:16 AM, 李杨 gisyan...@gmail.com wrote: I have solve the problem using ldconfig. But nwo I feel that the mapcache is not working( not take effect). I check the cache dir and found nothing! Any one help me? -- Forwarded message -- From: 李杨 gisyan...@gmail.com Date: 2012/9/21 Subject: mapcache module load error (in apache2) To: mapserver-users@lists.osgeo.org Hi, everyone. I have a a problem when I use mapcache. when I install the mapcache module into apache2 and restart apachae2, I got the error like below, and I can not solve the problems. root@VM322A:~/osm-demo/mapcache-git# sudo apache2ctl restart apache2: Syntax error on line 208 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods- enabled/mapcache.load: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into server: libmapcache.so.0: cannot open shared object file: No such file or directory root@VM322A:~/osm-demo/mapcache-git# Anyone could help? -- Yang Li GIS Developer P.R.China -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to manage the map after build the mapserver app?any API
I have build a mapserver app. I want to know besides the .mapfile, how I could manage the map. I mean ,some api to control map, marker and such as. Thks. Phpmapscript, any other ways, I am not very understand these methods. -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage
Hi. I use basemaps to generated the .mapfile for my osm postgis data. But I found some lable in the mapfile such asMINSCALEDENOM,MAXSCALEDENOM. I am not very understand these labels. If use these labels,when enlarge ,will make the image disappear. If I delete the labels in th emapfile, enlage will no problem. I mean enlarge is I using a link like this: http://127.0.0.1/cgi-bin/mapserv?map=/home/jack/osm-demo/basemaps/osm-google.maplayer=alltemplate=openlayers;, then click the enlarge. Can anyone give some guide? Also I use the mafile which basemaps generated automaticlly, using the above do not show any content, but if I move the MINSCALEDENOM,MAXSCALEDENOM label , it will show some content. -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver user can not make the point layer show ,
I have a question. I set the mapfile to load postgis data. but I found that the layers of points can not show but lines layer can show. I don 't know why. for example : my mapfile is like this: --- MAP NAME places STATUS ON SIZE 800 800 EXTENT -8013001.590032 5036601.758317 -7907306.249345 5178361.105787 #EXTENT -8006189.467511 5068117.258598 -7920667.499041 5175889.025208 UNITS METERS IMAGECOLOR 100 100 100 WEB IMAGEPATH /var/www/output/ IMAGEURL /output/ END PROJECTION init=epsg:3857 END LAYER STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION host=localhost dbname=osm user=osm password=osm port=5432 NAME places0 DATA geometry from osm_new_places using unique osm_id using SRID=3857 CLASS COLOR 100 255 80 END END LAYER STATUS on TYPE Line CONNECTIONTYPE postgis CONNECTION host=localhost dbname=osm user=osm password=osm port=5432 NAME railways DATA geometry from osm_new_railways using unique osm_id using SRID=3857 CLASS COLOR 255 100 80 --- railways can show but the places0 not show. -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Image disappear when click openlayers enlarge deposit my locally access to Internet?
I am a beginner , have make some progress, realize the osm importing, mapfile auto generated, and mapserv rending, when I use the link below: http://127.0.0.1/cgi-bin/mserv?map=/home/jack/osm-demo/basemaps/osm-google.maplayer=defaultlayer=landuse4template=openlayers which can do locally access to my postgis data in mybrowser. for example , one can use the IP http://222.129.50.178/cgi-bin/mapserv?. where 222.129.50.178 is my IP. succeesfully show a map with many layer. *My question is * But if I want to sombody else on internet to visit it. also , when use the link above. I use the openlayer enlarge it, and the image will *disappear*. Also with the mouse wheel enlarger, image also disappear. mymapfile is here: https://gist.github.com/3500840 now my netwwork is strange, and I can not get the IRC, so I ask here. -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to check problem when load postgis data but no right map return? (Jeff McKenna)
I use the origin info and found some problem with relation geography_columns, jack@jack-Dell-DM061:~$ ogrinfo PG:'dbname=osm host=localhost user=osm password=osm port=5432' osm_new_places -summary ERROR 1: ERROR: permission denied for relation geography_columns ERROR 1: ERROR: permission denied for relation geography_columns but I test it with QGIS- addpostgis layer. it's no problem. How to solve this problem? thanks 2012/8/26 mapserver-users-requ...@lists.osgeo.org Send mapserver-users mailing list submissions to mapserver-users@lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-requ...@lists.osgeo.org You can reach the person managing the list at mapserver-users-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than Re: Contents of mapserver-users digest... Today's Topics: 1. How to check problem when load postgis data but no right map return? (??) 2. Re: How to check problem when load postgis data but no right map return? (Jeff McKenna) -- Message: 1 Date: Sat, 25 Aug 2012 11:04:35 +0800 From: ?? gisyan...@gmail.com To: mapserver-users@lists.osgeo.org Cc: mapserver-...@lists.osgeo.org Subject: [mapserver-users] How to check problem when load postgis data but no right map return? Message-ID: cantwbebcpjp0on0hxkh8coc3gnaqmusb6vwnwhee2k6qxbq...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 I use mapserver to load postgis data, but get a blank map, so I don't know how to check where is the problem. I enter in the browser http://127.0.0.1/cgi-bin/mapserv?map=/home/jack/Downloads/mapfile.mapmode=map , just get a blank image. my mapfile.map is like this: MAP NAME places0 STATUS ON SIZE 420 300 EXTENT -2000 -2000 2000 2000 UNITS METERS IMAGECOLOR 255 255 255 WEB TEMPLATE template.html IMAGEPATH /var/www/output/ IMAGEURL /output/ END LAYER STATUS default GROUP default TYPE POINT CONNECTIONTYPE postgis CONNECTION dbname=osm host=localhost user=osm password=osm port=5432 NAME places0 DATA geometry from (select * from osm_new_places where name is not NULL order by population asc nulls first) as foo using unique osm_id using srid=3857 CLASS NAME places0 COLOR 255 215 0 END END END # end of map file END --- I test in postgres the sentence select * from osm_new_places where name is not NULL order by population asc nulls first will return many results. Also the CONNECTION define I think is right. And I can not check wher the problem occured. Anyone give some advice and method for this? -- Yang Li GIS Developer P.R.China -- next part -- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120825/2d69b494/attachment-0001.html -- Message: 2 Date: Sat, 25 Aug 2012 09:01:45 -0300 From: Jeff McKenna jmcke...@gatewaygeomatics.com To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] How to check problem when load postgis data but no right map return? Message-ID: 5038bea9.9010...@gatewaygeomatics.com Content-Type: text/plain; charset=UTF-8 On 12-08-25 12:04 AM, ?? wrote: I use mapserver to load postgis data, but get a blank map, so I don't know how to check where is the problem. Hmm. I might use the ogrinfo commandline utility to check the extents of the data, and then use those extents in the EXTENT parameter of the mapfile. ogrinfo PG:'dbname=osm host=localhost user=osm password=osm port=5432' osm_new_places -summary -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ -- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 55, Issue 51 *** -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] still have problem when add postgis layer on mapserver mapfile
I try to load a postgis data layer on my mapfile, have problem when configure the mapfile done, then visit it using http://127.0.0.1/cgi-bin/mapserv?map=/var/www/osm-google.mapmode=mapmode=map; on the browser address. , only a blank blue image return, with no expected dot info. I can not figure out which step is have problem. Provide background info: ogrinfo for the database table: jack@jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:host=127.0.0.1 user=osm password=osm dbname=osm port=5432 osm_new_mainroads -summary INFO: Open of `PG:host=127.0.0.1 user=osm password=osm dbname=osm port=5432' using driver `PostgreSQL' successful. Layer name: osm_new_mainroads Geometry: Line String Feature Count: 9704 Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, 4190971.740014) Layer SRS WKT: PROJCS[Popular Visualisation CRS / Mercator (deprecated), GEOGCS[Popular Visualisation CRS, DATUM[Popular_Visualisation_Datum, SPHEROID[Popular Visualisation Sphere,6378137,0, AUTHORITY[EPSG,7059]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY[EPSG,6055]], PRIMEM[Greenwich,0, AUTHORITY[EPSG,8901]], UNIT[degree,0.01745329251994328, AUTHORITY[EPSG,9122]], AUTHORITY[EPSG,4055]], UNIT[metre,1, AUTHORITY[EPSG,9001]], PROJECTION[Mercator_1SP], PARAMETER[central_meridian,0], PARAMETER[scale_factor,1], PARAMETER[false_easting,0], PARAMETER[false_northing,0], AUTHORITY[EPSG,3785], AXIS[X,EAST], AXIS[Y,NORTH]] FID Column = id Geometry Column = geometry osm_id: Integer (0.0) name: String (255.0) type: String (255.0) tunnel: Integer (5.0) bridge: Integer (5.0) oneway: Integer (5.0) ref: String (255.0) z_order: Integer (5.0) jack@jack-Vostro-1450:/usr/lib/cgi-bin$ .map(uing in the link above : osg-google.map) info for configure: MAP NAME places1 STATUS ON SIZE 800 800 EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 UNITS meters IMAGECOLOR 153 179 204 WEB IMAGEPATH /var/www/output IMAGEURL /output/ END LAYER STATUS DEFAULT NAME places1 DATA geometry from osm_new_mainroads using unique osm_id using srid 3785 TYPE POINT CONNECTIONTYPE postgis CONNECTION host=localhost dbname=osm user=osm password=osm port=5432 CLASS NAME places1_color COLOR 255 215 0 END END END - for a explanation , whenever set DATA geometry from osm_new_mainroads using unique osm_id using srid 3785, DATA geometry from osm_new_mainroads, or DATA geometry from osm_new_mainroads using unique osm_id using srid 3875 is the same , a blank image return --- massperv version info: ./mapserv -v MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I try to experiment it in two different laptop and can not get expected result. Please those with experience help me., this problem qurrall me a lot this weeked. Thanks a lot. -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to check problem when load postgis data but no right map return?
I use mapserver to load postgis data, but get a blank map, so I don't know how to check where is the problem. I enter in the browser http://127.0.0.1/cgi-bin/mapserv?map=/home/jack/Downloads/mapfile.mapmode=map;, just get a blank image. my mapfile.map is like this: MAP NAME places0 STATUS ON SIZE 420 300 EXTENT -2000 -2000 2000 2000 UNITS METERS IMAGECOLOR 255 255 255 WEB TEMPLATE template.html IMAGEPATH /var/www/output/ IMAGEURL /output/ END LAYER STATUS default GROUP default TYPE POINT CONNECTIONTYPE postgis CONNECTION dbname=osm host=localhost user=osm password=osm port=5432 NAME places0 DATA geometry from (select * from osm_new_places where name is not NULL order by population asc nulls first) as foo using unique osm_id using srid=3857 CLASS NAME places0 COLOR 255 215 0 END END END # end of map file END --- I test in postgres the sentence select * from osm_new_places where name is not NULL order by population asc nulls first will return many results. Also the CONNECTION define I think is right. And I can not check wher the problem occured. Anyone give some advice and method for this? -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver user can not make the shapefile data correctly show in the browser
Hello, respected everyone, I have a problem when using Mapserver. I just using Maperver to rend an shapefile on ubuntu 12.04. but the expect image is not correctly showing, i think there maybe some problem with my mapfile set, especially with IMAGEURL define? I use a guide in the link : http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-to-generate-a-simple-map-using-mapserver-and-a-shapefile.html I assign the mapfile template.htmlstart.html in my www DIR, which is like this: mapfiel.map: MAP NAME parcels_map STATUS ON SIZE 420 300 EXTENT 489885 5450946 490904 5451637 UNITS METERS SHAPEPATH shapefiles IMAGECOLOR 255 255 255 WEB TEMPLATE template.html IMAGEPATH /var/www/output/ IMAGEURL /output/ END LAYER NAME parcel_boundaries DATA parcels STATUS DEFAULT TYPE POLYGON CLASS NAME parcels_color COLOR 255 215 0 END END # end of map file END starrtmap.html: html headtitleCreating a simple image using Mapserver and a Shapefile/title/head body bgcolor=#FF h2Creating a simple image using Mapserver and a Shapefile/h2 phrp This page simply contains a link which sends a set of instructions to the Mapserver application using a mapfile.br / The information stored within the mapfile tells the Mapserver application how to draw the map.p !-- The following link sends the local file structure path of the mapfile to the web location of the mapserver executable file -- A HREF=http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map; Click on this link/A to view a map generated using a Shapefile. phrp /body /html template.html: !-- MapServer Template -- html headtitleSimple Mapserver Template HTML Document/title/head body bgcolor=#AA h2The image below was illustrated based on the instructions sent in the mapfile./h2 !-- When using Mapserver with a template, the Mapserver application looks for the [img] tag within the template document to place the map -- img src=/[img] border=1 /body /html when I run the “http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map” in my address colum. The expect map is not shown. The page is showing content of template.html expectly, but there is only a image icon , but with no picture. And the status bar in the firefox brower is showing : conecting to output .. I notice that in the var/www/output DIR, there have been some png file generated. And is the png containing the polygon in the shapefile. Every time when I click the “ http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map” link, a new png file is generated in output DIR. I want to know if the IMAGEURL in the mapfile is set wrongly? Why the png is genrated correctly but not showing in the browser? Any one can help me? -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer configure question with PHP/MapScript Module
Hi, Everyone. I want to compile mapserver from source. Both the mapserver readme.configure file and the instuctionpost here ( http://www.mapserver.org/installation/php.html) tell me pass the *–with-php=DIR* argument to the configure script, As the guide say, the DIR will be PHP sourcecode folder, but in my ubuntu 12.04 platform, it take aPHP5, no need to compile PHP from source. So I am confused, which folder should I assign? by the way, I locate php5 on the shell and got the result below: /etc/php5 /etc/apache2/mods-available/php5.conf /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/php5.conf /etc/apache2/mods-enabled/php5.load /etc/apparmor.d/abstractions/php5 /etc/cron.d/php5 /etc/php5/apache2 /etc/php5/cli /etc/php5/conf.d /etc/php5/apache2/conf.d /etc/php5/apache2/php.ini /etc/php5/cli/conf.d /etc/php5/cli/php.ini /etc/php5/conf.d/curl.ini /etc/php5/conf.d/mysql.ini /etc/php5/conf.d/mysqli.ini /etc/php5/conf.d/pdo.ini /etc/php5/conf.d/pdo_mysql.ini /usr/bin/php5 /usr/lib/php5 /usr/lib/apache2/modules/libphp5.so /usr/lib/php5/20090626 /usr/lib/php5/libexec /usr/lib/php5/maxlifetime /usr/lib/php5/20090626/curl.so /usr/lib/php5/20090626/mysql.so /usr/lib/php5/20090626/mysqli.so /usr/lib/php5/20090626/pdo.so /usr/lib/php5/20090626/pdo_mysql.so /usr/share/php5 /usr/share/apport/package-hooks/source_php5.py /usr/share/doc/libapache2-mod-php5 /usr/share/doc/php5-cli /usr/share/doc/php5-common /usr/share/doc/php5-curl /usr/share/doc/php5-mysql /usr/share/doc/php5-common/CODING_STANDARDS.gz /usr/share/doc/php5-common/CREDITS /usr/share/doc/php5-common/EXTENSIONS.gz /usr/share/doc/php5-common/NEWS.Debian.gz /usr/share/doc/php5-common/README.Debian.gz /usr/share/doc/php5-common/README.Debian.security /usr/share/doc/php5-common/README.EXT_SKEL.gz /usr/share/doc/php5-common/README.PHP4-TO-PHP5-THIN-CHANGES.gz /usr/share/doc/php5-common/README.SELF-CONTAINED-EXTENSIONS.gz /usr/share/doc/php5-common/README.SVN-RULES.gz /usr/share/doc/php5-common/README.Zeus.gz /usr/share/doc/php5-common/TODO.gz /usr/share/doc/php5-common/changelog.Debian.gz /usr/share/doc/php5-common/copyright /usr/share/doc/php5-common/examples /usr/share/doc/php5-common/test-results.txt.gz /usr/share/doc/php5-common/examples/php.ini-development /usr/share/lintian/overrides/libapache2-mod-php5 /usr/share/lintian/overrides/php5-cli /usr/share/lintian/overrides/php5-common /usr/share/man/man1/php5.1.gz /usr/share/php5/php.ini-production /usr/share/php5/php.ini-production-dist /usr/share/php5/php.ini-production.cli /var/cache/apt/archives/libapache2-mod-php5_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-cli_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-common_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-mysql_5.3.10-1ubuntu3.2_amd64.deb /var/lib/php5 /var/lib/dpkg/info/libapache2-mod-php5.conffiles /var/lib/dpkg/info/libapache2-mod-php5.list /var/lib/dpkg/info/libapache2-mod-php5.md5sums /var/lib/dpkg/info/libapache2-mod-php5.postinst /var/lib/dpkg/info/libapache2-mod-php5.postrm /var/lib/dpkg/info/libapache2-mod-php5.prerm /var/lib/dpkg/info/libapache2-mod-php5.triggers /var/lib/dpkg/info/php5-cli.list /var/lib/dpkg/info/php5-cli.md5sums /var/lib/dpkg/info/php5-cli.postinst /var/lib/dpkg/info/php5-cli.postrm /var/lib/dpkg/info/php5-cli.prerm /var/lib/dpkg/info/php5-common.conffiles /var/lib/dpkg/info/php5-common.list /var/lib/dpkg/info/php5-common.md5sums /var/lib/dpkg/info/php5-common.postrm /var/lib/dpkg/info/php5-curl.conffiles /var/lib/dpkg/info/php5-curl.list /var/lib/dpkg/info/php5-curl.md5sums /var/lib/dpkg/info/php5-mysql.conffiles /var/lib/dpkg/info/php5-mysql.list /var/lib/dpkg/info/php5-mysql.md5sums Best Regards, -- Yang Li GIS Developer P.R.China ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users