[Shapelib] Styles ?

Frank Warmerdam warmerdam at pobox.com
Tue Sep 30 01:06:22 EDT 2008

On Mon, Sep 29, 2008 at 11:52 PM, sagent100 <sagent100 at yahoo.com.ar> wrote:
> Todd
> Thank you for your help !
> As you told me, the .shp file have only geometries, not styles.
> So the question is, using shapelib, how the .lyr is created ?, or how can I
> tell which style have each object?
> Which is the default style shapelib use for each kind of object when I
> create a new one using the library?
> As I understand you say I have to open the table with ArcView f.e and change
> the styles there. Is it true?


Shapelib includes no support for .lyr files. The are another whole ball of
wax.  You can use shapelib to attach attributes to features (shapes)
via the dbf api that could later be used as a basis of style classification
in a .lyr file but the attribute concept is generic, not only for styling.

I believe to create .lyr files you would need to either do it interactively
in ArcView or use the ESRI provided scripting/programing libraries to
manipulate the .lyr file.

Good luck,
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 Shapelib mailing list