Re: [mapserver-users] tiff image drawing error
Hi, Please send what does gdalinfo reports with command gdalinfo /opt/geoweb/maps/snapout2.tif -Jukka Rahkonen- YAMADA,Yasuharu wrote: Thank you for your information. But (1) The tiff file seems an ordinary file. (2) /var/www/cgi-bin/mapserv.cgi -v reports including INPUT=TIFF and INPUT=GDAL.] Frank Warmerdam wrote: YAMADA,Yasuharu wrote: When I display a tiff image on the MapServer, the following message appears on the screen, 'msDrawRaster(): Image handling error. Unrecognized or Unsupported image format: drawEPP(): Image handling error. /opt/geoweb/maps/snapout2.tif is not an EPP file.' The server environment is CentOS5, MapServer 5.6.1, OpenLayers 2.8. What's wrong? Does anyone advise me? Yusuhara, Two possibilities come to mind: 1) The file is corrupt. Does it work outside MapServer? 2) MapServer was built without internal-tiff or GDAL support. Does mapserv -v report INPUT=GDAL? Best regards, -- --- Yasuharu Yamada ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: multiple map layers with different scales
does it mean that I should also always give SCALEDENOM in the CGI request? I tries to set MAX/MINSCALEDENOM for each layer and to use SCALEDENOM in CGI request. But it works just other than what I expect. The maps (layers) what I have have a real map scale value (e.g. 1:250,000). The maps have different detail according to different scales. 1) At first I tried WITHOUT MAX/MINSCALEDENOM in mapfile: LAYER NAME LAYER_SCALE_150 STATUS ON TYPE POLYGON #MINSCALEDENOM 350001 CONNECTIONTYPE OGR CONNECTION layer.shp DATA layer ... END and with CGI request: /cgi-bin/mapserv?LAYERS=ALLMODE=MAPMAP=/my.mapMAPXY=10+50SCALEDENOM=1 The map is shown and it looks OK. then I tried with this CGI request: /cgi-bin/mapserv?LAYERS=ALLMODE=MAPMAP=/my.mapMAPXY=10+50SCALEDENOM=20 then the map is still shown but its size is decreased (it should be 20x smaller than that with SCALEDENOM=1) does SCALEDENOM mean the actual map scale or is it just for mapserver to zoom in/out? 2) if I try using the CGI request with the actual map scale: /cgi-bin/mapserv?LAYERS=ALLMODE=MAPMAP=/my.mapMAPXY=10+50SCALEDENOM=150 then the map will be so small that it will be never shown or seen! and it would make no sense to define MAX/MINSCALEDENOM for layers with actual scale value. LAYER NAME LAYER_SCALE_150 STATUS ON TYPE POLYGON MINSCALEDENOM 350001 CONNECTIONTYPE OGR CONNECTION layer.shp DATA layer ... END How should I correctly use those parameters? must I always use MAPXY with SCALEDENOM in CGI request? Can I define MAPEXT with SCALEDENOM to defined explicit bounding box? how about MAPSIZE or BUFFER? I want to use different scale value to show different map layer, and the zoom (in/out) effect is somehow done in client application. thanks for your help. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5301056.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] Question about oracle spatial configuration change [SOLVED]
Alan, Thanks for you response. It seems that there was a problem with user created. Something was wrong. Now it's fixed. Thanks. Regards. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· -Mensaje original- De: Alan Boudreault [mailto:aboudrea...@mapgears.com] Enviado el: miércoles, 14 de julio de 2010 15:57 Para: mapserver-users@lists.osgeo.org CC: David Alda Fernandez de Lezea Asunto: Re: [mapserver-users] Question about oracle spatial configuration change Normally, you shouldn't have to change anything else. Have you tried to connect to the DB with your new user from the oracle sqlplus and did a select * from your_table_name ? Thanks, Alan On July 14, 2010 08:07:05 am David Alda Fernandez de Lezea wrote: Hi list, We were working with mapserver 5.6.1 and oracle spatial, and we have change the user (the new one has less privileges - it cannot modify anything stored in the DB) that connects to oracle spatial, and now we cannot connect to the layers stored in oracle. We get the following message: [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 [Wed Jul 14 14:01:30 2010].38 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].38 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:30 2010].38 mapserv request processing time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 2010].38 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 2010].52 CGI Request 1 on process 1924 [Wed Jul 14 14:01:32 2010].661000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:32 2010].661000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 2010].661000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].36000 CGI Request 1 on process 2408 [Wed Jul 14 14:01:33 2010].161000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].161000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request processing time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 2010].161000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].505000 CGI Request 1 on process 2064 [Wed Jul 14 14:01:33 2010].677000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].677000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request processing time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 2010].677000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].989000 CGI Request 1 on process 3216 [Wed Jul 14 14:01:34 2010].13 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:34 2010].13 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:34 2010].13 mapserv request processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 2010].13 msFreeMap(): freeing map at 019AB590. Do we have to refresh something or do somethign else? Layer config: CONNECTIONTYPE oraclespatial CONNECTION newuser/newp...@ora10gex If configure the layer with the old user, it works. Thanks. Un saludo, ·· · ··· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ··· ··· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ··· ··· email: da...@ikt.esweb: www.ikt.es ·· ___ mapserver-users mailing list mapserver-users@lists.osgeo.org
Re: [mapserver-users] tiff image drawing error
Dear Rahkonen Jukka, Rahkonen Jukka wrote: Hi, Please send what does gdalinfo reports with command gdalinfo /opt/geoweb/maps/snapout2.tif -Jukka Rahkonen- The following information was received from the system. -- [geo...@localhost ~]$ gdalinfo /opt/geoweb/maps/snapout2.tif Driver: GTiff/GeoTIFF Files: /opt/geoweb/maps/snapout2.tif Size is 829, 660 Coordinate System is: PROJCS[WGS 84 / UTM zone 53N, GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.257223563, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]], PROJECTION[Transverse_Mercator], PARAMETER[latitude_of_origin,0], PARAMETER[central_meridian,135], PARAMETER[scale_factor,0.9996], PARAMETER[false_easting,50], PARAMETER[false_northing,0], UNIT[metre,1, AUTHORITY[EPSG,9001]], AUTHORITY[EPSG,32653]] GeoTransform = 874766.4700993124, 202.4737334795803, 12.20997246250808 4156085.1049555, 13.00152125831844, -202.530619799912 Metadata: TIFFTAG_XRESOLUTION=300 TIFFTAG_YRESOLUTION=300 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 874766.470, 4156085.105) (139d14'15.11E, 37d28'32.49N) Lower Left ( 882825.052, 4022414.896) (139d15'39.67E, 36d16'14.86N) Upper Right ( 1042617.195, 4166863.366) (141d 8'5.84E, 37d29'21.16N) Lower Right ( 1050675.777, 4033193.157) (141d 7'43.29E, 36d17'11.34N) Center ( 962721.124, 4094639.131) (140d11'26.37E, 36d53'3.53N) Band 1 Block=128x128 Type=Byte, ColorInterp=Red Band 2 Block=128x128 Type=Byte, ColorInterp=Green Band 3 Block=128x128 Type=Byte, ColorInterp=Blue [geo...@localhost ~]$ -- --- Yasuharu Yamada ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] strange issue PostGis + Mapserver
Hello everybody and excuse me for the crossposting, I'd like to report a strange issue I have with Mapserver and PostGis in order to get some new ideas on the problem. [Environment] * Ubuntu Karmic Server * Mapserver 5.4.2 * Postgres 8.3.9 * Postgis 1.5.1 * Postgis table with +3 Multipolygon records, this layer was originally in a shapefile, which I don't have, and I know that the shapefile was build from smaller ones. I'm publishing the layer with a WMS. [Problem] * If I make a GetFeatureInfo on the WMS, I get the info only in some zones and in other zones I get an Content-type: application/vnd.ogc.se_xml error. I suspect that the zones are related to the original smaller shapefiles that made the original and bigger shapefile. [Weirdo] * The XML error has the ServiceException tag empty, there is no other trace of error. * If I export the layer as shapefile and publish the shapefile as WMS I get the info in all the zones. [Things I've tried] * I tried serving the WMS in DEBUG mode but the error log doesn't report anything. * I tried exporting and importing the shapefile again from/into Postgis, using gvSIG and/or shp2pgsql, nevertheless I get the same issue. * I've googled the mailing lists, I've seen that some SQLServer2008 users report something similar, but the solution was migration to PostGIS :( Has someone seen/experienced/reported something similar? Tanks in advance. -- Pedro-Juan Ferrer Matoses Valencia (España) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] strange issue PostGis + Mapserver
Hi, did you check if your feature are valid? Y. Le vendredi 16 juillet 2010 13:47:41, Pedro-Juan Ferrer Matoses a écrit : Hello everybody and excuse me for the crossposting, I'd like to report a strange issue I have with Mapserver and PostGis in order to get some new ideas on the problem. [Environment] * Ubuntu Karmic Server * Mapserver 5.4.2 * Postgres 8.3.9 * Postgis 1.5.1 * Postgis table with +3 Multipolygon records, this layer was originally in a shapefile, which I don't have, and I know that the shapefile was build from smaller ones. I'm publishing the layer with a WMS. [Problem] * If I make a GetFeatureInfo on the WMS, I get the info only in some zones and in other zones I get an Content-type: application/vnd.ogc.se_xml error. I suspect that the zones are related to the original smaller shapefiles that made the original and bigger shapefile. [Weirdo] * The XML error has the ServiceException tag empty, there is no other trace of error. * If I export the layer as shapefile and publish the shapefile as WMS I get the info in all the zones. [Things I've tried] * I tried serving the WMS in DEBUG mode but the error log doesn't report anything. * I tried exporting and importing the shapefile again from/into Postgis, using gvSIG and/or shp2pgsql, nevertheless I get the same issue. * I've googled the mailing lists, I've seen that some SQLServer2008 users report something similar, but the solution was migration to PostGIS :( Has someone seen/experienced/reported something similar? Tanks in advance. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : +33 (0)4 79 26 57 98 Mob : +33 (0)6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] strange issue PostGis + Mapserver
Hello Yves, yes, it was one of the things I tried (but I forgot to mention) I checked the SHP geometry with ArcGis and also the Postgis geometry. I've even used the Tim Sutton cleangeometry function. There wasn't any variation :( Thanks, -- Pedro-Juan Ferrer Matoses Valencia (España) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users