Re: [mapserver-users] Problem creating WMS
On Wed, Mar 26, Milo van der Linden wrote: svGIS will return text/html only when the WMS server returns a message or error. The GetCapabilities is parsed correctly, but when the GetMap is triggered, it occasionally returns text/html on error. The best thing to do is copy the request string from svGIS to your WMS server to a browser. If it is correct, you will see an image. If it is wrong, The browser will tell you it wants to download a file called mapserv or mapserv.exe You could avoid this by asking for in-image error messages: ...EXCEPTIONS=application/vnd.ogc.inimage \\kristian -- ... et nemo ex vobis interrogat me: »Quo vadis?« ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Trouble with polygons
Hello, I need something specific: To draw polygons (parcels) over a SHP map, and none of the examples I found on the web worked. Also I have no problems displaying points and I'm using UTM coordinates. This is what I did: 1.- Compiled MS on Linux (CentOS) and Install. MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE 2.- Installed MySql. 3.- Created a table on MySql to store polygons. Here is the description. This table is called prueba +--+-+--+-+-+---+ | Field| Type| Null | Key | Default | Extra | +--+-+--+-+-+---+ | NUM | int(11) | YES | | NULL| | | ID | int(11) | YES | | NULL| | | poligono | text| YES | | NULL| | +--+-+--+-+-+---+ This is what inserted on field poligono: POLYGON((35 627,35 6275000,36 6275000,36 627,35 627)) ** 4.- Then created a OVF file, according to this example. (aqidata.ovf) http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/ This is my OVF file : OGRVRTDataSource OGRVRTLayer name=aqidata SrcDataSourceMYSQL:test,user=root,password=x,host=localhost,port=3306,tables=prueba/SrcDataSource SrcSQLselect NUM, ID, poligono from prueba/SrcSQL FIDID/FID GeometryTypewkbPolygon/GeometryType GeometryField encoding=WKT field=poligono/ /OGRVRTLayer /OGRVRTDataSource Using OGRINFO I Tested the connection, this is the result: INFO: Open of `/var/www/cgi-bin/tests/aqidata.ovf' using driver `VRT' successful. Layer name: aqidata Geometry: Polygon Feature Count: 1 Layer SRS WKT: (unknown) NUM: Integer (11.0) ID: Integer (11.0) poligono: Binary (0.0) OGRFeature(aqidata):1 NUM (Integer) = 1 ID (Integer) = 1 poligono (Binary) = 504F4C59474F4E282833353030303020363237303030302C333530303030203632373530... 5.- Then a created a MAP file: MAP NAME Testing EXTENT -13.12 6409691.13 525065 6511086 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 400 400 FONTSET fonts.txt SYMBOLSET symbols.txt WEB METADATA key1 value1 key2 value2 key3 value3 key4 value4 END END PROJECTION init=epsg:4326 END LAYER NAME POLIGONO DEBUG ON STATUS DEFAULT TYPE POLYGON PROJECTION init=epsg:4326 END CONNECTIONTYPE OGR CONNECTION aqidata.ovf DATA aqidata CLASS NAME MyClass STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 8 END END END END It doesn't show anything, just a white rectangle. Not even an error. But when I display just points it works fine (using PointsFromColumns). I hope you could help me. Thanks, Pablo Molina S. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Reading a GML file to build a map
Absolutely! But use of mapscript is not necessary. Edit your mapfile. http://mapserver.gis.umn.edu/docs/reference/vector_data/gml Good luck! Milo van der Linden Carlos Pinto schreef: Hi all, I'm new in MapServer and I'm using Openlayers that can be a client of MapServer. What I'm trying to set-up is a grid that is in GML file. And I want MapServer to build the layer reading the GML file and give it to OpenLayers (javascript API) would read it as WMS. I have instaled MapServer in C# so I'm using MapScript. Is this possible? Thanks Carlos ___ 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] is okay
I have confirm my regidtration - Looking for last minute shopping deals? Find them fast with Yahoo! Search.___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: AW: [MAPSERVER-USERS] Hiding overviews
Pål Kristensen wrote: Yes, this is indeed what I'm trying to achieve. I can't answer for others, but for what I've read it looks like the described behavior is what most people wants. I guess someone would like the ability to totally hide some layers from the capabilities document, but in my opinion that's more of a cosmetic need not to disclose to the user how the layers are organized internally in mapserver. After all a layer without a name is not queryable, and that is the main objective. FYI I have created a ticket for this: http://trac.osgeo.org/mapserver/ticket/2562 I can't commit this to SVN right now (I'm in the middle of other changes in my source tree) but will try to get back at it ASAP. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapscript Legend question
hi list, right now I do this to get a legend from my map file: $oImg=$oMap-drawLegend(); $oImg-saveImage($szImg.'_legend',$oMap); copy($szImg.'_legend', $szImg.'_legend.png'); $legendW = $oImg-width; $legendH = $oImg-height; $oImg-free(); my question is: is it possible to request the basic legend with a different background color than the background color specified in the mapfile? better yet, is there a way to specify that the background is transparent ? thanks for any suggestions, sacha [apologies if this is a very basic mapscript question, but i couldn't find the answer I was looking for when I searched.] ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Projection configuration for WMS... - Nevermind
Got it working, I think it was a transposed number- idiot... Steve Lime [EMAIL PROTECTED] 03/26/08 5:42 PM Ok, I should know this but I'm sick of beating my head against a wall. I'm using tile cache and a WMS layer . I keep getting a: msWMSLoatGetMapParams(): WMS server error. Invalid SRS given for layer: SRS must be valid for all requested layers. The mapfile has a projection set and every layer has wms_srs metadata set. The srs configured with tilecache is epsg:29615. I've tried all sorts of combinations of lower-case or upper-case epsg yet the error persists. Anyone got a minimal WMS config that they know works with tilecache handy? Steve ___ 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] Projection Issues
Hi I am having trouble with the projection on a raster image. The map is being displayed but the raster layer is shifted by about 210m. The mapfiles main projection is EPSG:4326 I have a .ecw file with this gdalinfo: Driver: ECW/ERMapper Compressed Wavelets Files: aerial_photo_2003.ecw Size is 53334, 53334 Coordinate System is: PROJCS[TMAMG55, GEOGCS[AUSTRALIAN GEODETIC, DATUM[AGD84, SPHEROID[ANS,6378160,298.25]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433]], PROJECTION[Transverse_Mercator], PARAMETER[latitude_of_origin,0], PARAMETER[central_meridian,147], PARAMETER[scale_factor,0.9996], PARAMETER[false_easting,50], PARAMETER[false_northing,1000], UNIT[Meter,1]] Origin = (655179.380,7701896.290) Pixel Size = (1.500,-1.500) Corner Coordinates: Upper Left ( 655179.380, 7701896.290) (148d29'26.84E, 20d46'34.32S) Lower Left ( 655179.380, 7621895.290) (148d29'52.92E, 21d29'55.68S) Upper Right ( 735180.380, 7701896.290) (149d15'32.31E, 20d46'4.13S) Lower Right ( 735180.380, 7621895.290) (149d16'11.81E, 21d29'24.34S) Center ( 695179.880, 7661895.790) (148d52'45.97E, 21d 8'1.22S) Band 1 Block=53334x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=53334x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=53334x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary I have a vector layer which was a tab file with the projection AMG Zone 55(AGD 84). This was loaded into postgis with ogr2ogr using these options ogr2ogr -overwrite -f PostgreSQL PG:database details thefile.tab -nln t_table -lco GEOMETRY_NAME=the_geom -t_srs EPSG:4326 -skipfailures. I have done this before on different installations and it usually gives me a table where srid =4326 however in this case it is giving me a newly created srid = 32772 (this installation is different in that we are using postgres 8.3 and ms4w 2.2.7). I have checked and as far as I can tell this layer is being displayed correctly. here are the relevant layers from my mapfile LAYER NAME Photography_2003 GROUP Photography_2003 DATA mackay/Images/aerial_photo_2003.ecw TYPE RASTER STATUS ON PROJECTION init=epsg:20355 END METADATA DESCRIPTIONPhotography 2003 END END And LAYER NAME Paddocks GROUP Paddocks STATUS ON DATA the_geom from t_the_table using unique oid using SRID=32772 TYPE POLYGON CONNECTIONTYPE postgis CONNECTION connection string MAXSCALE 200 CLASS NAME Paddock STYLE ANGLE 120 WIDTH 1 SIZE 13 COLOR 0 128 0 OUTLINECOLOR 0 128 0 SYMBOL hatched END END END Any help would be appreciated. Gabriel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users