| 01:03:02 | robbi: | hi everyone |
| 01:05:23 | Guest46495: | i am new to mapserver and i need help with the configuration |
| 01:07:46 | kondos: | please help me understand mapserver |
| 01:28:57 | Peut: | how can I draw a filled circle on either end of a line? : ) |
| 04:07:55 | dineo: | Hi jmckenna |
| 04:08:44 | jmckenna: | dineo: hello |
| 04:09:45 | dineo: | Please help me with exporting mapfile from qgis |
| 04:10:07 | jmckenna: | ok. what is the problem? |
| 04:13:09 | dineo: | i did export it but the problem is when i go to the browser -http://localhost/cgi-bin/mapserv?map=/var/www/gistest/gtest.map&layer=ag_province_200811&layer=ag_munics_wgs84_200811&mode=map i get the following error |
| 04:13:11 | sigabrt`: | Title: MapServer Message ( at localhost ) |
| 04:13:31 | dineo: | msDrawMap( ): Image handling error. Failed to draw layer named 'ag_munics_wgs84_200811'. prepare_database( ): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...ary( force_collection( force_2d( "the_geom" ) ),'NDR' ),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary( force_collection( force_2d( "the_geom" ) ),'NDR' ),OID::text from "gis_schema"."ag_munics_wgs84_200811" WHERE |
| 04:14:20 | jmckenna: | reading the error, does the column 'oid' exist in your PostGIS table? There is an option to create OIDs when creating the database |
| 04:18:30 | jmckenna: | also, you can use Nabble to search the mailing list archives for your exact question and answer: http://n2.nabble.com/newbie-Error-in-first-atttempt-to-use-postgis-with-mapserver-td2161688.html#a2161688 |
| 04:18:31 | sigabrt`: | Title: Nabble - Mapserver - User - newbie: Error in first atttempt to use postgis with mapserver? ( at n2.nabble.com ) |
| 04:23:10 | dineo: | i have a database called gisdb, i do not know how i can add the oid column |
| 04:25:50 | jmckenna: | there is a solution in the link i provided |
| 04:27:48 | jmckenna: | another option is the edit postgresql.conf and set to use OIDs, and then regenerate your DB...but the solution in the link provided is prob easier. |
| 04:29:06 | dineo: | okay i will try to rectify my problem. Thanks for your help withou it i would not know how to go any further |
| 04:29:57 | jmckenna: | cool, good luck |
| 06:56:52 | strk: | which are the options to ask mapserver ( cgi ) to render only a single feature ( by id ) in a layer ? |
| 06:57:07 | strk: | and, is there a standard WMS way to do that ? |
| 07:00:52 | hobu: | strk: you want to use FilterEncoding |
| 07:01:17 | hobu: | alternatively, if you are just mapserver, you can use the CGI query/substitution stuff from within WMS requests, which are much simpler and way more powerful |
| 07:02:28 | hobu: | http://mapserver.org/ogc/filter_encoding.html and http://mapserver.org/cgi/runsub.html |
| 07:02:29 | sigabrt`: | Title: WFS Filter Encoding MapServer 5.4.2 documentation ( at mapserver.org ) |
| 07:23:07 | strk: | hobu: thanks, went filter encoding for now |
| 07:23:32 | mdev: | Hi, does anyone know a way to make an arrow symbol that can be oriented in any direction in combination with a line object? |
| 07:24:03 | mdev: | say there is a line that connects two cities and I want a triangle to be built into the line to act like an arrow to point from city A to city B? |
| 07:24:32 | mdev: | I was thinking of using a triangle symbol but the problem I forsee is that the triangle would not be rotated to point the same way as the line |
| 07:25:35 | mdev: | does anyone know a way to create a scalable arrow symbol that can be used along with line objects and always point from A to B regardless of orientation? |
| 07:38:58 | jmckenna: | mdev: have u tried to search the archives first? http://n2.nabble.com/MapServer-f1969210.html |
| 07:38:59 | sigabrt`: | Title: MapServer forum ( at n2.nabble.com ) |
| 07:39:42 | jmckenna: | i see results for your issues, and i just searched for 3 seconds |
| 07:40:15 | mdev: | Ok, giving it a shot |
| 07:42:28 | mdev: | I understand the idea of using a symbol for arrow, already did that |
| 07:42:33 | mdev: | I see they are saying to use angleitem |
| 07:42:54 | mdev: | but how do I even know what the angle is? is there something that tells you the angle between two points? |
| 07:46:28 | mdev: | actually the archive was not particularly helpful |
| 07:47:36 | mdev: | I see the question was asked, but there are no useful answers that solve the core problem |
| 07:47:40 | mdev: | could anyone help? |
| 08:07:31 | Guest14627: | how can i specify a CRS to a layer in GGIS? |
| 08:07:39 | Guest14627: | *QGIS |
| 08:11:05 | acores: | how can i specify a CRS to a layer in QGIS? |
| 08:17:22 | jmckenna: | acores: i would ask in #qgis |
| 08:17:42 | acores: | ok, thx |
| 08:17:49 | jmckenna: | np |
| 10:17:13 | miblon: | I read on http://www.maptools.org/ms4w/ that mapserver comes with support for oracle 11g. Does it also support Oracle 10? |
| 10:17:14 | sigabrt`: | Title: MS4W.MapTools.org ( at www.maptools.org ) |
| 10:17:46 | jmckenna: | miblon: yes it does. in fact i test ms4w by connecting to an oracle 10g database |
| 10:17:59 | miblon: | jmckenna, that is excelent! |
| 10:18:48 | miblon: | I will get ms4w and testdrive it tomorrow with the oracle support. |
| 10:19:02 | jmckenna: | have fun driving |
| 10:19:18 | miblon: | ;- ) |
| 10:44:33 | jose: | where do I have to save mapfiles ?? |
| 10:45:11 | akrherz: | jose: could you elaborate your question some? |
| 10:45:30 | jose: | ok..sorry |
| 10:46:22 | jose: | I have installed mapserv and I want use it as webserver, is it right ? So, I want to know where I must setup my mapfiles..... |
| 10:47:12 | akrherz: | you can place your mapfiles anywhere on the filesystem that the owner of the process that runs the webserver can read it from |
| 10:47:16 | FrankW: | You may put the mapfiles anywhere, but they need to be somewhere accessable from mapserver which running under apache as a cgi-bin will normally have limited permissions. |
| 10:48:07 | jose: | hum...I need to install php mapscript? |
| 10:48:21 | akrherz: | shouldn't |
| 10:48:29 | jose: | I want use mapserv as a server for openlayers....is it possible? |
| 10:48:53 | akrherz: | certainly |
| 10:48:57 | jose: | ok... |
| 10:49:19 | jose: | Do I need some extra configuration for that? |
| 10:50:00 | akrherz: | You need to start from somewhere, get a working mapserver CGI or php mapscript going first |
| 10:50:11 | jose: | hum another question is....how can I get this maps from mapserv by http://localhost/cgi-bin/mapserv?? |
| 10:50:26 | jose: | ok |
| 10:51:43 | jlivni: | jose: if you are using openlayers as a client, it is common to request data from mapserv as a wms query |
| 10:51:57 | jose: | hum.... |
| 10:51:58 | jose: | yes |
| 10:52:01 | jlivni: | in this case, the extra parameter &map=/some/location/mymapfile.map just goes into that querystring |
| 10:52:31 | jose: | mapserv?map=mymapfile.map? |
| 10:52:48 | jlivni: | no, mapserv?map=/full/path/to/mymapfile.map&... |
| 10:53:00 | jose: | ok the full path |
| 10:53:35 | jose: | in mymapfile.map I describe the select feature from postgres... |
| 10:54:23 | jlivni: | generally, the mapfile itself is not in a web-accessible folder, thus minimizing the ability of random people to view it. |
| 10:54:42 | jose: | hum good... |
| 10:56:03 | jose: | jlivni, in this example the full path is missed: mapserv50?map=COMPASS_MAPFILE&mode=query&mapxy=295437.5 5250437.5 |
| 10:56:12 | jose: | can I do something like this? |
| 10:56:23 | jose: | just pass the name of the mapfile? |
| 10:57:08 | jlivni: | short answer: no |
| 10:57:20 | jlivni: | long answer: yes, but only if you know what relative path your webserver is running from, etc, and anyway it's a bad idea |
| 10:57:34 | jose: | hum I need something like that... : http://www.dnr.state.mn.us/maps/compass.html |
| 10:57:35 | sigabrt`: | Title: Recreation Compass: Minnesota DNR ( at www.dnr.state.mn.us ) |
| 10:58:18 | jlivni: | but he's got tilecache in front of his mapserv, so i dont see how it's related to your question? |
| 10:58:34 | jlivni: | what are you trying to do that is not accomplished by just passing in the full path of the mapfile? |
| 11:02:22 | jose: | ok will pass the full path...I just asked to know why he did that. |
| 11:02:59 | jose: | jlivni.....for example... |
| 11:03:02 | jlivni: | no, you said you needed something like that -- that's different : ) But he probably did it so he doesn't have to dynamically render map images each request |
| 11:03:38 | jose: | yes something like that site...not about the full path or not |
| 11:04:21 | jose: | I want display a map with openlayers and get vector informations inside postgres with mapserv and with openlayers create a layer over the map |
| 11:04:54 | mdev: | quick question... is the 0 0 point of a symbol placed on the dead center of a point on a map? |
| 11:05:16 | mdev: | I can't figure out why the symbol I made isn't getting centered properly |
| 11:05:33 | jose: | but I need that when a person click over the map a query is make and mapserv get informations about that point |
| 11:05:49 | jose: | try click over the map in Recreation Compass... |
| 11:06:24 | jose: | a query is generated and additional information is displayed |
| 11:06:39 | jlivni: | mdev: i believe it is ... perhaps dpaste your symbol and the problem with it? |
| 11:07:20 | jlivni: | jose: you should view some openlayers documentation and examples ( eg http://openlayers.org/dev/examples/ ) |
| 11:07:22 | sigabrt`: | Title: OpenLayers Examples ( at openlayers.org ) |
| 11:08:19 | jlivni: | jose: getFeatureInfo is one way to do it ( eg http://www.google.com/search?q=getfeatureinfo+openlayers ) |
| 11:08:21 | sigabrt`: | Title: getfeatureinfo openlayers - Google Search ( at www.google.com ) |
| 11:09:16 | mdev: | jlivni: basically I'm trying to create an arrow a line by making a triangle. I need the tip of the arrow/triangle to reside on my line and the back to be oriented by setting the angle. I know a point on my line by taking the midpoint of the two end point of my line. so I want the tip of my oblong triangle to center on the line |
| 11:09:44 | jose: | hum nice...so I must do it in openlayers...mapserv only retrieve data...that is it// |
| 11:09:52 | jlivni: | mdev: sorry, i am not sure ... if you dpaste your symbol, that might help someone else help you |
| 11:09:57 | mdev: | ok: |
| 11:09:58 | mdev: | SYMBOL |
| 11:09:58 | mdev: | NAME "triangle" |
| 11:09:58 | mdev: | TYPE vector |
| 11:09:58 | mdev: | FILLED true |
| 11:09:58 | jlivni: | ( i assume you have read http://mapserver.org/mapfile/symbology/construction.html ) |
| 11:09:58 | mdev: | POINTS 0 1 1 0 0 -1 END |
| 11:09:59 | sigabrt`: | Title: Cartographic Symbol Construction with MapServer MapServer 5.4.2 documentation ( at mapserver.org ) |
| 11:10:00 | mdev: | END |
| 11:10:03 | mdev: | that one i pasted works |
| 11:10:09 | jlivni: | mdev: by dpaste, i meant not in here : ) but thats ok |
| 11:10:19 | jose: | ??paste |
| 11:10:24 | jlivni: | .g dpaste |
| 11:10:30 | mdev: | but if I want to stretch it by making the 1 0 point 3 0 instead... |
| 11:10:33 | mdev: | it gets off center |
| 11:10:58 | jlivni: | mdev: yeah sorry i am not really sure offhand. perhaps someone else knows. |
| 11:11:04 | mdev: | ok |
| 11:22:20 | jose: | jlivni, Can I retrieve information from mapserv even geometry types, for example id's? |
| 11:32:21 | jose: | jlivni, where I can find more informations about mapserv cgi? |
| 11:32:26 | jose: | parameters? |
| 11:35:56 | jose: | msLoadMap( ): Unknown identifier. First token must be MAP, this doesn't look like a mapfile. ??? |
| 11:36:21 | jose: | In examples I did not see MAP token... |
| 11:51:22 | jose: | What is mapserv template? |
| 12:02:12 | CIA-80: | assefa * r9549 /trunk/mapserver/ ( HISTORY.TXT mapdraw.c ): layer->project flag not being reset properly for drawquerylayer ( #673 #2079 ) |
| 12:05:11 | CIA-80: | assefa * r9550 /trunk/msautotest/wxs/expected/wms_get_map_sld_proj.png: get map with sld and filter encoding, using a different projection |
| 12:07:33 | CIA-80: | assefa * r9551 /trunk/msautotest/wxs/wms_sld_proj.map: map and layers use the same projection |
| 12:19:59 | jose: | My openlayers can't display mapserv maps |
| 12:20:04 | jose: | why? |
| 12:20:11 | jose: | I will paste the code |
| 12:20:15 | jose: | ??paste |
| 12:21:01 | jose: | http://pastebin.ca/1674005 |
| 12:21:03 | sigabrt`: | Title: pastebin - Stuff - post number 1674005 ( at pastebin.ca ) |
| 12:48:34 | jose: | where can I see log informations from mapserv |
| 12:48:37 | jose: | ?? |
| 12:49:28 | FrankW: | jose: are you using apache? I'd start by looking in the access_log and error_log files. |
| 12:49:54 | jose: | I look but not shows any information |
| 12:50:37 | FrankW: | Next, I would suggest you review: http://www.mapserver.org/development/rfc/ms-rfc-28.html |
| 12:50:37 | jose: | I have a postgis layer but when a select it on openlayers it is not show, the map becomes full of pink squares |
| 12:50:38 | sigabrt`: | Title: MS RFC 28: Redesign of LOG/DEBUG output mechanisms MapServer 5.4.2 documentation ( at www.mapserver.org ) |
| 12:53:07 | jose: | hum... How can I load a mapfile with openlayers? |
| 12:53:35 | jose: | I think that is right what I did, but openlayers still show a pink squres |
| 12:53:49 | jose: | I think my mapserv configuration is wrong |
| 12:53:59 | jose: | how can I test it? |
| 12:54:21 | jose: | I am using a teste.map mapfile but I no sure how use it? |
| 13:01:49 | FrankW: | jose: your questions are so broad it is hard to keep up to them. |
| 13:01:57 | FrankW: | I assume you have setup a wms service? |
| 13:02:13 | FrankW: | Have you tried a fairly simple WMS GetMap request with it? |
| 13:03:19 | jose: | hum I think no...I must did it, or is default when I compile mapserv? |
| 13:03:56 | FrankW: | I mean, have you setup a map file with the request supporting metadata for a WMS service, as described, for instance, in the WMS Server howto? |
| 13:04:30 | jose: | I don't know FrankW, where is this howto? |
| 13:05:17 | FrankW: | http://www.mapserver.org/ogc/wms_server.html |
| 13:05:18 | sigabrt`: | Title: WMS Server MapServer 5.4.2 documentation ( at www.mapserver.org ) |
| 13:15:23 | jose: | FrankW, So , I need to create a file with all layers that I want display? |
| 13:16:01 | jose: | or for WMS service I don't need to provide a layer |
| 13:16:11 | jose: | on that configuration shows in howto |
| 13:20:56 | jose: | hum I am getting this error: Projection support is not available. |
| 13:21:02 | jose: | EPSG:4326 |
| 13:22:54 | mdev: | does anyone here know how to configure the pivot point of a symbol so that when you set the ANGLE parameter, it would be rotated around that pivot point? |
| 13:36:15 | jose: | I get this error when I try load a map: loadProjection( ): Projection library error. Projection support is not available. |
| 13:36:28 | jose: | I have installed mapserv with proj4 support |
| 13:36:50 | jose: | -------------- Support Libraries --------- |
| 13:36:51 | jose: | Proj.4 support: -DUSE_PROJ |
| 13:40:10 | jose: | any suggestion? |
| 13:41:54 | FrankW: | jose: I think you have not actually succeeded at building in projection support. |
| 13:41:59 | FrankW: | Perhaps you did not replace the binary you are using? |
| 13:42:06 | FrankW: | What does mapserv -v report? |
| 13:42:16 | jose: | wait a minute |
| 13:43:00 | jose: | MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE |
| 13:43:40 | jose: | estranger, not? |
| 13:43:42 | FrankW: | that looks fine. And this is the same mapserv you are using via cgi? |
| 13:43:54 | jose: | yes |
| 13:44:22 | jose: | it is in /var/www/cgi-bin and I access it from localhost/cgi-bin/mapserv? |
| 13:45:44 | FrankW: | did you do a clean build after adding proj support ( assuming it was added after a preliminary build )? |
| 13:46:49 | jose: | I am not sure FrankW, but I think that I add this on first time... I will compile it again |
| 13:47:59 | jose: | Do you want see the configure output? |
| 13:48:48 | FrankW: | no, not really. |
| 13:49:10 | FrankW: | If the executable reports SUPPORTS=PROJ in the -v line, then it ought to work unless you went out of your way to only recompile some aspects. |
| 13:49:27 | FrankW: | I must confess I doubt that you are running the same executable via cgi and at the commandline. |
| 13:49:34 | FrankW: | but it is hard to express this without seeming insulting. |
| 13:49:53 | akrherz: | could selinux or file permissions be blocking access to the proj tables ? |
| 13:50:07 | jose: | no problem, but I sure that is the same mapserv |
| 13:50:25 | FrankW: | that would not result in the message "Projection support is not available. " which should only occur if things are built without USE_PROJ. |
| 13:50:25 | jose: | hum...proj tables??? where can I find this? |
| 13:51:09 | akrherz: | jose: how about the output of this command "ldd /var/www/cgi-bin/mapserv | grep proj" |
| 13:51:30 | FrankW: | If fully installed, PROJ.4's epsg init file is often in /usr/local/share/proj or /usr/share/proj. |
| 13:51:44 | FrankW: | But the error you report indicates it isn't even looking for the proj init files. |
| 13:51:46 | jose: | libproj.so.0 => /usr/local/lib/libproj.so.0 ( 0xb7cb7000 ) |
| 13:52:48 | akrherz: | can you paste your mapfile? not here, but via paste mentioned in the channel header |
| 13:53:51 | jose: | http://pastebin.ca/1674123 |
| 13:53:52 | sigabrt`: | Title: pastebin - Miscellany - post number 1674123 ( at pastebin.ca ) |
| 13:54:47 | akrherz: | what URL are you calling to produce the error? |
| 13:55:13 | jose: | http://localhost/cgi-bin/mapserv?map=/var/www/data/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities |
| 13:55:16 | sigabrt`: | Title: MapServer Message ( at localhost ) |
| 13:55:47 | akrherz: | lol, sigabrt has mapserver installed locally? hehe |
| 13:56:45 | jose: | lol |
| 13:57:33 | jose: | any problem?? |
| 13:58:11 | FrankW: | It seems like jose is doing the right things, so I'm at a loss. |
| 13:58:17 | akrherz: | works here, strange |
| 13:58:47 | akrherz: | jose: are any messages coming to the apache logs or /var/log/messages ? |
| 13:59:15 | jose: | let me see |
| 14:00:02 | jose: | nothing akrherz |
| 14:00:08 | jose: | just MARK ---- |
| 14:00:34 | jose: | and in error.log not is appear when I reload the page.. |
| 14:01:22 | akrherz: | another command please: "ls -ld /usr/local" |
| 14:01:31 | akrherz: | another command please: "ls -1d /usr/local" oops |
| 14:01:52 | akrherz: | augh, I suck |
| 14:02:01 | akrherz: | another command please: "ls -11d /usr/local" |
| 14:02:57 | akrherz: | basically, can the webserver user see /usr/local, grasping at straws |
| 14:03:33 | FrankW: | The thing is, mapserv seems to be running and producing an error message but it is one that is only produced by executables built without USE_PROJ defined. |
| 14:03:40 | jose: | ow man now it works |
| 14:03:40 | FrankW: | So I don't see how it can be permissions or init files. |
| 14:03:58 | jose: | I recompile proj4 library |
| 14:04:19 | FrankW: | I don't see how that could make any difference if you didn't rebuild mapserver. |
| 14:04:28 | jose: | I installed it from apt-get but nowI get the source and recompile it...and works |
| 14:04:34 | jose: | really |
| 14:04:51 | jose: | could be the firefox cache? no ... |
| 14:04:56 | : | * FrankW disbelieves a rigerous process has been followed and reported. |
| 14:05:09 | FrankW: | But I'm pleased it is working. |
| 14:05:18 | jose: | to be honest I restart apache |
| 14:05:31 | jose: | perhaps a missed configuration |
| 14:05:55 | jose: | I remember that I include ScriptAlias...in my virtual host |
| 14:06:36 | jose: | when I access that address I receive a file calle wms, that is it? |
| 14:06:57 | FrankW: | It is likely the capabilities xml document. Try inspecting it with an editor. |
| 14:11:00 | jose: | hum I think that the xml is all right...now I can load layers from openlayers? |
| 14:11:20 | FrankW: | I would encourage you to try a GetMap request if possible before involving openlayers. |
| 14:15:21 | jose: | hum ok |
| 14:15:24 | jose: | I will try |
| 14:18:46 | jose: | Just one question...all layers that I want work with openlayers must be in wms.map, ok? |
| 14:20:00 | FrankW: | jose: generally yes. |
| 14:20:29 | jose: | I can use include to separate it, ok? |
| 14:20:57 | FrankW: | yes, you could. Is it organizationally complex enough to justify that already? |
| 14:23:03 | jose: | yes it is |
| 14:23:12 | FrankW: | ok |
| 14:23:26 | jose: | GetMap works fine.. |
| 14:24:50 | FrankW: | excellent. |
| 14:24:59 | FrankW: | Now you can experiment with openlayers with some confidence. |
| 14:27:02 | jose: | ok thx for help |
| 14:27:59 | jose: | one more thing I need include all this url in openlayers or just http://.../mapserv ? |
| 14:29:31 | FrankW: | normally you would give an url like "http://localhost/cgi-bin/mapserv?map=/a/b/c/dddd.map&" as the WMS Service url. |
| 14:29:33 | sigabrt`: | Title: MapServer Message ( at localhost ) |
| 14:29:42 | FrankW: | Then openlayers adds particular parameters to that. |
| 16:46:06 | jose: | I am trying display a map using openlayers, but is not working, when I try GetMap no error is report, but I can't see no map, the windows continuous blank. I suspicious that is because the vector layers which I want display is very small...what can I do to check if mapserv is working? |
| 17:14:45 | jose: | How can I display a point as a circle??/ |
| 17:15:06 | jose: | I am reading SYMBOL attribute but it is not working |
| 17:18:52 | jlivni: | jose: you should get your map working with getmap before adding openlayers to the mix |
| 17:19:12 | jlivni: | if you are having trouble, paste ( to dpaste, not in here ) your mapfile and the url you are using to query it |
| 17:21:41 | jose: | ok |
| 17:23:01 | jose: | http://pastebin.ca/1674325 |
| 17:23:02 | sigabrt`: | Title: pastebin - Someone - post number 1674325 ( at pastebin.ca ) |
| 17:24:07 | jose: | I can see the points...but they are very small and I use size to enlarge them, but it appears not work |
| 21:22:41 | dineo: | hi everyone |
| 21:34:15 | dineo: | Hi FrankW |