Fw: [Mapserver-users] Empty screen with .TAB file

Denis Louvegnies denis at louvegnies.com
Wed Dec 17 02:05:43 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_005E_01C3C48D.B72BA6F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit


----- Original Message ----- 
From: "Ballini Yvain" <Ballini.Yvain at seat.it>
To: "Denis Louvegnies" <denis at louvegnies.com>
Sent: Wednesday, December 17, 2003 10:24 AM
Subject: R: [Mapserver-users] Empty screen with .TAB file


I've sent you my map file (demo.map).
But I've seen in your .sym file that you haven'got the definition of
mapinfo-sym-111 which is used in my tab file
(id:"mapinfo-sym-111.ogr-sym-1"), this is probably the cause of my
problem...
If you have ogrinfo on your computer, you should try tye command "ogrinfo
filename.tab filename" to see how is made your tab file (see under for the
mine).
If you've got another idea don't hesitate to tell me because I'm blocked
with that problem now... :(
Regards :)
Yvain.

-----Messaggio originale-----
Da: Denis Louvegnies [mailto:denis at louvegnies.com]
Inviato: mercoledì 17 dicembre 2003 10.16
A: Ballini Yvain
Oggetto: Re: [Mapserver-users] Empty screen with .TAB file

Hello Yvain,

Here is the file. Let me know if this help.
What do you think I should do? Could you please send me your map file?

Thanks,

Denis


----- Original Message -----
From: "Ballini Yvain" <Ballini.Yvain at seat.it>
To: "Denis Louvegnies" <denis at louvegnies.com>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Wednesday, December 17, 2003 10:10 AM
Subject: R: [Mapserver-users] Empty screen with .TAB file



Hi Denis,

I've seen your problem, I get a white map too with my tab file, but I don't
think if it's due to the same thing.
I've seen you're reading the symbolset in the file symbols_mapinfo.sym and
when I try to read my file arrow.tab with ogrinfo it turns me these
properties:

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)

Like I said yesterday, I succeed in reading the info about the position
(that mean the POINT coordinates), but I can't read the symbol (these are
arrows  oriented symbol): if I put TYPE POINT in my mapfile, it turns me a
non oriented symbol POINT...
Could you send me your file symbols_mapinfo.sym or give me some additional
info about it?
Thanks.
Yvain.


-----Messaggio originale-----
Da: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] Per conto di Denis
Louvegnies
Inviato: mercoledì 17 dicembre 2003 9.49
A: Daniel Morissette
Cc: Hugo Nathaniel Rodrigues; mapserver-users at lists.gis.umn.edu
Oggetto: Re: [Mapserver-users] Empty screen with .TAB file

Hi Daniel,

I have tested using php_mapscript_35.dll.
It seems to be better because I don't get an error but now I get a Empty
screen....The generated image in empty...

Here is the map file:

NAME FIRSTMAP
SIZE 400 400
STATUS ON
#SYMBOLSET ../symbols/symbols.sym
SYMBOLSET "C:\tmp\ms_tmp\font\symbols_mapinfo.sym"
EXTENT -5696501 1923039 5696501 11022882 UNITS METERS


WEB
  IMAGEPATH "/tmp/ms_tmp/"
  IMAGEURL "c:/tmp/ms_tmp/"

 LOG "/tmp/gmap.log"
END

LAYER
   NAME test
   TYPE POLYGON
   STATUS ON
   CONNECTIONTYPE OGR
   CONNECTION   ./test.TAB

   CLASS
   END
END
END


Any idea?

Many thanks,

Denis






----- Original Message -----
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "Denis Louvegnies" <denis at louvegnies.com>
Cc: "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br>;
<mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, December 16, 2003 11:53 PM
Subject: Re: [Mapserver-users] Empty screen with .tab file?


> Denis Louvegnies wrote:
> > Hi Daniel,
> >
> > Hugo and I have the same problem.
> > For me even with the absolute path it still doesn't work.
> >
> > I wounder if any one could open a MapInfo file with
php_mapscript41.dll....
> >
>
> Unfortunately I'm not setup to test on Windows so I can't help. Perhaps
> you can file a bug with all the details and your data file and if/when
> another developer on Windows has time to test this then they'll get back
> to you.
>
> BTW, did you try loading the same file with another DLL for version 4.0
> or 3.6?
>
> -- 
> ------------------------------------------------------------
>   Daniel Morissette               morissette at dmsolutions.ca
>   DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
>
> _______________________________________________
> 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





------=_NextPart_000_005E_01C3C48D.B72BA6F0
Content-Type: application/octet-stream;
	name="demo.map"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="demo.map"

#
# Start of map file
#
NAME DEV
STATUS ON
SIZE 430 380
#SIZE 150 150
EXTENT 510350 5035250 510950 5035950
#EXTENT 510350 5035550 510750 5035950
#EXTENT 515050 5035050 515450 5035450 #via Borgospesso
#EXTENT 7.68 45.05 7.7 45.07
UNITS METERS

#SIZE 1000 1000

SYMBOL
      NAME "dashed_line"
      TYPE ellipse
      POINTS 2 2 END
      FILLED TRUE
      STYLE 2 5 END
END

SYMBOL
  NAME "arrow"
  TYPE truetype
  FONT arial
  CHARACTER "O"#"                         ->                             =
 "
  POSITION CC
  GAP -10
END

DEBUG TRUE
SHAPEPATH "data"
IMAGECOLOR 189 198 206


PROJECTION
 =20
  "proj=3Dutm"
  "ellps=3DWGS84"
  "datum=3DWGS84"
  "zone=3D32"
  "north"
  "no_defs"
 =20
  =20
END

#OUTPUTFORMAT
#  NAME gif
#  DRIVER "GD/GIF"
#  MIMETYPE "image/gif"
#  IMAGEMODE PC256
#  EXTENSION "gif"
#END

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
END

#OUTPUTFORMAT
#  NAME jpeg
#  DRIVER "GD/JPEG"
#  MIMETYPE "image/jpeg"
#  IMAGEMODE RGB
#  EXTENSION "jpg"
#END

#OUTPUTFORMAT
#  NAME wbmp
#  DRIVER "GD/WBMP"
#  MIMETYPE "image/wbmp"
#  IMAGEMODE PC256
#  EXTENSION "wbmp"
#END

#OUTPUTFORMAT
#  NAME swf
#  DRIVER "SWF"
#  MIMETYPE "application/x-shockwave-flash"
#  EXTENSION "swf"
#  IMAGEMODE PC256
#  FORMATOPTION "OUTPUT_MOVIE=3DSINGLE"
#END

#IMAGETYPE SWF
IMAGETYPE PNG
#IMAGETYPE PDF


WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  #MINSCALE 1000
  #MAXSCALE 1550000
  IMAGEPATH "set in demo_init.html"
  IMAGEURL "set in demo_init.html"
END
#FONTSET "c:\windows\fonts\fonts.txt"
FONTSET "C:\WINDOWS\Fonts\Wingdng3.ttf"

#REFERENCE
#  IMAGE graphics/reference.gif
#  EXTENT 393234.393701263 5205405.16440722 495769.579718949 =
5307959.02579127
#  SIZE 120 120
#  STATUS ON
#  COLOR -1 -1 -1
#  OUTLINECOLOR 255 0 0
#END

SYMBOL
    NAME 'carto_line'
    TYPE CARTOLINE
    #Linecap - ROUND, SQUARE, TRIANGLE, BUTT - default BUTT
    LINECAP BUTT
    #Linejoin - ROUND, BEVEL, MITER - default NONE
    #LINEJOIN BEVEL
    #LINEJOINMAXSIZE 5
END

SYMBOL
    NAME 'cline'
    TYPE ellipse
    POINTS=20
     1 1
    END
END

#LAYER
#     NAME "grid"
#     TYPE line
#     STATUS default

#     PROJECTION
#               "proj=3Dlatlong"
#               "ellps=3DWGS84"
#     END

#     GRID
#         MINARCS 2
#         MAXARCS 12
#         LABELFORMAT "%5.5f"
#     END

#     CLASS
#          SYMBOL "dashed_line"
#          COLOR 170 170 200
#          LABEL
#               TYPE BITMAP
#               SIZE SMALL
#               COLOR 100 100 230
#               SHADOWCOLOR 100 100 130
#          END
#     END
#END


LAYER
  NAME parchi_navtech
  STATUS OFF
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  DATA parkcity_region
  TYPE POLYGON
  LABELITEM "NAME"
   CLASS
    LABEL
      #ANGLE AUTO
      #BUFFER 1
      #PARTIALS FALSE
      #FORCE TRUE
      FONT "verdana"
      ANTIALIAS TRUE
      POSITION AUTO
      SIZE 5
      TYPE TRUETYPE
      COLOR 255 255 255
    END
    STYLE
      #COLOR 66 132 0
      COLOR 77 199 63
      ANTIALIAS TRUE
    END
  END
END # parchi navtech

LAYER
  NAME aree_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA landuseA_region
  TYPE POLYGON
  LABELITEM "NAME"
   CLASS
    LABEL
      #ANGLE AUTO
      #BUFFER 1
      #PARTIALS FALSE
      #FORCE TRUE
      FONT "verdana"
      ANTIALIAS TRUE
      POSITION AUTO
      SIZE 5
      TYPE TRUETYPE
      COLOR 255 255 255
    END
    STYLE
      #COLOR 255 165 115
      COLOR 179 181 81
      ANTIALIAS TRUE
    END
  END
END # corsi d'acqua navtech

LAYER
  NAME acqua_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA waterwys_region
  TYPE POLYGON
  #LABELITEM "StNm_Base"
   CLASS
    STYLE
      #COLOR 165 214 255
      #COLOR 165 165 165
      ANTIALIAS TRUE
      COLOR 64 154 253
    END
  END
END # corsi d'acqua navtech

LAYER
  NAME acqua1_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA waterwys_polyline
  TYPE LINE
  #LABELITEM "StNm_Base"
   CLASS
    STYLE
      SIZE 1
      #COLOR 165 214 255
      COLOR 64 154 253
      ANTIALIAS TRUE
    END
  END
END # parchi navtech

LAYER
  NAME pedonali_navtech
  PROJECTION
  =20
   "proj=3Dlonglat"
   "ellps=3Dintl"
   "no_defs"
 =20
  END
 =20
  STATUS OFF
  DATA pedonali3_polyline
  #CONNECTIONTYPE OGR
  #CONNECTION  "c:\mapserver\itasca\data\pedonali1.tab"
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 3
      #COLOR 181 222 255
      COLOR 120 140 255
      ANTIALIAS TRUE
    END
  END
END # pedonali navtech

LAYER
  NAME vie_navtech
  PROJECTION
   "proj=3Dlonglat"
   "ellps=3Dintl"
   "no_defs"
   END
  STATUS OFF
  DATA vie3_polyline
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 9
      COLOR 120 140 255
      ANTIALIAS TRUE
    END
  END
END # vie navtech

LAYER
  NAME controviali_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA controviali2_polyline
  #CONNECTIONTYPE OGR
  #CONNECTION  "c:\mapserver\itasca\data\controviali1.tab"
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 6
      #COLOR 181 222 255
      COLOR 120 140 255
      ANTIALIAS TRUE
    END
  END
END # controviali navtech

LAYER
  NAME controviali_navtech2
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA controviali2_polyline
  #CONNECTIONTYPE OGR
  #CONNECTION  "c:\mapserver\itasca\data\controviali1.tab"
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 4
      COLOR 255 255 255
      ANTIALIAS TRUE
    END
  END
END # controviali navtech

LAYER
  NAME corsi_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  #MAXSCALE 600000
  STATUS ON
  DATA corsi5_polyline
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 11
      COLOR 120 140 255
      ANTIALIAS TRUE
    END
  END
END # corsi navtech

LAYER
  NAME importanti_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA importanti5_polyline
  TYPE LINE
   CLASS
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 11
      #COLOR 156 202 156
      COLOR 88 174 51
      ANTIALIAS TRUE
    END
  END
END # importanti navtech

#LAYER
#  NAME statali_navtech
#  STATUS OFF
#  CONNECTIONTYPE OGR
#  CONNECTION  "c:\mapserver\itasca\data\statali1.tab"
#  TYPE LINE
#   CLASS
#    STYLE=20
#      SYMBOL 'carto_line'
#      SIZE 8
      #COLOR 156 202 156
#      COLOR 88 174 51
#      ANTIALIAS TRUE
#    END
#  END
#END # statali navtech

LAYER
  NAME pedonali_navtech2
  PROJECTION
   "proj=3Dlonglat"
   "ellps=3Dintl"
   "no_defs"
  END
  STATUS OFF
  DATA pedonali3_polyline
  TYPE LINE
  LABELITEM "StNm_Base"
  LABELCACHE ON
   CLASS
    LABEL
      ANGLE AUTO
      FONT "verdana"
      #BUFFER 1
      #PARTIALS FALSE
      ANTIALIAS TRUE
      POSITION AUTO
      SIZE 5
      TYPE TRUETYPE
      COLOR 0 0 0
    END
    STYLE=20
      SYMBOL 'carto_line'
      #SIZE 2
      SIZE 3
      #COLOR 217 222 255
      COLOR 120 140 255
      ANTIALIAS TRUE
    END
  END
END # pedonali navtech

LAYER
  NAME vie_navtech2
  #MAXSCALE 600000
  STATUS OFF
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  DATA vie3_polyline
  #CONNECTIONTYPE OGR
  #CONNECTION  "c:\mapserver\itasca\data\vie1.tab"
  LABELITEM "StNm_Base"
  LABELCACHE ON
  TYPE LINE
   CLASS
    LABEL
      ANGLE AUTO
      BUFFER 0
      PARTIALS TRUE
      #FORCE TRUE
      FONT "verdana"
      ANTIALIAS TRUE
      POSITION CC
      SIZE 7
      TYPE TRUETYPE
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
    END
    STYLE
      SYMBOL 'carto_line'
      SIZE 7
      COLOR 255 255 255
      ANTIALIAS TRUE
    END
  END
END # vie navtech

LAYER
  NAME corsi_navtech2
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS ON
  DATA corsi5_polyline
  LABELITEM "StNm_Base"
  LABELCACHE ON
  TYPE LINE
   CLASS
    LABEL
      ANGLE AUTO
      BUFFER 2
      PARTIALS TRUE
      FONT "verdana"
      #FORCE TRUE
      ANTIALIAS TRUE
      MINDISTANCE 4
      POSITION CC
      SIZE 8
      TYPE TRUETYPE
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
    END
    STYLE=20
      SYMBOL 'carto_line'
      SIZE 7
      COLOR 255 255 255
      ANTIALIAS TRUE
    END
  END
END # corsi navtech

LAYER
  NAME importanti_navtech2
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS OFF
  DATA importanti5_polyline
  LABELITEM "StNm_Base"
  LABELCACHE ON
  TYPE LINE
  CLASS
     LABEL
      ANGLE AUTO
      BUFFER 2
      PARTIALS TRUE
      FONT "verdana"
      ANTIALIAS TRUE
      MINDISTANCE 2
      FORCE TRUE
      POSITION CC
      SIZE 8
      TYPE TRUETYPE
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
    END
    STYLE
      SYMBOL 'carto_line'
      SIZE 7
      #COLOR 255 255 132
      COLOR 255 255 159
      #color 255 255 255
      ANTIALIAS TRUE
    END
  END
END # importanti navtech

#LAYER
#  NAME statali_navtech2
#  STATUS OFF
#  CONNECTIONTYPE OGR
#  CONNECTION  "c:\mapserver\itasca\data\statali1.tab"
#  LABELITEM "StNm_Base"
#  LABELCACHE ON
#  TYPE LINE
#  CLASS
#     LABEL
#      ANGLE AUTO
#      BUFFER 1
#      PARTIALS TRUE
#      FONT "verdana"
#      ANTIALIAS TRUE
#      MINDISTANCE 2
#     FORCE TRUE
#      POSITION CC
#      SIZE 7
#      TYPE TRUETYPE
#      COLOR 0 0 0
#    END
#    STYLE
#      SYMBOL 'carto_line'
#      SIZE 4
#      COLOR 255 255 159
#      ANTIALIAS TRUE
#    END
#  END
#END

#LAYER
#  NAME freccie_navtech
#  PROJECTION
#  "proj=3Dlonglat"
#  "ellps=3Dintl"
#  "no_defs"
#  END
#  STATUS OFF
#  DATA arrow_font_point
#  TYPE LINE#POINT
#   CLASS
#    STYLE
#      SYMBOL 'arrow'
#      size 20
#      COLOR 245 88 128
#     ANTIALIAS TRUE
#    END
#  END
#END


LAYER
  NAME freccie_navtech
  PROJECTION
  "proj=3Dlonglat"
  "ellps=3Dintl"
  "no_defs"
  END
  STATUS ON
  DATA arrow#vie3_polyline
  CONNECTIONTYPE OGR
  CONNECTION  "c:\mapserver\itasca\data\arrow.tab"
  STYLEITEM "AUTO"
  #FONTSET "C:\WINDOWS\Fonts\Wingdng3.tff"
  TYPE polygon
   CLASS
    #STYLE
      #SYMBOL pixmap
      #size 20
      #COLOR 88 88 245
      #ANTIALIAS TRUE
    #END
  END
END


#LAYER                        =20
  #NAME freccie_navtech#"arrowthings"    =20
  #PROJECTION
  #"proj=3Dlonglat"
  #"ellps=3Dintl"
  #"no_defs"
  #END          =20
  #TYPE POINT          =20
  #STATUS OFF
  #DATA arrow_font_point#LabelsPippoPluto_text#arrow_font_point=20
 =20
    #LABELITEM "Label"     #field from attribute table to use for =
labelling
    #CLASS                    =20
      #SYMBOL 1
      #COLOR 245 88 128
      #SIZE 50
      #LABEL   #signifies start of labelling
      # BUFFER 1   #space to leave around label
      # SIZE small   #size of label
      # COLOR 255 255 255       #colour of label
      # BACKGROUNDCOLOR 128 128 0   #draws a polygon around the label
      # POSITION cr    #automatically determines position of label
      # PARTIALS false    #text cannot run off the edge of the map
      #END
   =20
    #CLASS
      #NAME "arrow"
   	  #EXPRESSION ([text_angle] > 0 AND [text_angle] < 90)
   	  #SYMBOL "arrow"
   	  #COLOR 245 88 128
   	  #SIZE 20
      #LABEL   #signifies start of labelling
      #BUFFER 1   #space to leave around label
      #SIZE small   #size of label
      #BACKGROUNDCOLOR 128 128 0   #draws a polygon around the label
      #POSITION CC    #automatically determines position of label
      #ANGLE AUTO
      #PARTIALS TRUE#false    #text cannot run off the edge of the map
      #FORCE TRUE
     # TYPE TRUETYPE
   #END
   #END                  =20
 #END #END layer



END # Map File
------=_NextPart_000_005E_01C3C48D.B72BA6F0--




More information about the MapServer-users mailing list