Styles ?

View: New views
6 Messages — Rating Filter:   Alert me  

Styles ?

by sagent100 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ?

by Todd Patten :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Parent Message unknown RE: Styles ?

by Brian Peschel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > From: shapelib-bounces@...
> > 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.
> >
> From: "Todd Patten" <todd.patten@...>
> 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).  
>

You could always define this in the DBF file.....

- Brian

_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib

RE: Styles ?

by sagent100 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian
I can't find in the dbf api how to set the styles !
Can you send me a very simple example ?

thank you !




Brian Peschel wrote:
> > From: shapelib-bounces@lists.maptools.org
> > 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.
> >
> From: "Todd Patten" <todd.patten@sbcglobal.net>
> 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).  
>

You could always define this in the DBF file.....

- Brian

_______________________________________________
Shapelib mailing list
Shapelib@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib

RE: Styles ?

by sagent100 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





Todd Patten wrote:
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@lists.maptools.org
[mailto:shapelib-bounces@lists.maptools.org] On Behalf Of sagent100
Sent: Sunday, September 28, 2008 5:09 PM
To: shapelib@lists.maptools.org
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@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib

_______________________________________________
Shapelib mailing list
Shapelib@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib

Re: Styles ?

by Frank Warmerdam-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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