[Fwd: Re: Attempt to open a RASTER layer, but this is only supported after a raster query]
Randy James
rjames57 at YAHOO.COM
Fri Jan 21 14:45:52 PST 2005
I get the same error message when trying to display a local JPG file not a wms
layer. It started after I upgraded to version nightly jan 6, 2005. The layer is
reprojected to albers equal area. I can display TIF files ok its just the JPG
file that has a problem.
my mapfile clips
PROJECTION
"proj=utm"
"ellps=GRS80"
"zone=10"
"north"
"no_defs"
END
and the layer
Layer
NAME "hillshade"
group "hillshade"
Type RASTER
MAXSCALE 1020000
STATUS on
PROCESSING "COLOR_MATCH_THRESHOLD=4"
PROCESSING "DITHER=YES"
TRANSPARENCY 100
TILEINDEX "hillshade"
TILEITEM "LOCATION"
PROJECTION
proj=aea
ellps=GRS80
lat_1=50.0
lat_2=58.5
lat_0=45.0
lon_0=-126.0
x_0=1000000.0
y_0=0.0
end
end
Randy
--- Mathieu Parent <mathieuparent at USERS.SOURCEFORGE.NET> wrote:
> -------- Message original --------
> Sujet: Re: Attempt to open a RASTER layer, but this is only supported
> after a raster query
> Date: Fri, 21 Jan 2005 16:14:53 -0600
> De: Howard Butler <hobu at iastate.edu>
> Pour: Mathieu Parent <mathieuparent at USERS.SOURCEFORGE.NET>
> Références: <smtpd.4b01.41f17b63.d0834.1 at mtaout-c.tc.umn.edu>
>
>
>
> Mattieu,
>
> You need to set a wms_extent in the METADATA to prevent MapServer from
> trying to query for one. See
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 for more detail.
>
> Howard
>
> > Hi all,
> > when i try to show an ogr raster, i got this:
> >
> > msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only
> > supported after a raster query.
> >
> > Best regards
> > Mathieu
> >
> >
> >
> > My .map file:
> >
> > MAP
> > #...
> >
> > LAYER
> > CONNECTION
> >
>
"http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urban&REASPECT=false&REQUEST=map"
> > CONNECTIONTYPE WMS
> > DATA ""
> > GROUP "raster"
> > MAXSCALE 0
> > METADATA
> > "wms_name" "UA_ORTHO_302_01"
> > "wms_format" "jpeg"
> > "wms_server_version" "1.0.0"
> > "wms_group_title" "Imagery"
> > "wms_title" "USGS Urban Color Ortho 2002"
> > END
> > MINSCALE 0
> > NAME "wms_820"
> > PROJECTION
> > "init=epsg:32716"
> > END
> > SIZEUNITS PIXELS
> > STATUS ON
> > TOLERANCE 0
> > TOLERANCEUNITS PIXELS
> > TRANSPARENCY 100
> > TYPE RASTER
> > UNITS METERS
> > END
> >
> > END
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
More information about the MapServer-users
mailing list