|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Styles ?Hi,
As you may be can see, I am new using shapes files! The question is, when we create a new object using shapelib, where is it possible to set the styles ? For example if i am creating a point, where can we define the fontname, size, color, angle, etc ? Or creating a line, the style (dash, dot, single, etc), color, size, etc Or creating a poligon, the brush, background color, border style, border size, etc. Thank you! sagent100 |
|
|
RE: Styles ?The shapefile contains the geometry not the attributes such as those you
describe. In general this type of editing is performed in the application displaying the shapefile. If you wanted to set these attributes, you would use a format such as ESRI's layer file (.lyr). Hope this helps. -----Original Message----- From: shapelib-bounces@... [mailto:shapelib-bounces@...] On Behalf Of sagent100 Sent: Sunday, September 28, 2008 5:09 PM To: shapelib@... Subject: [Shapelib] Styles ? Hi, As you may be can see, I am new using shapes files! The question is, when we create a new object using shapelib, where is it possible to set the styles ? For example if i am creating a point, where can we define the fontname, size, color, angle, etc ? Or creating a line, the style (dash, dot, single, etc), color, size, etc Or creating a poligon, the brush, background color, border style, border size, etc. Thank you! sagent100 -- View this message in context: http://www.nabble.com/Styles---tp19716860p19716860.html Sent from the ShapeLib mailing list archive at Nabble.com. _______________________________________________ Shapelib mailing list Shapelib@... http://lists.maptools.org/mailman/listinfo/shapelib _______________________________________________ Shapelib mailing list Shapelib@... http://lists.maptools.org/mailman/listinfo/shapelib |
|
|
|
|
|
RE: Styles ?Brian
I can't find in the dbf api how to set the styles ! Can you send me a very simple example ? thank you !
|
|
|
RE: Styles ?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? Thank you !!! sagent100
|
|
|
Re: Styles ?On Mon, Sep 29, 2008 at 11:52 PM, sagent100 <sagent100@...> 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? sagent100, 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@... light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ Shapelib mailing list Shapelib@... http://lists.maptools.org/mailman/listinfo/shapelib |
| Free embeddable forum powered by Nabble | Forum Help |