Robert,

You have to put al index shapefiles in the path you defined in the map
file as shape path, like "../data", which is relatively to your map
file. Use one shape path. This is the path where you put all other
normal shapefiles in, you can test first if your app and your map file
finds a "normal" shape file instead of an index shape file.
Each index shape file you have myindex1.shp, myindex2.shp etc, has a
shape file and a dbf file. In the dbf file you have a field, in your
case, called "Location" (The TILEITEM definition in your layer file). In
that field you have to put the full path and name of each of your file,
e.g. G:\gisdata\yourdir\tif\picture1.TIF. (In windows these are
backslashes in the shape file!, in the mapfile you use slashes! ) Each
picture has its own record and points to the picture path\name.ext. You
can check the content of the dbf-file with a gis tool that can read
shapes, or open the dbf with a viewer, like excel.

Succes!

Andre  

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Buchholz, Robert
Verzonden: donderdag 8 november 2007 16:28
Aan: Jeff McKenna
CC: [EMAIL PROTECTED]
Onderwerp: AW: [ms4w-users] gdal_step_by_step

 
Hello Jeff, hello List,

first important steps are done (Thanks Jeff!)
A rectangular shapefile (myindex.shp) is created by doing as follows
1. commandline:
 C:/ms4w/setenv.bat
(2. commandline:
 C:\>gdalinfo --formats)
3. commandline:
for mrsid
 gdaltindex C:\ms4w\apps\chameleon\samples\data\sid\myindex.shp
G:\gisdata\...\mrsid\*.sid
or for tif:
 gdaltindex C:\ms4w\apps\chameleon\samples\data\tif\myindex.shp
G:\gisdata\...\tif\*.tif

This created the myindex.shp files and I can view them with desktop GIS
(spatially referenced rectangles). 
I have in G:/ more than 1000 referenced images -next to each other-
covering the whole research area.

My application do not show the layer, when I write at the mapfile:
Map
                Extent...
                ...
                SHAPEPATH "../data"
                SHAPEPATH "G:/gisdata/.../tif"
                ...
Layer
        Group "catalog"
        Name Aerialimages
        Type Raster
        Status OFF
        TILEINDEX "./tif/myindex.shp"
        TILEITEM "Location"
        MINSCALE 5000
        MAXSCALE 200000
...

-do the created file by gdal have to be at the same folder as the
rasterdata?
-can I set two SHAPEPATH in the mapfile? 
-might be a problem of too many layers?
-the drive G:/ is not available to the mapserver? (I tried unsuccessful
with some .shp data)

Any ideas and tips are welcome,
Robert

_______________________________________________
ms4w-users mailing list
[EMAIL PROTECTED]
http://lists.maptools.org/mailman/listinfo/ms4w-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to