Hi David, Thank you about your clues I've resolveed the problem. You have reason, the projection and the units weren't wrong.
El 16 de enero de 2012 09:45, Juan Jesús Cremades Monserrat < [email protected]> escribió: > Hi David, > > Muy BBOX is defined into a JS with OpenLayers. When I create the > "OpenLayers.Map" object, the opcion values are: > > { > minExtent : new OpenLayers.Bounds(-1, -1, 1, 1), > maxResolution : 0.35, > maxZoomLevel : 10, > maxExtent : new OpenLayers.Bounds(-180, -90, 180, 90) > }; > > I tried change the Space Reference System or coomenting the TRANSPARENCY, > MINSCALE & MAXSCALE parameters, but The problem contues. > > Too I was trying change LAYER METADATA vms_extend parameter with degree > values, but nothing. > > I was tried this map file at the gvSIG DEsktop, and it works... But I don' > konw what,s the problem with the server. > > Cheers > > 2012/1/13 Fawcett, David (MPCA) <[email protected]> > > Juan, **** >> >> ** ** >> >> The projection block at the map level specifies 4326 as the spatial >> reference system, but the units of your extent look like they are in >> meters, not decimal degrees. This may be involved in the issue, or maybe >> not, but it would screw up a regular MapServer CGI request if you don’t >> specify a bbox. **** >> >> ** ** >> >> The use of a ‘.’ Character in a layer name may be valid in MapServer and >> the OGC WMS spec, but it looks funky to me. Again, probably not the >> problem.**** >> >> ** ** >> >> I would simplify your map file by commenting out the MINSCALE, MAXSCALE, >> and TRANSPARENCY lines. I am guessing that one of these is causing your >> problem.**** >> >> ** ** >> >> David.**** >> >> ** ** >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Juan Jesús >> Cremades Monserrat >> *Sent:* Friday, January 13, 2012 5:50 AM >> *To:* [email protected] >> *Subject:* [mapserver-users] Shapefiles not rendered**** >> >> ** ** >> >> Hi,**** >> >> ** ** >> >> I want execute the getMap method with an URL like this:**** >> >> ** ** >> >> >> http://localhost:9000/cgi-bin/mapserv.exe?LAYERS=COMACOM.SHP&FORMAT=image/png&TRANSPARENT=true&MAP=/ms4w/apps/demo-cv/demoCV.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=551&HEIGHT=356 >> **** >> >> ** ** >> >> But the result is always a white page. Where the error may be? My >> MapServer is the MS4W. Thanks**** >> >> ** ** >> >> My MapFile is this:**** >> >> ** ** >> >> MAP**** >> >> NAME map_generated_by_gvsig**** >> >> EXTENT 626679.4375 4191039.75 797868.9375 4519396.0**** >> >> SYMBOLSET "demoCV.sym"**** >> >> FONTSET "fonts.txt"**** >> >> LEGEND**** >> >> IMAGECOLOR -1 -1 -1**** >> >> LABEL**** >> >> FONT "vera"**** >> >> ANGLE FOLLOW**** >> >> COLOR 0 0 0**** >> >> ENCODING "UTF-8"**** >> >> TYPE truetype**** >> >> SIZE 8**** >> >> END**** >> >> STATUS ON**** >> >> TRANSPARENT ON**** >> >> END**** >> >> ** ** >> >> SIZE 800 800**** >> >> OUTPUTFORMAT**** >> >> NAME PNG24**** >> >> DRIVER AGG/PNG**** >> >> IMAGEMODE RGB**** >> >> END**** >> >> ** ** >> >> WEB**** >> >> METADATA**** >> >> "wms_encoding" "UTF-8"**** >> >> "wms_title" "Mapserver WMS"**** >> >> "wms_abstract" ""**** >> >> "wms_srs" " EPSG:4326"**** >> >> "wms_onlineresource" " >> http://localhost:9000/cgi-bin/mapserv.exe?map=E%3A%5Cms4w%5Capps%5Cdemo-cv%5CdemoCV.map >> "**** >> >> "ows_enable_request" "*"**** >> >> "wms_feature_info_mime_type" "text/html"**** >> >> END**** >> >> END**** >> >> PROJECTION**** >> >> "init=epsg:4326"**** >> >> END**** >> >> LAYER**** >> >> NAME "COMACOM.SHP"**** >> >> STATUS ON**** >> >> DUMP true**** >> >> TEMPLATE "templates/provincias.html"**** >> >> TYPE POLYGON**** >> >> DATA "E:\COMACOM.SHP"**** >> >> MAXSCALE -1.0**** >> >> MINSCALE -1.0**** >> >> TRANSPARENCY 100**** >> >> SIZEUNITS pixels**** >> >> PROJECTION**** >> >> "init=epsg:4326"**** >> >> END**** >> >> CLASS**** >> >> STYLE **** >> >> COLOR 104 108 2**** >> >> OUTLINECOLOR 72 75 1**** >> >> WIDTH 1**** >> >> END**** >> >> NAME "default"**** >> >> END**** >> >> METADATA**** >> >> "wms_title" "COMACOM.SHP"**** >> >> "wms_abstract" "generated by gvSIG"**** >> >> "wms_extent" "626679.4375 4191039.75 797868.9375 4519379.0"**** >> >> "gml_include_items" "all"**** >> >> "ows_enable_request" "*"**** >> >> END**** >> >> END # Layer**** >> >> END # Map File**** >> >> ** ** >> > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
