[ms4w-users] gdal_step_by_step

Andre van Atten AvanAtten at reisinformatiegroep.nl
Mon Nov 12 10:37:55 EST 2007


Robert,

In my case it works fine. I have my index shape on drive C and the tif files on drive D. Is your drive G a "mapped" networkdrive, or just another harddisk in the same machine? 

Andre 

-----Oorspronkelijk bericht-----
Van: Buchholz, Robert [mailto:Robert.Buchholz at LUA.Brandenburg.de] 
Verzonden: maandag 12 november 2007 13:04
Aan: Andre van Atten
CC: ms4w-users at lists.maptools.org
Onderwerp: AW: [ms4w-users] gdal_step_by_step


 Hello Andre, hello List,

OK, my problem is:
1.
a) I try to use centralized data drive (G:/ -more than 1000 rasters-) where I have read only modus.
b) I have some data (private) on C:/ where my application -Chameleon- works good (.shp, rasters, postgis). 
I can not bring both datasources together on one drive (C:-> Diskspace, G:-> no right to put files-indexfile-).
Nevertheless the indexfile has the location where to find the data the system is not able to find and display them because they have to be at the same folder as the indexfile. Are there any more abilities to use the gdal in my case?

2. MS4W (Chameleon) is displaying all data from "../data" and additionally from "C:/something different from /ms4w/apps/chameleon/samples/data/".
Just by (Mapfile):
...LAYER
...	TILEINDEX "C:/gisdata/.../myindex123.shp"
...
To me it looks like as long as you use C:/ it works and on other drives it fails. Maybe the reason might be the firewall? Or Windows 2000?
Can somebody confirm this?  

Merci,
Robert

-----Ursprüngliche Nachricht-----
Von: Andre van Atten [mailto:AvanAtten at reisinformatiegroep.nl] 
Gesendet: Montag, 12. November 2007 08:57
An: Buchholz, Robert
Cc: ms4w-users at lists.maptools.org
Betreff: RE: [ms4w-users] gdal_step_by_step

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: ms4w-users-bounces at lists.maptools.org
[mailto:ms4w-users-bounces at lists.maptools.org] Namens Buchholz, Robert
Verzonden: donderdag 8 november 2007 16:28
Aan: Jeff McKenna
CC: ms4w-users at lists.maptools.org
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
ms4w-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users



More information about the ms4w-users mailing list