Showing Arc/Info annotations details
Gambin Dejan
Dejan.Gambin at PULA.HR
Tue Mar 22 04:51:09 PST 2005
I have successfully shown the Arc/Info annotations and now I have the
following problem - how can I make my annotations (street names) to
"follow the street direction". The annotations are shown as point layer
with labeling so they are all placed horizontally. Where is the "angle"
stored in Arc/Info annotation coverage? Or the text just has starting
and ending points and nothing else? Is there any way to solve this
problem? I have been reading about the labelangleitem parameter (thanks
to Bart) but it is the item in attribute table that holds the angle and
this is not my case
Any help? Thanks
Dejan Gambin
-----Original Message-----
From: Gambin Dejan
Sent: Tuesday, March 22, 2005 10:59 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Showing Arc/Info annotations details
I would like to give some details of what have I tried without a
success:
I have TX6/TX7 annotation files (streets.txt, streets.tat, streets.txx)
located in "C:/Projekti/GIS/Pula/Streets" folder. Using ogrinfo streets
I get:
Had to open data source read-only.
INFO: Open of `streets'
using driver `AVCBin' successful.
1: streets (Point)
ogrinfo -summary streets streets gives me:
Had to open data source read-only.
INFO: Open of `streets'
using driver `AVCBin' successful.
Layer name: streets
Geometry: Point
Feature Count: 508
Extent: (5406638.018711, 4966241.156020) - (5411552.448154,
4973139.175613)
Layer SRS WKT:
(unknown)
UserId: Integer (0.0)
Text: String (0.0)
Height: Real (0.0)
Level: Integer (0.0)
My mapfile loooks like:
LAYER
NAME "streets"
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "C:/Projekti/GIS/Pula/Streets,streets"
TYPE POINT
LABELITEM "Text"
CLASS
NAME "all"
LABEL
FONT "arial"
TYPE truetype
POSITION AUTO
SIZE 8
COLOR 255 0 0
OUTLINECOLOR 55 55 55
PARTIALS FALSE
END
END
END
Trying to show the layer I get "Fatal error: Call to a member function
on a non-object in ... on line ..."
// the line calls $mapImg->saveWebImage(); and the $mapImg is evaluated
before using map->draw PHP/Mapscript method.
What could be wrong?
Thanks very much
Dejan Gambin
More information about the MapServer-users
mailing list