Showing Arc/Info annotations details

Bart van den Eijnden bartvde at XS4ALL.NL
Tue Mar 22 05:09:45 EST 2005


Hi,

can you try:

CONNECTION "C:/Projekti/GIS/Pula/Streets,0"

Also, try testing your MAP file with shp2img before you start using it in
PHP/Mapscript.

Best regards,
Bart

On Tue, 22 Mar 2005 10:58:30 +0100, Gambin Dejan <Dejan.Gambin at PULA.HR>
wrote:

> 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
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the mapserver-users mailing list