[Mapserver-users] .tab files problems again

Hugo Nathaniel Rodrigues hugo at pbh.gov.br
Fri Dec 19 08:55:19 EST 2003


wow, im newbie, i only solve the blank screen problem, i still didnt get
that deep in mapserver.... im trying to work with symbols and zoom now, if i
get anything i will tell you

cheers
Hugo Rodrigues
Analista/Consultor
SSSS - Prodabel
----- Original Message ----- 
From: "Ballini Yvain" <Ballini.Yvain at seat.it>
To: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
Cc: <Mapserver-users at lists.gis.umn.edu>
Sent: Friday, December 19, 2003 7:30 AM
Subject: R: [Mapserver-users] .tab files problems again


> Hi,
>
> I've got the same problem too with symbols...I would like to read the
arrows of a .tab file in mapserver: the pb is that I can read the position
but not the orientation of the arrows which is contained in the "Style" line
of the .tab (see under).
> when I read my file arrow.tab with ogrinfo it turns me these properties
for the arrow layer:
>
> Layer name: arrow
> Geometry: Point
> Feature Count: 267349
> Extent: (6.682870, 36.681040) - (18.495850, 46.895265) Layer SRS WKT:
> 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]]
> LABEL: String (70.0)
> OGRFeature(arrow):1
>   LABEL (String) =
>   Style = SYMBOL(a:322,c:#4144ae,s:13pt,id:"mapinfo-sym-111.ogr-sym-1")
>   POINT (8.85458500 45.96559000)
>
> OGRFeature(arrow):2
>   LABEL (String) =
>   Style = SYMBOL(a:322,c:#4144ae,s:13pt,id:"mapinfo-sym-111.ogr-sym-1")
>   POINT (8.85458500 45.96559000)
> ........
>
> In the mapfile, I define my arrow layer like this:
>
> LAYER
>   NAME freccie_navtech
>   PROJECTION
>   "proj=longlat"
>   "ellps=intl"
>   "no_defs"
>   END
>   STATUS OFF
>   DATA arrow#chiave_in_piazzale_segesta#arrow#vie3_polyline
>   CONNECTIONTYPE OGR
>   CONNECTION  "c:\mapserver\itasca\data\arrow.tab"
>   STYLEITEM "AUTO"
>   TYPE point
>    CLASS
>     #STYLE
>     #  SYMBOL arrow
>     #  size 20
>       COLOR 88 88 245
>       #ANTIALIAS TRUE
>     #END
>   END
> END
>
> I think I can't recognize the id mapinfo-sym-111 which represents the
arrow...but the position of the default point symbol is right on the map.
Like Daniel Morissette said to me, mapserver seems to ignore the angle value
coming from STYLEITEM AUTO for point symbols.
> Do you know something about these 2 problems (recognizing the right point
symbol and managing the orientation information of this point symbol which
is contained in the variable "a")?
> Thanks a lot !! :)
> Yvain.
>
> -----Messaggio originale-----
> Da: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] Per conto di Chiang Zeliang
> Inviato: venerdì 19 dicembre 2003 5.59
> A: hugo at pbh.gov.br
> Cc: Mapserver-users at lists.gis.umn.edu
> Oggetto: 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
>
>
>
> _______________________________________________
> 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