[Mapserver-users] .tab files problems again

Hugo Nathaniel Rodrigues hugo at pbh.gov.br
Mon Dec 22 11:25:50 EST 2003


if you send me your mapinfo files (one example of then), and your .map
mapserver file i can correct it for you.

cheers
Hugo Rodrigues
Analista/Consultor
SSSS - Prodabel
----- Original Message ----- 
From: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
To: <hugo at pbh.gov.br>
Cc: <Mapserver-users at lists.gis.umn.edu>
Sent: Sunday, December 21, 2003 11:07 PM
Subject: Re: [Mapserver-users] .tab files problems again


> Hi,
>
>
> I have tried changing the extent of the map many times but it still shows
a
> blank screen and there is more than one layer that has been showing the
same
> problem.
>
>
> From,
> Zeliang
>
> This is the map file I use. Hope you can help me with this. Thanks.
>
> NAME Maps
> STATUS on
> SIZE 640 480
> EXTENT -7745844.295970 -9997964.943240 8745844.295970 9997964.943240
> UNITS meters
> IMAGECOLOR 204 255 255
> FONTSET   ../../Fonts/fonts.list
> DATAPATTERN "*.*"
> SHAPEPATH "C:\Inetpub\wwwroot\\Data"
>
> PROJECTION
>    "proj=utm"
>    "ellps=WGS84"
>    "datum=WGS84"
>    "zone=48"
> END
>
> WEB
> TEMPLATE "vtrack.html"
> IMAGEPATH "\Inetpub\wwwroot\Tmp\"
> IMAGEURL "/Tmp/"
> EMPTY "/Empty.html"
> #ERROR "/Error.html"
> END
>
> SCALEBAR
> COLOR 0 0 80
> IMAGECOLOR 204 204 204
> INTERVALS 3
> STATUS on
> STYLE 1
> TRANSPARENT on
> UNITS kilometers
> END
>
> LEGEND
>   STATUS ON
>   KEYSIZE 18 15
>   IMAGECOLOR 255 255 255
>   LABEL
>     FONT arialbd
>     TYPE truetype
>     SIZE  12
>     COLOR 0 0 89
>     POSITION ur
>   END
>   STATUS on
>   TEMPLATE "../../Legend.html"
> END
>
> LAYER
>   NAME 'Mainroads'
>   TYPE line
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "C:/Inetpub/wwwroot/Data/Msia_Mainroads.TAB"
>   STYLEITEM "AUTO"
>   MAXSCALE 5000000.0
>   CLASS
>     NAME 'Mainroads'
>   END
>   PROJECTION
>     "AUTO"
>   END
> END
>
>
> >From: "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br>
> >To: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
> >CC: <mapserver-users at lists.gis.umn.edu>
> >Subject: Re: [Mapserver-users] .tab files problems again
> >Date: Fri, 19 Dec 2003 11:58:16 -0200
> >
> >but what is exact the problem? blank screen?
> >how start your map file? (extent, web paths, etc)
> >
> >cheers
> >Hugo Rodrigues
> >Analista/Consultor
> >SSSS - Prodabel
> >----- Original Message -----
> >From: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
> >To: <hugo at pbh.gov.br>
> >Cc: <Mapserver-users at lists.gis.umn.edu>
> >Sent: Friday, December 19, 2003 2:59 AM
> >Subject: Re: [Mapserver-users] .tab files problems again
> >
> >
> > > Hi,
> > >
> > > I have a similar problem and i have checked my .tab file with ogrinfo.
> >Can
> > > you help me and determine what type and coding should i use for this
> >.tab
> > > file?
> > >
> > > thanks
> > >
> > > From,
> > > Zeliang
> > >
> > > This is what i've got using ogrinfo:
> > >
> > >
> > > Layer name: Msia_Mainroads
> > > Geometry: Line String
> > > Feature Count: 3662
> > > Extent: (-85297.812205, 102267.713704) - (2090681.069111,
829390.210029)
> > > Layer SRS WKT:
> > > PROJCS["unnamed",
> > >        GEOGCS["unnamed",
> > >                DATUM["WGS_1984",
> > >                        SPHEROID["WGS 84",6378137,298.257223563],
> > >                        TOWGS84[0,0,0,0,0,0,0]],
> > >                PRIMEM["Greenwich",0]
> > >                UNIT["degree",0.0174532925199433]],
> > >        PROJECTION["Transverse_Mercator"],
> > >        PARAMETER["latitude_of_origin",0],
> > >        PARAMETER["central_meridian",105],
> > >        PARAMETER["scale_factor",0.9996],
> > >        PARAMETER["false_easting",500000],
> > >        PARAMETER["false_northing",0],
> > >        UNIT["Meter",1.0]]
> > > Rd_name: String (50.0)
> > > Rd_No: String (50.0)
> > > Type: String (50.0)
> > >
> > > This is the coding i am using for this layer:
> > >
> > > LAYER
> > >   NAME 'Msia_Mainroads'
> > >   TYPE line
> > >   STATUS DEFAULT
> > >   CONNECTIONTYPE OGR
> > >   CONNECTION
"C:\Inetpub\wwwroot\VesselTracking\Data\Msia_Mainroads.TAB"
> > >   STYLEITEM "AUTO"
> > >   MAXSCALE 5000000.0
> > >   CLASS
> > >     NAME 'Msia_Mainroads'
> > >   END
> > >   PROJECTION
> > >     "AUTO"
> > >   END
> > > END # Layer
> > >
> > >
> > >
> > > >From: "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br>
> > > >To: "Riccardo Stuper" <rik_stpr at yahoo.it>
> > > >CC: <mapserver-users at lists.gis.umn.edu>
> > > >Subject: Re: [Mapserver-users] .tab files problems again
> > > >Date: Thu, 18 Dec 2003 15:51:49 -0200
> > > >
> > > >Riccardo,
> > > >i think i found your problem: you didnt create an alias, let me
> >explain:
> > > >
> > > >to use the folder
> > > >   IMAGEPATH "../ms_tmp"
> > > >   IMAGEURL "/maplab-2.1-RC1/ms_tmp"
> > > >in the WEB section of your MAP file, you need to have it in your
> >httpd.conf
> > > >of your apache configuration, like this:
> > > >
> > > >     Alias /gmap/   "C:/Arquivos de programas/Apache
> > > >Group/Apache/htdocs/gmap/"
> > > >     Alias /ms_tmp/ "C:/tmp/ms_tmp/"
> > > >
> > > >and you need to have this folders... in my case, i tried your map
file,
> >and
> > > >get one little box with red X (like one no found jpg in the page),
> >then,
> >i
> > > >tried the same map file using my configuration of WEB section:
> > > >
> > > >   IMAGEPATH "/tmp/ms_tmp/"
> > > >   IMAGEURL "/ms_tmp/"
> > > >
> > > >and then worked well (now i have that blue map), the other thing that
> >you
> > > >need its a php file like the one im sending to you (now, if you can
do
> >it
> > > >without php file, i dont know, because i just started).
> > > >
> > > >cheers
> > > >Hugo Rodrigues
> > > >Analista/Consultor
> > > >SSSS - Prodabel
> > > >   ----- Original Message -----
> > > >   From: Riccardo Stuper
> > > >   To: Hugo Nathaniel Rodrigues
> > > >   Sent: Thursday, December 18, 2003 2:54 PM
> > > >   Subject: Re: [Mapserver-users] .tab files problems again
> > > >
> > > >
> > > >   Hugo,
> > > >   here are my files. There is only one layer, very simple. I add one
> >of
> > > >the html file I've tried to use, just in case there would be
something
> > > >horribly wrong in it...
> > > >   Thank you very much for your help.
> > > >
> > > >   cheers
> > > >   RS
> > > >
> > > >   Hugo Nathaniel Rodrigues <hugo at pbh.gov.br> wrote:
> > > >     send me your files (mapserver .map and all the mapinfo files) i
> >will
> > > >see if i can run here.
> > > >
> > > >     cheers
> > > >     Hugo Rodrigues
> > > >     Analista/Consultor
> > > >     SSSS - Prodabel
> > > >       ----- Original Message -----
> > > >       From: Riccardo Stuper
> > > >       To: Hugo Nathaniel Rodrigues
> > > >       Cc: mapserver-users at lists.gis.umn.edu
> > > >       Sent: Thursday, December 18, 2003 8:26 AM
> > > >       Subject: Re: [Mapserver-users] .tab files problems again
> > > >
> > > >
> > > >       Hugo,
> > > >
> > > >       thanx for answer. I've tried ogrinfo, it tells "Open of
> > > >`Friuli.tab'... successful" then all the informations. (I notice I
need
> >to
> > > >put the "ogrinfo.exe" in the same folder of the files to analyze).
> > > >       I put the extent in my map file, nothing. White map, no ref,
no
> > > >scale as always. Neither imagecolor helps.
> > > >       Maybe it's something else w/ogr connection (but ogrinfo tells
> >it's
> > > >ok), some dll missing, Apache configuration, I followed the
> >instructions
> > > >and all seems ok, the demo was working.
> > > >       I cannot understand why I could open the map w/MapLap-MapEdit
> >tool
> > > >and no way else, but I cannot use always this...
> > > >       I don't know what to do. Thx anyway.
> > > >
> > > >       cheers
> > > >       R.S.
> > > >       Hugo Nathaniel Rodrigues <hugo at pbh.gov.br> wrote:
> > > >         riccardo,
> > > >
> > > >         first of all, go to DOS prompt and type ogrinfo friuli.tab
(if
> >you
> > > >dont have the ogrinfo file, download it in
> > > >ftp://ftp.remotesensing.org/pub/gdal/openev/ (you need to download
any
> >FW
> > > >or linux version, but not the win32 exe version, because the
> >installation
> > > >dont have the ogrinfo file), then unzip it and take the ogrinfo file
> >(when
> > > >you run the ogrinfo file, this will show you some dll files that is
not
> >in
> > > >your windows dll folder, you will found it in the zip file, and can
put
> >it
> > > >in windows/system32, or system, depends of the version of your
windows,
> >but
> > > >take care to not copy this if you have other version installed).
> > > >
> > > >         with the ogrinfo working, and the information you get
> >(ogrinfo -al
> > > >-ro friuli.tab), get the information of EXTENDED and put it in your
map
> > > >file (take of the one you have).
> > > >
> > > >         maybe this works, if not, try to put imagecolor in your map
> >file
> > > >start section (imagecolor 255 255 255).
> > > >
> > > >         i wish this can help you.
> > > >
> > > >         cheers
> > > >         Hugo Rodrigues
> > > >         Analista/Consultor
> > > >         SSSS - Prodabel
> > > >
> > > >
> > > >
> > > >
> > >
> >
>--------------------------------------------------------------------------
> > > >       Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati,
> > > >l'antivirus, il filtro Anti-spam
> > > >
> > > >
> > > >
> > > >
> > >
> >
>---------------------------------------------------------------------------
> >---
> > > >   Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati,
> > > >l'antivirus, il filtro Anti-spam
> > > ><< mapabasico.zip >>
> > >
> > > _________________________________________________________________
> > > Using a handphone prepaid card? Reload your credit online!
> > > http://www.msn.com.my/reloadredir/default.asp
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at lists.gis.umn.edu
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
> _________________________________________________________________
> Download ringtones, logos and picture messages from MSN Malaysia
> http://www.msn.com.my/mobile/ringtones/default.asp




More information about the mapserver-users mailing list