#MAPSERVER IRC Log - 2009-12-26

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
02:24:09 Algeriano: hello there !
02:25:08 Algeriano: is there any body active over here ?
02:29:14 Algeriano: hello aboudreault, bbms, bitner, bitnerd, bkm_, Buey, CIA-6, djay_, dragan, dreamil, dtidrow, hobu, IRSeekBot2, jef, jlivni, jonafan_, mage_, mdev, nhv, project10, racicot, rbranson, rodgort, Schuyler, sigabrt, strk_, stvn, ue, wohnout and zjames_ !!
02:29:36 Algeriano: is there any body !?
02:31:07 Algeriano: hello aboudreault bbms bitner bitnerd bkm_ Buey CIA-6 djay_ dragan dreamil dtidrow hobu IRSeekBot2 jef jlivni jonafan_ mage_ mdev nhv project10 racicot rbranson rodgort Schuyler sigabrt strk_ stvn ue wohnout and zjames_
02:35:05 Algeriano: hello szekerest
02:35:16 Algeriano: and hello rodgort
02:35:33 szekerest: Algeriano: hi
02:36:15 Algeriano: how is your experience with MapServer ?
02:42:51 szekerest: hmmm, good question ;- )
02:43:25 szekerest: have been using that for 4 years
03:41:03 Algeriano: szekerest:
03:41:34 Algeriano: hahaha! that seems a very long experience : )
03:51:55 szekerest: :- )
04:19:15 Algeriano: hey guys .. am facing a problem .. MapServer displayed white empty images instead of showing the map from the shapefiles ..
04:20:08 Algeriano: .. any idea what could the problem be?
06:36:59 CIA-6: warmerdam * r9638 /trunk/msautotest/pymod/mstestlib.py: make more resilient if there are no successes or fails!
06:39:49 CIA-6: warmerdam * r9639 /trunk/msautotest/misc/ ( expected/rfc36_ogr_geojson.js rfc36_ogr.map ): add minimalistic ogr query testing
08:06:42 FrankW: Anyone around today?
08:07:27 FrankW: It seems that RFC 56 requires query templates to have the magic string "MapServer Template" but I don't see this documented anywhere in the regulard docs like http://www.mapserver.org/mapfile/template.html
08:07:28 sigabrt: Title: Templating MapServer 5.4.2 documentation ( at www.mapserver.org )
08:07:35 FrankW: It is rather frustrating!
08:35:19 CIA-6: warmerdam * r9640 /trunk/mapserver/ ( HISTORY.TXT mapogr.cpp ): implemented RFC52 LayerResultsGetShape for OGR - record is now results offset not fid
09:15:10 CIA-6: warmerdam * r9641 /trunk/mapserver/ ( HISTORY.TXT mapwcs.c ): honour maxsize limits on WCS responses ( #3204 )
10:21:38 Algeriano: hey guys .. am facing a problem .. MapServer displayed white empty images instead of showing the map from the shapefiles ..
10:21:47 Algeriano: .. any idea what could the problem be?
10:24:37 FrankW: Algeriano: that could be a wide variety of issues.
10:25:04 FrankW: are the layers turned on? are the extents right? Are you setting any styling instructions on how to draw them?
10:27:58 Algeriano: actually i have just installed it .. am storing the layers in a PostgresSQL/PostGIS database ..
10:28:25 Algeriano: could that be because of wrong Projection or somthing like this !?
10:28:37 Algeriano: FrankW:
10:29:05 FrankW: Algeriano: the projection could also be an issue.
10:29:25 FrankW: earlier you mentioned shapefiles, but now you mention postgis, I gather the shapefile ref was in error?
10:29:46 Algeriano: mmmm i hve reprojected them all an unified the projection ..
10:29:51 FrankW: I would suggest you first work on simple rendering using the shp2img commandline program as it makes it easier to see errors.
10:30:37 FrankW: eg.
10:30:58 Algeriano: I am requesting maps using this link: http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/uaeumaps/data/mapfiles/uaeumaps.map&layers=districts
10:31:00 sigabrt: Title: MapServer Message ( at localhost )
10:31:01 FrankW: shp2img -all_debug 1 -m your.map -o out.png -l <layername>
10:31:23 FrankW: shp2img -all_debug 1 -m uaeumaps.map -o out.png -l districts
10:32:02 Algeriano: where do i have to use this command ?
10:32:19 FrankW: at the commandline, likely in the directory with your map.
10:32:22 Algeriano: am using linux Ubuntu
10:32:32 Algeriano: ok i'll try that
10:32:36 FrankW: building your own mapserver or using the package?
10:32:45 FrankW: I don't know if the package includes shp2img or not.
10:34:55 Algeriano: i have installed MapServer using apt-get command
10:35:10 Algeriano: "apt-get install -y cgi-mapserver mapserver-bin gdal-bin"
10:35:29 FrankW: does "shp2img -v" report something useful at the commandline?
10:35:59 Algeriano: one minute i'll try it ..
10:36:55 FrankW: You might also find you need to add this line in your MAP object in your .map file:
10:36:59 FrankW: CONFIG MS_ERRORFILE stderr
10:37:07 FrankW: This tells mapserver to write error messages to stderr.
10:37:15 FrankW: ( and debug output )
10:37:50 Algeriano: ok ..
10:38:39 Algeriano: looks like i have shp2img installed
10:40:13 nhv: http://mapserver.org/utilities/shp2img.html
10:40:14 sigabrt: Title: shp2img MapServer 5.4.2 documentation ( at mapserver.org )
10:41:44 Algeriano: thank you guys ..
10:42:36 Algeriano: FrankW: i have made that command .. and it works .. the result is:
10:42:46 Algeriano: msDrawRasterLayerLow( basemap ): entering.
10:42:55 Algeriano: msResampleGDALToMap( ): no overlap ... no result.
10:47:18 Algeriano: sorry the districts layer is not active .. so i did the command with another layer and it returned a lot of information
10:51:07 FrankW: Algeriano: are you working with raster or vector data?
10:51:10 FrankW: Or both?
10:51:12 FrankW: ( as inputs )
10:51:34 Algeriano: only Vector .. Point
10:51:45 : * nhv suggests setting all of your layers STATUS to DEFAULT for debugging purposes
10:51:59 FrankW: The msResampleGDALToMap( ) message normally is only produced for raster data.
10:52:04 FrankW: So I'm confused.
10:54:37 Algeriano: no FrankW .. i have changed my MapFile .. it was containting some tasting layers that are not working .. now i ame using one Vector layer only
10:54:53 Algeriano: so it does not give me the "The msResampleGDALToMap( )" message
10:55:00 FrankW: ok
10:55:12 FrankW: Are you getting any messages reported now?
10:55:21 Algeriano: it gaves me along list of information
10:56:00 FrankW: perhaps you could paste the output and your map file at http://osgeo.pastebin.ca/
10:56:01 sigabrt: Title: pastebin - Type, paste, share. ( at osgeo.pastebin.ca )
10:58:19 Algeriano: by the way, I am using MapFish 1.1 and it gives me in the display window this message:
10:58:31 Algeriano: "msWMSLoadGetMapParams( ): WMS server error. Invalid Layer( s ) given in the LAYERS parameters"
10:59:22 FrankW: that might have been a good starting point. Nevertheless, I'd suggest following through on shp2img to ensure you can get your data access and rendering working before worrying about WMS or client configuration issues.
11:00:48 Algeriano: i see .. so the problem might be in the server side only
11:00:58 FrankW: well it isn't clear.
11:01:11 FrankW: But it is a good idea to ensure the basic data access and rendering is working first,
11:01:15 FrankW: and then work up to the client.
11:01:33 FrankW: debugging is all about isolating the error stage by stage.
11:02:31 Algeriano: yes .. that really helped mr. FrankW ..
11:07:49 Algeriano: FrankW: this is my shp2img query result : http://osgeo.pastebin.ca/1727729
11:07:50 sigabrt: Title: pastebin - Algeriano - post number 1727729 ( at osgeo.pastebin.ca )
11:09:16 FrankW: Can you try the following query in psql and see if it returns any records?
11:09:32 FrankW: SELECT count( * ) from campus WHERE the_geom && setSRID( 'BOX3D( -110.490799963224 30.518768,-101.761161036776 37.500294 )'::BOX3D
11:10:19 FrankW: It is reassuring to see that postgis access seems to be working ok.
11:14:03 Algeriano: i'll try the sql query ..
11:19:49 Algeriano: sorry, but how do I apply that query in psql
11:21:20 Algeriano: I used phpmyPgAdmin abd it returns ERROR: syntax error at end of input
11:23:47 : * nhv looking at the shp2img results suspects that the layer "campus" is not actually lat lon and this might be a map extents issue
11:25:32 Algeriano: so how do you think it might be fixed ?
11:27:16 nhv: what is the extents of your layer as reported by PostGIS ? what is the SRS of your data
11:27:46 nhv: extents need to be is same SRS as data or the layer will need to have its own SRS
11:28:41 nhv: as I said I am just guessing but I doubt if a campus data layer is in lat lon srs 4326
11:30:12 Algeriano: i wanted to post my Napfile but "osgeo.pastebin.ca" in not working! .. so I've uploaded it here: http://ain.ae/mapfile.txt
11:31:00 Algeriano: check it out it might help
11:32:27 Algeriano: nhv: I don't know what are my layers extent as reported by PostGIS .. how do I know that?
11:33:33 Algeriano: and I don't even know what does SRS means .. really sorry
11:34:19 nhv: The EXTENT and UNITS values at the MAP-level must be in the output projection units.
11:34:40 nhv: your extent is in latlon 4326 but your map projection isn't
11:35:17 nhv: see EXTENT and PROJECTION items here http://mapserver.org/mapfile/map.html
11:35:18 sigabrt: Title: MAP MapServer 5.4.2 documentation ( at mapserver.org )
11:36:30 Algeriano: i'll check it out .. thanks nvh
11:37:33 nhv: a quick dirty test would be to change this line in your mapfile "init=epsg:32640"
11:37:43 FrankW: SRS means "spatial reference system" - ie. coordinate system or projection.
11:37:45 nhv: to "init=epsg:4326"
11:37:58 FrankW: and it does look like that may be the issue.
11:38:31 nhv: as your campus layer has its own projection object
11:39:39 Algeriano: OK guys .. i'll try that and tell you the results
11:43:15 Algeriano: no results .. the same problem ..
11:45:44 Algeriano: the EPSG: 32640 is the number for the projection that I've used for shapefiles in ArcGIS which is WGS84 UTM zone 40N
11:46:26 Algeriano: so the shap file that I've used is projected to 32640
11:47:18 Algeriano: why do I have to change it to 4326 ?
11:49:14 FrankW: If the data is actually in 32640 then you need to use appropriate definitions in your mapfile, and in the mapfile EXTENTS.
11:50:34 FrankW: Hmm, looking back at your map file, I see it is declaring the campus layer as being in EPSG:32640.
11:50:36 FrankW: So that's good.
11:50:59 FrankW: Perhaps you could fix either your MAP level projection or the EXTENTS at the MAP level so they match.
11:51:12 FrankW: You had defined the EXTENTS in 4326 ( lat/long ) while the map was declared as being 32640.
11:51:34 Algeriano: mmm
11:52:05 Algeriano: how do I change the EXTANT projection ?
11:52:37 FrankW: Do you know the UTM extents of your area of interest? Presumably the campus?
11:52:54 FrankW: It seems your existing extents are very large for a campus!
11:55:28 Algeriano: i got those lang/lat form google earth and applied them in the Mapfile ..
11:55:32 Algeriano: I have and OpenLayers base map on MapFish so i started changing the values in MapFile untile i focused on my area of interest !!
11:55:53 FrankW: Is your area of interest a single campus or something broader/
11:55:54 FrankW: ?
11:56:02 Algeriano: actually it is not campus map it is the places of campuses in the city
11:56:25 Algeriano: so it is a city extant
11:56:37 Algeriano: : )
11:56:48 FrankW: 8 degrees by 8 degrees is still very large for a city.
11:57:44 FrankW: I notice there is no WMS metadata in your .map file you posted earlier.
11:57:52 FrankW: Is it being used by Mapfish as a wms service?
11:58:18 Algeriano: bus as i know even if i should the whole world in the map the points in the vector layer should still be visible !
11:58:56 Algeriano: yes .. i suppose ..
11:58:57 FrankW: If you were to show the whole world, they might only be a single pixel and hard to distinguish from fuzz on your screen.
11:59:22 FrankW: It is helpful to establish a meaningful extent in your map file so you can check rendering while debugging.
11:59:24 Algeriano: amm you are right ..
12:00:41 Algeriano: in MapFish i used the" createWmsLayer( " function
12:00:53 Algeriano: to get the OpenLayers
12:01:48 FrankW: Have you had any success with using this map as a WMS map in Mapfish?
12:02:09 Algeriano: what map ?
12:02:13 FrankW: I think you need to carefully go over the MapServer WMS Server HOWTO document and set lots of supporting WMS info in the map before it will work properly as a wms service.
12:02:14 Algeriano: OpenLayers ?
12:02:27 FrankW: The .map file referenced at http://ain.ae/mapfile.txt
12:02:36 FrankW: I notice it has no WMS support information in it.
12:04:05 Algeriano: but it is displaying great in MapFish .. iused a sample file from MapFish
12:08:07 FrankW: I think I'll step back here, there seems to be too much going on for me to give useful advice.
12:08:25 Algeriano: oh sorry ..
12:08:57 Algeriano: the extant is not foucused on the city .. it is foucused on the state .. sorry
12:09:17 Algeriano: i will recorrect it ..
12:11:00 Algeriano: Thatnk you FrankW .. you really helped me .. I appreciate it : )
12:11:29 Algeriano: Thanks also to nhv ..