[mapserver-users] OGR - ArcInfo Coverage Help
Matthew Archer
ma at t-kartor.se
Fri Aug 9 06:37:05 PDT 2002
Hi Frank,
It wasn't me who had the bridge cover! How do i get hold of ogrinfo as a
windows binary (Winnt)?
/Matthew
At 08:38 2002-08-09 -0400, you wrote:
>Matthew Archer wrote:
>
>>
>>Using the following syntax with TYPE=Annotation and with a LABELITEM:
>>
>>LAYER
>> NAME anno15
>> TYPE ANNOTATION
>> CONNECTIONTYPE OGR
>> CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0"
>> STATUS default
>> LABELITEM "NAME"
>> CLASS
>> COLOR 0 0 0
>> END
>>END
>>
>>MapServer gives the error:
>>msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME
>>I have tried both NAME,name,Name without success
>Matthew,
>
>The above looks like it should work. Did you get display of annotation
>from your "igds" layer from the bridges coverage to work? I see that
>in that one the text came through with the attribute name "Text" in ogrinfo.
>
>How does the anno15b coverage look in ogrinfo? Are you sure you have
>the layer index?
>
>BTW, the error does indeed mean that the field name isn't found by OGR.
>
>The following is a layer definition I used with an Arc/Info annotation
>coverage:
>
>LAYER
> NAME "text"
> TYPE ANNOTATION
> CONNECTIONTYPE OGR
> CONNECTION 'lignum/fc_labels,2'
> STATUS ON
> LABELITEM "Text"
> CLASSITEM "Level"
> CLASS
> NAME "test1"
> COLOR 255 0 0
> LABEL
> SIZE 16
> ANTIALIAS FALSE
> FORCE TRUE
> COLOR 0 255 0
> FONT "default"
> TYPE TRUETYPE
> END
> END
>END
>
>Best regards,
>
>--
>---------------------------------------+--------------------------------------
>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
>light and sound - activate the windows | http://pobox.com/~warmerdam
>and watch the world go round - Rush | Geospatial Programmer for Rent
>
>
>
More information about the MapServer-users
mailing list