[mapserver-users] Another newbie needing help with a mapfile (projections)...
Hello! I have a problem with Mapserver which I am apparently unable to solve. I have a mapserver installation which is queried by a web component, that uses virtual earth tile addressing. It works really great. My web component queries it like this: http://localhost/MapServ/mapserv.exe?map=mymap.mapmode=tiletilemode=vetile=1202213133323032212layers=aaa Until now it worked with ECW files only, and I had no problems. But now I need to add a shape file, and I just can't get it to work! I googled extensively the whole morning but I was unable to find any solution. Ogrinfo says this: ** INFO: Open of ... using driver `ESRI Shapefile' successful. Layer name: mattarello Geometry: Polygon Feature Count: 8270 Extent: (662941.920131, 5093593.286658) - (667764.802144, 5099438.607073) Layer SRS WKT: PROJCS[UTM Zone 32, Northern Hemisphere, GEOGCS[GRS 1980(IUGG, 1980), DATUM[unknown, SPHEROID[GRS80,6378137,298.257222101]], PRIMEM[Greenwich,0], UNIT[Degree,0.017453292519943295]], PROJECTION[Transverse_Mercator], PARAMETER[latitude_of_origin,0], PARAMETER[central_meridian,9], PARAMETER[scale_factor,0.9996], PARAMETER[false_easting,50], PARAMETER[false_northing,0], UNIT[Meter,1]] ogc_fid: Integer (10.0) ... ** This map has the same extent as the ecw I am using and it was provided by the same person, so I just thought to use the same projection as the ECW. I also thought that the output projection should be the same as the one I am using with the ECW, to work with the web component. Unfortunately, all tiles I get are just blank, and calling mapserver in map mode also renders a blank map. If I comment out the projection inside the layer, calling mapserver in map mode, it displays the map. But the tile is still blank. I am probably using the wrong projection, but I really can't figure out how to find the correct one, or how to translate the ogrinfo information to the mapfile! Here is the mapfile I am using. ** MAP IMAGETYPE PNG EXTENT 662941.920131 5093593.286658 667764.802144 5099438.607073 SIZE 400 400 SHAPEPATH . IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE mapserverlog.txt CONFIG PROJ_DEBUG ON DEBUG 5 OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png END LAYER NAME aaa TYPE POLYGON DATA mattarello.shp STATUS DEFAULT CLASS NAME aaa OUTLINECOLOR 255 0 0 END PROJECTION proj=utm zone=32 ellps=GRS80 units=m no_defs END END PROJECTION proj=merc a=6378137 b=6378137 lat_ts=0.0 lon_0=0.0 x_0=0.0 y_0=0 k=1.0 units=m nadgri...@null wktext no_defs END END ** Is there a way to display this shape on the tile? Thanks for any help!!! Palantir ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Another newbie needing help with a mapfile (projections)...
Dear MM, I guess your problem is the SHAPEPATH . Try first to add the full OR relative (from where your *.map is) datapath in your data-statement of the layer, e.g. : DATA /this/is/the/path/to/mattarello.shp If that works, add that path to your shapepath Till MM wrote: Hello! I have a problem with Mapserver which I am apparently unable to solve. I have a mapserver installation which is queried by a web component, that uses virtual earth tile addressing. It works really great. My web component queries it like this: http://localhost/MapServ/mapserv.exe?map=mymap.mapmode=tiletilemode=vetile=1202213133323032212layers=aaa Until now it worked with ECW files only, and I had no problems. But now I need to add a shape file, and I just can't get it to work! I googled extensively the whole morning but I was unable to find any solution. Ogrinfo says this: ** INFO: Open of ... using driver `ESRI Shapefile' successful. Layer name: mattarello Geometry: Polygon Feature Count: 8270 Extent: (662941.920131, 5093593.286658) - (667764.802144, 5099438.607073) Layer SRS WKT: PROJCS[UTM Zone 32, Northern Hemisphere, GEOGCS[GRS 1980(IUGG, 1980), DATUM[unknown, SPHEROID[GRS80,6378137,298.257222101]], PRIMEM[Greenwich,0], UNIT[Degree,0.017453292519943295]], PROJECTION[Transverse_Mercator], PARAMETER[latitude_of_origin,0], PARAMETER[central_meridian,9], PARAMETER[scale_factor,0.9996], PARAMETER[false_easting,50], PARAMETER[false_northing,0], UNIT[Meter,1]] ogc_fid: Integer (10.0) ... ** This map has the same extent as the ecw I am using and it was provided by the same person, so I just thought to use the same projection as the ECW. I also thought that the output projection should be the same as the one I am using with the ECW, to work with the web component. Unfortunately, all tiles I get are just blank, and calling mapserver in map mode also renders a blank map. If I comment out the projection inside the layer, calling mapserver in map mode, it displays the map. But the tile is still blank. I am probably using the wrong projection, but I really can't figure out how to find the correct one, or how to translate the ogrinfo information to the mapfile! Here is the mapfile I am using. ** MAP IMAGETYPE PNG EXTENT 662941.920131 5093593.286658 667764.802144 5099438.607073 SIZE 400 400 SHAPEPATH . IMAGECOLOR 255 255 255 CONFIG MS_ERRORFILE mapserverlog.txt CONFIG PROJ_DEBUG ON DEBUG 5 OUTPUTFORMAT NAME png DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png END LAYER NAME aaa TYPE POLYGON DATA mattarello.shp STATUS DEFAULT CLASS NAME aaa OUTLINECOLOR 255 0 0 END PROJECTION proj=utm zone=32 ellps=GRS80 units=m no_defs END END PROJECTION proj=merc a=6378137 b=6378137 lat_ts=0.0 lon_0=0.0 x_0=0.0 y_0=0 k=1.0 units=m nadgri...@null wktext no_defs END END ** Is there a way to display this shape on the tile? Thanks for any help!!! Palantir ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- - terrestris GmbH Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Geschäftsführung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 ad...@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 - Komplementärin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] BBOX Problem
Hello List i have a problem with the bbox in openlayers. I use EPSG 4326 for my Layers and use the openlayers options var options = { restrictedExtent: new OpenLayers.Bounds(-180, -60, 180, 90), numZoomLevels: 5, minResolution: auto, minExtent: new OpenLayers.Bounds(-5, -5, 5, 5), maxResolution: auto, maxExtent: new OpenLayers.Bounds(-180, -60, 180, 90) But everytime i load the website the request got the BBOX -270,-120,270,150 http://***?LAYERS=bpb_milexTRANSPARENT=trueFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG%3A4326BBOX=-270,-120,270,150WIDTH=930HEIGHT=465 Has anybody an idea? Thank you Alex -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: b...@bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Helmut Dockter ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] BBOX Problem
Hi, please ask this question on the openlayers-users mailing list. Best regards, Bart Hello List i have a problem with the bbox in openlayers. I use EPSG 4326 for my Layers and use the openlayers options var options = { restrictedExtent: new OpenLayers.Bounds(-180, -60, 180, 90), numZoomLevels: 5, minResolution: auto, minExtent: new OpenLayers.Bounds(-5, -5, 5, 5), maxResolution: auto, maxExtent: new OpenLayers.Bounds(-180, -60, 180, 90) But everytime i load the website the request got the BBOX -270,-120,270,150 http://***?LAYERS=bpb_milexTRANSPARENT=trueFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG%3A4326BBOX=-270,-120,270,150WIDTH=930HEIGHT=465 Has anybody an idea? Thank you Alex -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: b...@bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Helmut Dockter ___ 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] Bug? MapServer does not find .ige files into SHAPEPATH
I have a very large GeoTIFF created with gdal_merge.py, the .tif file was created along an .ige file, each of them are about 2.5 Gb: 892618510 /home/gisdata/ortofoto/2007_med.aux 2661367213 /home/gisdata/ortofoto/2007_med.ige 91 /home/gisdata/ortofoto/2007_med.tfw 2667686154 /home/gisdata/ortofoto/2007_med.tif I have a problem serving that file as a WMS using MapServer, I get a MapServer error: Unable to access file. 2007_med.tif using full path 2007_med.tif This is an extract of the mapfile: MAP SHAPEPATH /home/gisdata/ortofoto ... LAYER TYPE RASTER DATA 2007_med.tif ... If I use the absolute path into the DATA tag, the problem is solved. If the .tif file does not have an .ige companion, I don't need to use the absolute path. Is this a MapServer or a GDAL bug? -- Niccolo Rigacci Firenze - Italy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver consuming SLD coming from Udig and Styler (OpenGeo Suite)
Hi all, I'a, trying to use SLD files with Mapserver. I've started from an example of this web site ( http://mapserver.org/ogc/sld.html) is working well but if I use a SLD generated by Udig or the Styler (OpenGeo suite), it does not. working SLD: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.1.0 xmlns=http://www.opengis.net/sld; xmlns:se=http://www.opengis.net/se; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd; NamedLayer se:NameINDEX_20K/se:Name UserStyle se:Namexxx/se:Name se:FeatureTypeStyle se:Rule se:PolygonSymbolizer se:Geometry ogc:PropertyNamecenter-line/ogc:PropertyName /se:Geometry se:Fill sld:CssParameter name=fill#008040/sld:CssParameter sld:CssParameter name=fill-opacity0.5/sld:CssParameter /se:Fill se:Stroke sld:CssParameter name=stroke#008040/sld:CssParameter sld:CssParameter name=stroke-width2/sld:CssParameter /se:Stroke /se:PolygonSymbolizer /se:Rule /se:FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor The one generated from the Styler raise an error (WMS server error. Invalid SLD document) ?xml version=1.0 encoding=UTF-8? sld:UserStyle xmlns=http://www.opengis.net/sld; xmlns:sld= http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml; sld:NameINDEX_20K/sld:Name sld:TitleDefault polygon style/sld:Title sld:AbstractA sample style/sld:Abstract sld:FeatureTypeStyle sld:Namename/sld:Name sld:Rule sld:Namedefault/sld:Name sld:TitleIndex20K/sld:Title sld:PolygonSymbolizer sld:Fill sld:CssParameter name=fill#008040/sld:CssParameter sld:CssParameter name=fill-opacity0.5/sld:CssParameter /sld:Fill sld:Stroke sld:CssParameter name=stroke#008040/sld:CssParameter sld:CssParameter name=stroke-width2/sld:CssParameter /sld:Stroke /sld:PolygonSymbolizer /sld:Rule /sld:FeatureTypeStyle /sld:UserStyle The one from Udig is simply ignored by mapserver (without raising any error) ?xml version=1.0 encoding=UTF-8? sld:StyledLayerDescriptor xmlns=http://www.opengis.net/sld; xmlns:sld= http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml; version=1.0.0 sld:UserLayer sld:LayerFeatureConstraints sld:FeatureTypeConstraint/ /sld:LayerFeatureConstraints sld:UserStyle sld:NameDefault Styler/sld:Name sld:Title/ sld:IsDefault1/sld:IsDefault sld:FeatureTypeStyle sld:Namesimple/sld:Name sld:FeatureTypeNameFeature/sld:FeatureTypeName sld:SemanticTypeIdentifiergeneric:geometry/sld:SemanticTypeIdentifier sld:SemanticTypeIdentifiersimple/sld:SemanticTypeIdentifier sld:Rule sld:PolygonSymbolizer sld:Fill sld:CssParameter name=fill#008040/sld:CssParameter sld:CssParameter name=fill-opacity0.5/sld:CssParameter /sld:Fill sld:Stroke sld:CssParameter name=stroke#008000/sld:CssParameter sld:CssParameter name=stroke-width2/sld:CssParameter /sld:Stroke /sld:PolygonSymbolizer /sld:Rule /sld:FeatureTypeStyle /sld:UserStyle /sld:UserLayer /sld:StyledLayerDescriptor Is there any chance that you had similar issues? thanks! MartinO ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Rotated TrueType Font Symbols in PDFs
Hi List, Is there a problem with rotated TrueType font symbols using IMAGETYPE=PDF? They all appear as unrotated symbols using that format. If I change to IMAGETYPE=AGGA, there is no problem. Is this a bug or just that the PDF output hasn't yet been written to do TrueType font symbol rotation? See attached examples. Notice also that symbol fills isn't showing in the pdf output but I think I read somewhere that that wasn't implemented. Many thanks. Regards, Donald attachment: PngOutputArrowCorrect.pngattachment: PngOutputArrowNOTCorrect.png___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Changing Map File Parameters from a URL
Hi List, I am trying the change the MAXGEOWIDTH from a url but am getting the error getSymbol(): Symbol definition error. Parsing error near (C):(line 1). I'm trying to user ...MAP.LAYER.CartographicText.MAXGEOWIDTH=5000... and have tried using various combinations. CartographicText is a Layer that's included in the main map file INCLUDE CartographicSymbol.map. The included file is as follows: LAYER CONNECTIONTYPE postgis NAME CartographicText CONNECTION ...private... PROCESSING CLOSE_CONNECTION=DEFER DATA geom FROM ...private... USING UNIQUE toid METADATA IMAGEFORMAT AGGA END STATUS ON MINGEOWIDTH 1 MAXGEOWIDTH 1300 etc., etc Con someone please advise me as to how I can do this? I've spent a good couple of hours hunting to no avail. Many thanks. Regards, Donald ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users