[Mapserver-users] [Fwd: Re: [maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Not rendering]

Paul Spencer spencer at dmsolutions.ca
Wed Apr 23 12:29:33 PDT 2003


This is a multi-part message in MIME format.
--------------090600020202070109010208
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

anybody know about tiling rasters?

Cheers,

Paul
-- 
Paul Spencer
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca

--------------090600020202070109010208
Content-Type: message/rfc822;
 name="Re: [maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Notrendering"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: [maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Notrendering"

Return-Path: <jnorton at fs.fed.us>
Received: from in2.magma.ca (in2b.magma.ca [206.191.0.220])
	by in2b.magma.ca (Magma's Mail Server) with ESMTP id h3NJL89g030544
	for <pagameba at magma.ca>; Wed, 23 Apr 2003 15:21:08 -0400
Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146])
	by in2.magma.ca (Magma's Mail Server) with ESMTP id h3NJL6WI030510
	for <pagameba at magma.ca>; Wed, 23 Apr 2003 15:21:06 -0400
Received: from sv8.r4.fs.fed.us (sv8.r4.fs.fed.us [166.2.100.8])
	by xcalibur.dmsolutions.ca (8.11.6/8.11.6) with ESMTP id h3NJKxi09900;
	Wed, 23 Apr 2003 15:20:59 -0400
Received: from sv26.r4.fs.fed.us by sv8.r4.fs.fed.us (USDA-FS/OgdenUT/3-02-00)
	 using ESMTP; id NAA120436
	 for multiple recipients; Wed, 23 Apr 2003 13:20:58 -0600
Subject: Re: [maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Not
 rendering
To: spencer at dmsolutions.ca
Cc: Maplab-users <Maplab-users at dmsolutions.ca>,
   maplab-users-admin at dmsolutions.ca, spencer at dmsolutions.ca
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OF1E5F317B.14CC3B5A-ON87256D11.00684198 at r4.fs.fed.us>
From: "John Norton" <jnorton at fs.fed.us>
Date: Wed, 23 Apr 2003 13:20:57 -0600
X-MIMETrack: Serialize by Router on ENTR4B/E/USDAFS(Release 5.0.11  |July 24, 2002) at
 04/23/2003 01:20:58 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Apparently-To: <maplab-users-admin at dmsolutions.ca>
Apparently-To: <Maplab-users at dmsolutions.ca>
Apparently-To: <spencer at dmsolutions.ca>


Yes, it works with the cgi version of mapserver (go here
http://www.fs.fed.us/eng/rsac/baer/jfs.html click on one of the fires). I
did not try the tileindex. Breaking development. After changing to
mapscript 3.6 on Maplab and not using the tileindex, the raster layer is
now rendering, yeah! Here is the layer object that works...
  LAYER
    NAME "Topo"
    STATUS ON
    DATA "l48_topo.tif"
    TYPE RASTER
    #TILEINDEX "lower.shp"
    #TILEITEM "lower"
    TEMPLATE "ttt.html"
    METADATA
      "DESCRIPTION"    "Topo"
    END
  END
Here is the one that doesn't
  LAYER
    NAME "Topo"
    STATUS ON
    DATA "lower"
    TYPE RASTER
    TILEINDEX "lower.shp"
    TILEITEM "location"
    TEMPLATE "ttt.html"
    METADATA
      "DESCRIPTION"    "Elevation/Bathymetry"
    END
  END
I would like to tile this tiff since it is so big. Am I not providing the
correct attributes to the layer for tileindexing? The tile index points to
only one file at the moment
------------------------------------------------------
John Norton
USDA-RSAC
2222 W 2300 S
Salt Lake City, UT 84119
Phone: 801-975-3766
Fax: 801-975-3478
Intranet: fsweb.rsac.fs.fed.us
Internet: www.fs.fed.us/eng/rsac/
------------------------------------------------------


|---------+--------------------------------->
|         |           Paul Spencer          |
|         |           <pagameba at magma.ca>   |
|         |           Sent by:              |
|         |           maplab-users-admin at dms|
|         |           olutions.ca           |
|         |                                 |
|         |                                 |
|         |           04/23/2003 12:29 PM   |
|         |           Please respond to     |
|         |           spencer               |
|         |                                 |
|---------+--------------------------------->
  >-----------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                       |
  |        To:      John Norton <jnorton at fs.fed.us>                                                                       |
  |        cc:      spencer at dmsolutions.ca, Maplab-users <Maplab-users at dmsolutions.ca>                                    |
  |        Subject: Re: [maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Not rendering                   |
  >-----------------------------------------------------------------------------------------------------------------------|




Not that I know of.  The same mapfile works with mapserv cgi?

John Norton wrote:

> I just replaced mapscript 37 with mapscript 36. Should I use a different
> one? Maplab Info shows...
>

>

>

>

>   MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
>   SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT

>   INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

>

>

>
>
>
> Still no raster layer rendered. Is there a file size limit? This tiff is
> about 250MB.
> ------------------------------------------------------
> John Norton
> USDA-RSAC
> 2222 W 2300 S
> Salt Lake City, UT 84119
> Phone: 801-975-3766
> Fax: 801-975-3478
> Intranet: fsweb.rsac.fs.fed.us
> Internet: www.fs.fed.us/eng/rsac/
> ------------------------------------------------------
>
>
> |---------+--------------------------->
> |         |           Paul Spencer    |
> |         |           <pagameba at magma.|
> |         |           ca>             |
> |         |                           |
> |         |           04/23/2003 11:40|
> |         |           AM              |
> |         |           Please respond  |
> |         |           to spencer      |
> |         |                           |
> |---------+--------------------------->
>   >
-----------------------------------------------------------------------------------------------------------------------|

>   |
|
>   |        To:      John Norton <jnorton at fs.fed.us>
|
>   |        cc:      maplab-users at dmsolutions.ca, Mapserver Users
<Mapserver-users at lists.gis.umn.edu>                      |
>   |        Subject: Re: [maplab-users] Tutorial Raster Layer Using
maplab-2.0-dev20030422 Not rendering                   |
>   >
-----------------------------------------------------------------------------------------------------------------------|

>
>
>
>
> John,
>
> a couple of things.  First, maplab is not yet compatible with mapserver
> 37 so I am going to assume (hope) that the rendering issues are related
> to that.
>
> The other questions are more applicable to the mapserver-users mailing
> list so I have copied it on this reply.  I would imagine that Frank
> Warmerdam wrote the piece in the RASTER-HOW-TO since he is the GDAL
> maintainer.
>
> Cheers,
>
> Paul
>
> John Norton wrote:
>
>
>>After installing maplab-2.0-dev20030422 and running the tutorial project
>
> I
>
>>could not get the bath_mapserver.tif layer to render. I noticed that
>>INPUT=TIFF is not compiled into mapscript_37 so I went and built a
>>tileindex shapefile and then that raster layer rendered with the map.
>>Great! But, now I want to build my own map with a RASTER layer. My raster
>>file looks like this:
>>Driver: GTiff/GeoTIFF
>>Size is 11453, 8504
>>Coordinate System is `'
>>Origin = (-5791247.097672,6903854.269482)
>>Pixel Size = (1000.000000,-1000.000000)
>>Metadata:
>>  TIFFTAG_SOFTWARE=Arc/Info
>>Corner Coordinates:
>>Upper Left  (-5791247.098, 6903854.269)
>>Lower Left  (-5791247.098,-1600145.731)
>>Upper Right ( 5661752.902, 6903854.269)
>>Lower Right ( 5661752.902,-1600145.731)
>>Center      (  -64747.098, 2651854.269)
>>Band 1 Block=11453x1 Type=Byte, ColorInterp=Red
>>  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000
>>Band 2 Block=11453x1 Type=Byte, ColorInterp=Green
>>  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000
>>Band 3 Block=11453x1 Type=Byte, ColorInterp=Blue
>>  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000
>>
>>World File is:
>>                1000.00000000000000
>>                   0.00000000000000
>>                   0.00000000000000
>>               -1000.00000000000000
>>            -5791247.09767184130000
>>             6903854.26948160120000
>>
>>I ran gdaltindex on this tiff file and got the tile shape file and
>>installed it into my map file just as I did with the tutorial image. Just
>>one tile (for now). The raster layer does not render at all! My map file
>
> is
>
>>using this for EXTENT -5791247.098 -1600145.731 5661752.902 6903854.269.
>>First thing I check for such problems. Maplab does not generate any
>
> errors.
>
>>This is my first time using INPUT=GDAL with Mapscript. I have used
>
> GeoTiffs
>
>>quite a bit with the mapserv CGI and have had no problems. In fact I
>
> loaded
>
>>some of those .map files into maplab and I could not get the raster
>
> layers
>
>>to render either. I have looked under every rock, I think, on the docs,
>>especially the RASTER-HOW-TO. I would imagine whoever wrote this...
>>
>
>
>
>
>>     Eventually I should add some general information on how to
>
>
>>     preprocess raster data for optimal use in MapServer, and give
>
>
>>     specific information on how to use GDAL's rgb2pct.py, gdaladdo and
>
>
>>     gdal_translate to converting stuff into pseudocolored, tiled GeoTIFF
>
>
>>     files with overviews.
>
>
>
>
>
>>
>>Probably has some incite for this. I am running Windoze 2K with Apache 2.
>>Can anyone make suggestions on:
>>1. Why is my raster layer not rendering?
>>2. How can I break a large GeoTiff with wld file into smaller ones with
>
> wld
>
>>files? Are the wld files required?
>>3. How can I build a colormap into a GeoTiff to improve performance?
>>
>>Cheers
>>------------------------------------------------------
>>John Norton
>>USDA-RSAC
>>2222 W 2300 S
>>Salt Lake City, UT 84119
>>Phone: 801-975-3766
>>Fax: 801-975-3478
>>Intranet: fsweb.rsac.fs.fed.us
>>Internet: www.fs.fed.us/eng/rsac/
>>------------------------------------------------------
>>
>>
>>_______________________________________________
>>Maplab-users mailing list
>>Maplab-users at dmsolutions.ca
>>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
>>
>
>
> --
> Paul Spencer
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
>
>
>
>
>
>
>

--
Paul Spencer
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


_______________________________________________
Maplab-users mailing list
Maplab-users at dmsolutions.ca
http://lists.dmsolutions.ca/mailman/listinfo/maplab-users







--------------090600020202070109010208--





More information about the MapServer-users mailing list