[Mapserver-users] .tab files problems again

Hugo Nathaniel Rodrigues hugo at pbh.gov.br
Fri Dec 19 05:58:16 PST 2003


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




More information about the MapServer-users mailing list