[mapserver-users] combine many georeferenced tifs in one layer

Guillaume Sueur guillaume.sueur at neogeo-online.net
Mon Mar 10 13:53:23 EDT 2008


not using the suffix causes mapserver to look for .shp and .qix which is 
the quadtree index file. Using .shp suffix causes mapserver looking for 
foo.shp.qix and not finding it, and not using your foo.qix

Guillaume

Mike Meier a écrit :
> Hi Bart,
> 
> why without .shp suffix? I don't find this hint at the Mapfile reference 
> or in a Trac Ticket.
> 
> Greetings
> Mike
> 
> Bart van den Eijnden (OSGIS) schrieb:
>> You can do the following things to speed up performance:
>>
>> * create a spatial index on your tileindex shapefile with shptree 
>> (also make
>> sure you reference your TILEINDEX in the MAP file without the .shp 
>> suffix)
>>
>> * create overviews in the tiff files using gdaladdo
>>
>> Best regards,
>> Bart
>>
>> -- 
>> Bart van den Eijnden
>> OSGIS, Open Source GIS
>> http://www.osgis.nl
>>
>>
>> --------- Oorspronkelijk bericht --------
>> Van: Janosch.Skrobek at trier.de
>> Naar: mapserver-users at lists.osgeo.org <mapserver-users at lists.osgeo.org>
>> Onderwerp: RE: [mapserver-users] combine many georeferenced tifs in one
>> layer
>> Datum: 10/03/08 10:51
>>
>>  
>>> Thanks a lot Bart and you too Till!
>>>
>>> I had some troubles with the wildcards (*.tif) since the gdaltindex 
>>> binary
>>>     
>> from gdal.org doesn't seem to support them - although it says so in the
>> manual. I googled a bit and found fwtools which have gdaltindex 
>> implemented
>> as well and here the wildcards work.  
>>> But just as I thought I get follow-up problems :)
>>> 1) gdaltindex puts out a warning when processing my tiffs:
>>> Warning 1:TIFFFetNormalTag:ASCII value for tag &quot;copyright&quot;
>>>     
>> contains null byte in value; value incorrectly truncated during 
>> reading due
>> to implementation limitations
>>  
>>> But luckily that doesn't seem to influence the result. Still I would 
>>> like
>>>     
>> to know what it is trying to tell me and google doesn't know :)
>>  
>>> 2) when loading the layer it takes at least 20seconds for mapserver to
>>>     
>> show it. I understand it is because of big amount of data? (50files, 
>> all in
>> all 40MB) Is there any way to speed this up?
>>  
>>> Thank you very much for your help!
>>>
>>> Janosch
>>>
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Gesendet: 
>>> Montag, 10. März 2008 11:49
>>> An: Skrobek, Janosch; mapserver-users at lists.osgeo.org
>>> Betreff: Re: [mapserver-users] combine many georeferenced tifs in one
>>>     
>> layer
>>  
>>> You need to create a tileindex using gdaltindex, and then reference that
>>> tileindex in your layer.
>>>
>>> See the RASTER HOWTO for details, chapter 4:
>>>
>>> http://mapserver.gis.umn.edu/docs/howto/raster_data
>>>
>>> Best regards,
>>> Bart
>>>
>>> -- 
>>> Bart van den Eijnden
>>> OSGIS, Open Source GIS
>>> http://www.osgis.nl
>>>
>>>
>>> --------- Oorspronkelijk bericht --------
>>> Van: Janosch.Skrobek at trier.de
>>> Naar: mapserver-users at lists.osgeo.org
>>>     
>> &lt;mapserver-users at lists.osgeo.org&gt;
>>  
>>> Onderwerp: [mapserver-users] combine many georeferenced tifs in one 
>>> layer
>>> Datum: 10/03/08 08:45
>>>
>>> &gt; Hello everyone!
>>> &gt; &gt; I'm just getting started with Mapserver and have worked my way
>>>     
>> through
>>  
>>> &gt; the tutorial made by Pericles S. Nacionales. Now I have started to
>>>     
>> work
>>  
>>> &gt; on my own mapserver application but am experiencing some 
>>> problems. &gt; &gt; I have a shapefile of my hometown which I use as 
>>> the background
>>>     
>> layer.
>>  
>>> &gt; Now I want to add Raster Data, I have 50 georeferenced tif tiles of
>>>     
>> the
>>  
>>> &gt; area. I could add them in an own layer each but I would rather like
>>>     
>> all
>>  
>>> &gt; these tiffs to be in one layer. Is there a way to tell mapserver to
>>>     
>> use
>>  
>>> &gt; all tiffs in a folder for a layer? If not, what would be the 
>>> best way
>>>     
>> to
>>  
>>> &gt; combine these tiffs into one big image?
>>> &gt; &gt; I hope you can help me out :)
>>> &gt; &gt; Best Regards &gt; Janosch
>>> &gt; &gt;
>>>
>>>     
>> -------------------------------------------------------------------------------- 
>>
>>  
>>> &gt; &gt; Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
>>>     
>> Informationen
>>  
>>> enthalten. &gt; Wenn Sie nicht der richtige Adressat sind oder diese 
>>> E-Mail
>>>     
>> irrtümlich
>>  
>>> erhalten haben, &gt; informieren Sie bitte sofort den Absender und 
>>> vernichten Sie diese
>>>     
>> E-Mail.
>>  
>>> Das unerlaubte &gt; Kopieren sowie die unbefugte Weitergabe dieser 
>>> E-Mail ist nicht
>>>     
>> gestattet.
>>  
>>> Der &gt; rechtsverbindliche elektronische Schriftverkehr mit der 
>>> Stadt Trier
>>>     
>> ist
>>  
>>> über diese &gt; E-Mail-Adresse derzeit noch nicht möglich.
>>> &gt; &gt;
>>>
>>>     
>> -------------------------------------------------------------------------------- 
>>
>>  
>>> &gt; &gt; _______________________________________________
>>> &gt; mapserver-users mailing list
>>> &gt; mapserver-users at lists.osgeo.org
>>> &gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>> &gt; &gt;
>>>
>>>
>>>
>>>
>>>     
>> -------------------------------------------------------------------------------- 
>>
>>  
>>> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte 
>>> Informationen
>>>     
>> enthalten.  
>>> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
>>>     
>> erhalten haben,  
>>> informieren Sie bitte sofort den Absender und vernichten Sie diese 
>>> E-Mail.
>>>     
>> Das unerlaubte  
>>> Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht 
>>> gestattet.
>>>     
>> Der  
>>> rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist
>>>     
>> über diese  
>>> E-Mail-Adresse derzeit noch nicht möglich.
>>>
>>>
>>>     
>> -------------------------------------------------------------------------------- 
>>
>>  
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>>     
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>   
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list