[Mapserver-users] (Fwd) about tileindex shp

=?gb2312?q?Chen=20Fu?= novalet at yahoo.com.cn
Tue Mar 18 20:23:10 EST 2003


Vincent Schut:

You are Right! the 'status default' works, but i don't
know what's the difference from the manual of
mapserver. I think this document should explain it
more clearly. 
Thank you!!

 --- Vincent Schut <schut at sarvision.com> µÄÕýÎÄ£º>
Chen,
> 
> did you try this already with a map file with *only*
> the tiled raster layer?
> My first guess is that you should have 'STATUS
> DEFAULT' instead of 'STATUS ON' 
> in you layer object. Mapserver shows some - to
> beginners - unexpected 
> behaviour concerning the STATUS option... Kind of
> mapserver-users-initiation 
> rite, I think. You got to pass it sometime when you
> start working with 
> mapserver.
> Please try changing on to default. If nothing
> happens, post again.
> 
> BTW I hope this is just a test of you, 'cause
> creating a tiled layer with only 
> one tile does not make really much sense in terms of
> performance gain...
> 
> Regards,
> Vincent Schut.
> 
> On Tuesday 18 March 2003 06:33, Chen Fu wrote:
> > Hi!
> >
> > To test the tileindex shp, i build a simpleset shp
> > file of only one tif(and its wld) involved, and it
> is
> > in the same directory with generated shp.
> >
> > next, i use shp2img, the map file is called
> > shp2img.map. It works nice, and i have an output
> > shp2img.gif.
> >
> > then, a map called mapserv.map is used in web
> > environment. It is almost same as shp2img.map. I
> add
> > another vector layer in it to test whether my
> > shapepath is right. The result is mapserv.gif. we
> can
> > see the vector layer is visible and render
> correctly,
> > but the tileshape is invisible.
> >
> > below is the version of my system. and my os is
> win2k,
> > i setup mapserve with apache
> >
> >
>
===========================================================================
> >==== E:\mapserver>shp2img -v
> > MapServer version 3.6.4 OUTPUT=GIF OUTPUT=PNG
> > OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=P
> > ROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
> > SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR I
> > NPUT=GDAL INPUT=SHAPEFILE
> >
> > E:\mapserver>mapserv -v
> > MapServer version 3.6.4 OUTPUT=GIF OUTPUT=PNG
> > OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=P
> > ROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
> > SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR I
> > NPUT=GDAL INPUT=SHAPEFILE
> >
>
===========================================================================
> >=====
> >
> > I pack these files into a zip file with this mail.
> >
> > You may exam my tileindex shp. I wonder whether it
> is
> > a well format one (but i generate it by gdaltindex
> and
> > you see it fit shp2img)
> > Can you see something wrong in my mapserv.map? I
> don't
> > have the ability to trace the mapserv's source
> code. I
> > guess mapserv may report some warning if it can't
> > understand my map file. But where can i see these
> > warning? Any setting make mapserv.exe to generate
> a
> > log file?
> >
> > Hope you can help me!
> >
> >  --- woodbri at swoodbridge.com µÄÕýÎÄ£º> The
> > relationship between tileindex location, the
> >
> > > location string,
> > > shapepath and data  and whether you specify
> absolute
> > > paths or
> > > relative paths have been a very confusing to me
> in
> > > the past. I know a
> > > bunch of work has been done to make them work in
> a
> > > more rational way
> > > in 3.7.
> > >
> > > In the past, I have just played with them til I
> was
> > > able to get
> > > something to work. Maybe someone has a better
> > > explanation.
> > >
> > > What version of Mapserver are you using?
> > >
> > > ------- Forwarded message follows -------
> > > Date sent:      	Fri, 14 Mar 2003 13:27:59 +0800
> > > (CST)
> > > From:           	Chen Fu <novalet at yahoo.com.cn>
> > > Subject:        	about tileindex shp
> > > To:             	woodbri at swoodbridge.com
> > >
> > > Hi!
> > > i try to use tileindex shp according to
> >
> >
>
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?search=BathymetryHowTo
> >
> > > As a test, shp2img can generate the right gif
> > > according to the simple map file. Then i use it
> on
> > > the
> > > web, the tileindex layer doesn't work, but the
> other
> > > vector/raster layers work fine. I check the
> setting
> > > to
> > > confirm it almost the same as the map file i
> tested
> > > in
> > > shp2img, except an additional TEMPLATE
> attribute.
> > > Still not any reponse, just like the layer is
> not
> > > there.
> > >
> > > A question i wanna ask is how to check the
> warning
> > > or
> > > error raised by mapserv.exe in cgi environment?
> if
> > > mispell the shp name in map, "Unable to access
> file"
> > > will shown while i use shp2img. But in cgi mode,
> i
> > > can't see anything if a DATA attribute is
> > > deliberately
> > > changed to wrong name. the layer will just not
> be
> > > shown. (but when SHAPEPATH is wrong, the mapserv
> > > will
> > > stop). I wonder whether mapserv complain
> something i
> > > cant see.
> > >
> > > Another question: it seems the layer dont use
> DATA
> > > attribute. TILEINDEX take its place. But seems
> the
> > > TILEINDEX can't accept the file with directory
> part
> > > like "globe/dem.shp", only "dem.shp" is
> acceptable
> > > (test in shp2img). Is it right? so we have to
> put
> > > the
> > > tileindex shp in the SHAPEPATH directly? (I just
> do
> > > like that, but don't know why mapserv is still
> mad
> > > at
> > > me :< )
> > >
> > > any idea and suggestion?
> > >
> > >
> > > =====
> > > Remote Scensing Satellite Ground Station
> > > Chinese Academy of Science
> >
> >
>
_________________________________________________________
> >
> > > Do You Yahoo!?
> > > ÃÀÅ®ÃǵÄÃØÃÜÎäÆ÷£¡
> >
> >
>
http://yahoo.eachnet.com/fu/co/rd.php?http://pages.eachnet.com/st/page
> >
> > > /women/women.htm
> > >
> > > ------- End of forwarded message -------
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list
> 
=== message truncated === 

=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science

_________________________________________________________
Do You Yahoo!? 
¸ü¶à¾ªÏ²£¬Í¬Ñù¾«²Ê£¬NetVista A30 ÈÈÂô
http://ad.cn.doubleclick.net/clk;5313999;7930402;p?http://www.ibm.com/cn/promotion/pc/netvista_a30/index.shtml



More information about the mapserver-users mailing list