Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

sw-gis · Smallworld Developers

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 2849
  • Category: Development
  • Founded: Jul 9, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 249 - 279 of 22502   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#249 From: "Joseph Stain" <johnfred2000@...>
Date: Tue Mar 2, 1999 4:19 pm
Subject: write to output file
johnfred2000@...
Send Email Send Email
 
Hi:

I want to write to output file (external file).

I did the following:
  Magik2> s << external_text_output_stream.new("d:\test15.txt")
          an external_text_output_stream
  Magik2> s.write("this is a test")

This only create the file "d:\test15.txt", but not wrote the text "this
is a test".

Thanks in advance !!!



______________________________________________________

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#250 From: "OEDEWALDT, KYLE K" <KOEDEWA@...>
Date: Wed Mar 3, 1999 12:25 am
Subject: Re: write to output file
KOEDEWA@...
Send Email Send Email
 
Try this:

	 _if system.file_creatable?("d:\test15.txt")
	 _then
		 strm << external_text_output_stream.new("d:\test15.txt")
		 strm.put_charvec("this is a test")
		 strm.newline()
		 strm.close()
	 _endif


-----Original Message-----
From: Joseph Stain [mailto:johnfred2000@...]
Sent: Tuesday, March 02, 1999 6:19 PM
To: sw-gis@egroups.com
Subject: [sw-gis] write to output file



Hi:

I want to write to output file (external file).

I did the following:
  Magik2> s << external_text_output_stream.new("d:\test15.txt")
          an external_text_output_stream
  Magik2> s.write("this is a test")

This only create the file "d:\test15.txt", but not wrote the text "this
is a test".

Thanks in advance !!!



______________________________________________________

------------------------------------------------------------------------
Internet FileZone: Always FREE!
Instantly store & access your valuable PC files on the net,
from any Web browser.
SIGN UP NOW - http://offers.egroups.com/click/235/0

eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#251 From: "Burt, Joe" <jburt@...>
Date: Wed Mar 3, 1999 12:37 am
Subject: Re: write to output file
jburt@...
Send Email Send Email
 
As mentioned in a previous note:

You must use stream.close() to close the stream off.  If you are not ready
to close the stream, use stream.flush()

-----Original Message-----
From: Joseph Stain [mailto:johnfred2000@...]
Sent: Tuesday, March 02, 1999 5:19 PM
To: sw-gis@egroups.com
Subject: [sw-gis] write to output file



Hi:

I want to write to output file (external file).

I did the following:
  Magik2> s << external_text_output_stream.new("d:\test15.txt")
          an external_text_output_stream
  Magik2> s.write("this is a test")

This only create the file "d:\test15.txt", but not wrote the text "this
is a test".

Thanks in advance !!!



______________________________________________________

------------------------------------------------------------------------
Internet FileZone: Always FREE!
Instantly store & access your valuable PC files on the net,
from any Web browser.
SIGN UP NOW - http://offers.egroups.com/click/235/0

eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#252 From: Zareh Langridge <Zareh.Langridge@...>
Date: Wed Mar 3, 1999 9:52 am
Subject: Re: write to output file
Zareh.Langridge@...
Send Email Send Email
 
Burt, Joe wrote:
>
> As mentioned in a previous note:
>
> You must use stream.close() to close the stream off.  If you are not ready
> to close the stream, use stream.flush()
>
Following on from what Joe has said, the reason you have to use flush is that
the stream has a buffer of 1Kb which is where your text gets written to. When
the buffer is full it gets flushed and your text will appear in the file or you
can force it to be flushed using stream.flush(). I found this out once when I
wrote stuff to a stream and found that my file was missing the last few hundred
bytes of data.

Zareh
--
zareh@... (Zareh Langridge)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tel. +44 1223 300687  Fax. +44 1223 329359
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The opinions expressed above are purely personal and not those of my employer

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#253 From: blu@...
Date: Wed Mar 3, 1999 6:40 pm
Subject: JDBC-Smallworld
blu@...
Send Email Send Email
 
Have you used the JDBC:ODBC bridge to connect to a Smallworld Datastore? I would to hear from anyone who has tried.
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by www.eGroups.com

#254 From: mark.b.field@...
Date: Thu Mar 4, 1999 9:51 pm
Subject: choice_item size limitation?
mark.b.field@...
Send Email Send Email
 
It appears that I cannot create a choice_item with greater then 10
strings/values. At least I can only see the first 10.

Is this a limitation, or is there a way to increase the size or increase the
number viewable to above 10?

If I can't increase the size, There is a list_view method, how can I add that in
replacement of my choice_item?

Thx,
Mark

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#255 From: WeiWu.Chen@...
Date: Thu Mar 4, 1999 10:17 pm
Subject: Re: choice_item size limitation?
WeiWu.Chen@...
Send Email Send Email
 
Try to add this pair as the last couple of params when you create you
choice_item.  It'll make your menu look cleaner too.

:display_all?, _false

Wei Wu Chen
CE*GIS GIS Developer  P.O. Box 767, UCO-6SE            Voice:
312-394-4680
Information Services 	 227 W. Monroe
Fax:      312-394-2200
WeiWu.Chen@...  Chicago, IL  60690-0767

> -----Original Message-----
> From: mark.b.field@... [SMTP:mark.b.field@...]
> Sent: Thursday, March 04, 1999 3:51 PM
> To: sw-gis@egroups.com
> Subject: [sw-gis] choice_item size limitation?
>
> It appears that I cannot create a choice_item with greater then 10
> strings/values. At least I can only see the first 10.
>
> Is this a limitation, or is there a way to increase the size or increase
> the number viewable to above 10?
>
> If I can't increase the size, There is a list_view method, how can I add
> that in replacement of my choice_item?
>
> Thx,
> Mark
>
> ------------------------------------------------------------------------
> Save up to 55% on your company's purchasing costs.
> Trilogy Buying Chain (TM).  Click here.
> http://offers.egroups.com/click/228/0
>
> eGroup home: http://www.eGroups.com/list/sw-gis
> Free Web-based e-mail groups by eGroups.com
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#256 From: kirmo.uusitalo@...
Date: Sun Mar 7, 1999 12:08 pm
Subject: Partial post
kirmo.uusitalo@...
Send Email Send Email
 
Hi,

I'm wondering if any of you fellow Smallworld developers have implemented a
partial post in the Smallworld datastore. Currently only the whole alternative
can be posted upwards.

If the top alternative is the *up-to-date* data of a utility company and the
sub-alternative *plans* are implemented part-by-part or area-by-area, there is a
clear need for partial post operation. This would ease the implementation of
roll-out plans, I believe.

Setting a status field (planned/in production) of the object in the lower level
alternative isn't sufficient as the status can't be seen from the top
alternative (the object in question may not even exist in the top alternative).

Technically partial post shouldn't be a major problem unless the posted objects
carry relations to objects not in the post set.

Adding this functionality to the core gis would make the whole system much more
usable in day-to-day engineering problems.

So, any opininions or experiences out there?

Regards,

Kirmo Uusitalo

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#257 From: mark.b.field@...
Date: Mon Mar 8, 1999 2:27 pm
Subject: Re: Partial post
mark.b.field@...
Send Email Send Email
 
We have a similar requirement. This deals with "modification markers" We do not
want to post any modification markers, so we implemented a method that creates a
child off the current alternative, remove the modification markers from the
current alternative, post the current alternative up, then post the
alternative's child up to the current alternative.

This is a convoluted way, but it works!

You could do this auto matically based on flags.

Mark

Original Article: http://www.egroups.com/list/sw-gis/?start=256
> Hi,
>
> I'm wondering if any of you fellow Smallworld developers have implemented a
partial post in the Smallworld datastore. Currently only the whole alternative
can be posted upwards.
>
> If the top alternative is the *up-to-date* data of a utility company and the
sub-alternative *plans* are implemented part-by-part or area-by-area, there is a
clear need for partial post operation. This would ease the implementation of
roll-out plans, I believe.
>
> Setting a status field (planned/in production) of the object in the lower
level alternative isn't sufficient as the status can't be seen from the top
alternative (the object in question may not even exist in the top alternative).
>
> Technically partial post shouldn't be a major problem unless the posted
objects carry relations to objects not in the post set.
>
> Adding this functionality to the core gis would make the whole system much
more usable in day-to-day engineering problems.
>
> So, any opininions or experiences out there?
>
> Regards,
>
> Kirmo Uusitalo
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#258 From: robert.schweikert@... (Robert Schweikert)
Date: Mon Mar 8, 1999 3:00 pm
Subject: Re: Partial post
robert.schweikert@...
Send Email Send Email
 
mark.b.field@... wrote:
>
> We have a similar requirement. This deals with "modification markers" We do
> not want to post any modification markers, so we implemented a method that
> creates a child off the current alternative, remove the modification markers
> from the current alternative, post the current alternative up, then post the
> alternative's child up to the current alternative.
>
> This is a convoluted way, but it works!
>
> You could do this auto matically based on flags.
>

Before "posting the alternative's child up the current alternative",
don't you have to perform a merge operation in the alternative's child,
losing all modification markers (since they have been deleted in the
current alternative)?

Robert

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#259 From: rclayton@...
Date: Mon Mar 8, 1999 4:40 pm
Subject: rotating point styles
rclayton@...
Send Email Send Email
 
I'm trying to set things up so that I can have individual instances of objects
in the database apply their own independent angles of rotation to their point
styles before they are drawn.

Does anyone know a straightforward way of doing this?  I'm wondering if there is
a method to apply a transform object with the required rotation to a gis point
style. . .

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#260 From: robert.schweikert@... (Robert Schweikert)
Date: Tue Mar 9, 1999 9:04 am
Subject: Re: rotating point styles
robert.schweikert@...
Send Email Send Email
 
rclayton@... a écrit:
>
>  I'm trying to set things up so that I can have individual
>  instances of objects in the database apply their own independent
>  angles of rotation to their point styles before they are drawn.
>
>  Does anyone know a straightforward way of doing this?
>  I'm wondering if there is a method to apply a transform object
>  with the required rotation to a gis point style. . .

You can call the method orientation<< on a point, for example
like this:

_method obj_collection_editor.post_update_activity(rec)
	 ##
	 ##
	 rec.pt.orientation << rec.pt_orientation.degrees_to_radians
_endmethod
$

Robert

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#261 From: Rodolfo <rodolfoa@...>
Date: Tue Mar 9, 1999 12:47 pm
Subject: field update trigger..
rodolfoa@...
Send Email Send Email
 
Hi there,

This is SW 3.0

I have an object 'person', which has a field 'birth_date' of type ds_date
I have set up an update trigger on this field called set_date(). this
method on the exemplar 'person' is supposed to see the value coming as
string or ds_date and convert it appropriately. At least that's what I
intend to do.

Problem: the field is set with the value before the trigger is called.

Has Smallworld got it all wrong there??. , If it is called after what would
I need the trigger then??

Regards,

Rodolfo.

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#262 From: "Jani Tiainen" <jani.tiainen@...>
Date: Tue Mar 9, 1999 1:29 pm
Subject: Re: field update trigger..
jani.tiainen@...
Send Email Send Email
 
> I have an object 'person', which has a field 'birth_date' of type ds_date
> I have set up an update trigger on this field called set_date().
> this method on the exemplar 'person' is supposed to see the value
> coming as string or ds_date and convert it appropriately. At
> least that's what I intend to do.
>
> Problem: the field is set with the value before the trigger is called.
>
> Has Smallworld got it all wrong there??. , If it is called after
> what would I need the trigger then??

Well, you should have readed SW documentation (Case ref: 3.1 and 3.2)

There is said that:

Update triggers are POST activity. Insert trigger is called when data is
stored to datastore.

To have PRE update activity, you must define validator. Drawback is that
validator is available only for whole object, not just for one field.

Regards,
Jani Tiainen




------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#263 From: "Jani Tiainen" <jani.tiainen@...>
Date: Tue Mar 9, 1999 1:32 pm
Subject: Re: BUG FIX field update trigger..
jani.tiainen@...
Send Email Send Email
 
[clip]

> Update triggers are POST activity. Insert trigger is called when data is
                                                      ^^^^^^ Should be UPDATE
instead insert.. :)
> stored to datastore.

[clip]

BTW, if someone has better solution to control contents of field, I would be
interested to heard about it.

Regards,
Jani Tiainen



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#265 From: Scott.C.Scherrer@...
Date: Tue Mar 9, 1999 2:09 pm
Subject: Re: rotating point styles
Scott.C.Scherrer@...
Send Email Send Email
 
There is a slot on the point object called :orientation which stores the
angle in radians.  Methods are available to convert from degrees and to set
during a make_geometry().  Other slots on the point are :scale, which
muliplies the size and magnification of the style, and :mirror, which flips
the style.

	 Scott Scherrer
	 Commonwealth Edison

> -----Original Message-----
> From: rclayton@... [SMTP:rclayton@...]
> Sent: Monday, March 08, 1999 10:41 AM
> To: sw-gis@egroups.com
> Subject: [sw-gis] rotating point styles
>
> I'm trying to set things up so that I can have individual instances of
> objects in the database apply their own independent angles of rotation to
> their point styles before they are drawn.
>
> Does anyone know a straightforward way of doing this?  I'm wondering if
> there is a method to apply a transform object with the required rotation
> to a gis point style. . .
>
> ------------------------------------------------------------------------
> Save up to 55% on your company's purchasing costs.
> Trilogy Buying Chain (TM).  Click here.
> http://offers.egroups.com/click/228/0
>
> eGroup home: http://www.eGroups.com/list/sw-gis
> Free Web-based e-mail groups by eGroups.com
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#266 From: "Sileo, Tony" <tony@...>
Date: Tue Mar 9, 1999 4:03 pm
Subject: Re: rotating point styles
tony@...
Send Email Send Email
 
One minor technical correction - these are actually "fields" on the point
geometry record, not "slots" on the object.  I'm sure that's what Scott
meant, anyhow.  Of course, this is an important distinction, as it means
that changes to these values are persistent (stored in the database)!  To
see all the fields, you can execute:

Magik2>  v.collections[:sw_gis!point].describe_fields()

where v is the usual handle to a GIS VMDS partition.

Cheers
Tony
GeoData Solutions, Inc.

		 -----Original Message-----
		 From: Scott.C.Scherrer@...
[mailto:Scott.C.Scherrer@...]
		 Sent: Tuesday, March 09, 1999 7:09 AM
		 To: sw-gis@egroups.com
		 Subject: [sw-gis] Re: rotating point styles

		 There is a slot on the point object called :orientation
which stores the
		 angle in radians.  Methods are available to convert from
degrees and to set
		 during a make_geometry().  Other slots on the point are
:scale, which
		 muliplies the size and magnification of the style, and
:mirror, which flips
		 the style.

			 Scott Scherrer
			 Commonwealth Edison

		 > -----Original Message-----
		 > From: rclayton@... [SMTP:rclayton@...]
		 > Sent: Monday, March 08, 1999 10:41 AM
		 > To: sw-gis@egroups.com
		 > Subject: [sw-gis] rotating point styles
		 >
		 > I'm trying to set things up so that I can have individual
instances of
		 > objects in the database apply their own independent angles
of rotation to
		 > their point styles before they are drawn.
		 >
		 > Does anyone know a straightforward way of doing this?  I'm
wondering if
		 > there is a method to apply a transform object with the
required rotation
		 > to a gis point style. . .
		 >
		 >
------------------------------------------------------------------------
		 > Save up to 55% on your company's purchasing costs.
		 > Trilogy Buying Chain (TM).  Click here.
		 > http://offers.egroups.com/click/228/0
		 >
		 > eGroup home: http://www.eGroups.com/list/sw-gis
		 > Free Web-based e-mail groups by eGroups.com
		 >


------------------------------------------------------------------------
		 $1000 in FREE software--guaranteed
		 While you automate your company's purchasing process.
		 http://offers.egroups.com/click/228/1

		 eGroup home: http://www.eGroups.com/list/sw-gis
		 Free Web-based e-mail groups by eGroups.com


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#267 From: Scott.C.Scherrer@...
Date: Tue Mar 9, 1999 9:37 pm
Subject: Re: field update trigger..
Scott.C.Scherrer@...
Send Email Send Email
 
Rodolfo,

	 Triggers are actions that are run after the primary action takes
place.  It takes getting used to because the old data is no longer in the
record.

Scott Scherrer

> -----Original Message-----
> From: rodolfoa@... [SMTP:rodolfoa@...]
> Sent: Tuesday, March 09, 1999 6:47 AM
> To: 'SW-MailingList'
> Subject: field update trigger..
>
> Hi there,
>
> This is SW 3.0
>
> I have an object 'person', which has a field 'birth_date' of type ds_date
> I have set up an update trigger on this field called set_date(). this
> method on the exemplar 'person' is supposed to see the value coming as
> string or ds_date and convert it appropriately. At least that's what I
> intend to do.
>
> Problem: the field is set with the value before the trigger is called.
>
> Has Smallworld got it all wrong there??. , If it is called after what
> would I need the trigger then??
>
> Regards,
>
> Rodolfo.
> ------------------------------------------------------------------------
> Save up to 55% on your company's purchasing costs.
> Trilogy Buying Chain (TM).  Click here.
> http://offers.egroups.com/click/228/0
>
> eGroup home: http://www.eGroups.com/list/sw-gis
> Free Web-based e-mail groups by eGroups.com
>
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#268 From: Carlos Santillan <csantill@...>
Date: Tue Mar 9, 1999 10:19 pm
Subject: Re: field update trigger..
csantill@...
Send Email Send Email
 
I think that one of the parameters of update triggers is the old record
(record before the update action) this has been useful in the past.


SW documentation states

Triggers - a single insert, update and/or delete trigger can be defined
for a Case Object. A trigger is a message which is sent to a record in
the corresponding table of the target dataset as follows:
Insert trigger - sent to the new record when it has just been inserted
in the collection.
Update trigger - sent to the updated record; a detached copy of the old
record is also available.
Delete trigger - sent to the record just before it is deleted.

The Magik code of a trigger method can be supplied in the data
dictionary (by creating and applying a Case Magik entity) or in the
image.




> -----Original Message-----
> From: Scott.C.Scherrer@... [mailto:Scott.C.Scherrer@...]
> Sent: Tuesday, March 09, 1999 3:37 PM
> To: sw-gis@egroups.com
> Subject: [sw-gis] Re: field update trigger..
>
>
> Rodolfo,
>
>  Triggers are actions that are run after the primary action takes
> place.  It takes getting used to because the old data is no
> longer in the
> record.
>
> Scott Scherrer
>
> > -----Original Message-----
> > From: rodolfoa@... [SMTP:rodolfoa@...]
> > Sent: Tuesday, March 09, 1999 6:47 AM
> > To: 'SW-MailingList'
> > Subject: field update trigger..
> >
> > Hi there,
> >
> > This is SW 3.0
> >
> > I have an object 'person', which has a field 'birth_date'
> of type ds_date
> > I have set up an update trigger on this field called
> set_date(). this
> > method on the exemplar 'person' is supposed to see the
> value coming as
> > string or ds_date and convert it appropriately. At least
> that's what I
> > intend to do.
> >
> > Problem: the field is set with the value before the trigger
> is called.
> >
> > Has Smallworld got it all wrong there??. , If it is called
> after what
> > would I need the trigger then??
> >
> > Regards,
> >
> > Rodolfo.
> >
> --------------------------------------------------------------
> ----------
> > Save up to 55% on your company's purchasing costs.
> > Trilogy Buying Chain (TM).  Click here.
> > http://offers.egroups.com/click/228/0
> >
> > eGroup home: http://www.eGroups.com/list/sw-gis
> > Free Web-based e-mail groups by eGroups.com
> >
> >
>
> --------------------------------------------------------------
> ----------
> For easy online travel reservations, go to Internet Travel Network:
> http://www.itn.net
>
> eGroup home: http://www.eGroups.com/list/sw-gis
> Free Web-based e-mail groups by eGroups.com
>
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#269 From: Rodolfo <rodolfoa@...>
Date: Wed Mar 10, 1999 4:50 pm
Subject: ace control +++
rodolfoa@...
Send Email Send Email
 
Hi there,

I was bitterly disappointed to find out that in SW3.0 the good old method:
'find_info_for()' in vhs_tree
with which I used to find/set object's geometry field
visibility/hittability/selectivity is not available
any more. I know, I know, it was already depreciated.
Does any body knows a good way of setting obj.'s geometries and reflecting those
changes in the 'ace_control'?
as the way now seems far to complicated.

Thanks to any one there,

Regards,

Rodolfo Acevedo


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#270 From: "Kirmo Uusitalo" <kirmo.uusitalo@...>
Date: Fri Mar 26, 1999 8:37 am
Subject: Re: Partial post
kirmo.uusitalo@...
Send Email Send Email
 
> From: mark.b.field@... [mailto:mark.b.field@...]
>
> We have a similar requirement. This deals with "modification
> markers" We do not want to post any modification markers, so we
> implemented a method that creates a child off the current
> alternative, remove the modification markers from the current
> alternative, post the current alternative up, then post the
> alternative's child up to the current alternative.
>

Thank you for this valuable information. Could you please point me to where
I could find more information of these modification markers.

Currently I've been experimenting with ds_difference_stream, but this seems
to return only whole records, not the modification markers.

> This is a convoluted way, but it works!

Well, your solution sounds quite elegant to me as it relies on core GIS on
doing the post.

Regards,

Kirmo Uusitalo

Here are some methods I've used to get the modified records on given tables.

def_slotted_exemplar(:affected_record,
{
     {:change, _unset, :readable},
     {:current_record, _unset,:readable},
     {:base_record, _unset,:readable},
     {:conflict?, _unset,:readable},
     {:new_change, _unset,:readable},
     {:new_record, _unset,:readable}
}
)
$

_method ds_diff_lister.get_affected_records(affected_tables_rope,
                                          base_view,
                                          compare_to_view)
     ## Fills the affected records list for the tables
     ##

     affected_records << rope.new()

     _for aff_table _over affected_tables_rope.fast_elements()
     _loop
         _if aff_table.change _is :modified
         _then
             affected_table << base_view.collections[aff_table.tablename]
             compare_to_table <<
compare_to_view.collections[aff_table.tablename]

             diff_stream << ds_difference_stream.new_on(affected_table,
compare_to_table)
             _loop

                 ar << affected_record.new(_scatter _allresults
diff_stream.get())
                 _if ar _is _unset
                 _then _leave _endif
                 affected_records.add_last(ar)
             _endloop
         _elif aff_table.change _is :created _then
             # At the moment we are not interested in new tables in this
             # alternative.
         _elif aff_table.change _is :deleted _then
             # At the moment we are not interested in tables deleted in this
             # alternative.
         _endif
     _endloop
     _return affected_records
_endmethod
$

_method affected_record.new(change, current_record,base_record, _optional
conflict?,new_change,new_record)
     ##
     ##
     _if change _is _unset
     _then
         _return _unset
     _else
         _return  _clone.init(change,
                              current_record,
                              base_record,
                              conflict?,
                              new_change,
                              new_record)
     _endif
_endmethod
$

_method affected_record.init(change, current_record, base_record,
                              _optional conflict?,new_change,new_record)
    .change << change
    .current_record << current_record
    .base_record << base_record
    .conflict? << conflict?
    .new_change << new_change
    .new_record << new_record
    >> _self
_endmethod



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#271 From: Rodolfo <rodolfoa@...>
Date: Thu Mar 11, 1999 9:59 am
Subject: FW: ace control +++ -Eureka
rodolfoa@...
Send Email Send Email
 
Sorry guys,

I found it, it couldn't be easier:

ace_control.set_visibility( table/field, _true/_false)

Thanks any way for your patience,

Rodolfo Acevedo


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#272 From: robert.schweikert@... (Robert Schweikert)
Date: Thu Mar 11, 1999 11:29 am
Subject: importing Smallworld-EPS files
robert.schweikert@...
Send Email Send Email
 
Hi,

we are having problems importing Smallworld-generated
EPS files (particularly those containing raster data)
into other applications (not able to import EPS files,
garbage output when printing an imported EPS file, etc.)

Does anybody have "workflows" (as they like to call this
in prepress) for treating Smallworld EPS files with
standard desktop publishing software such as Corel Draw,
Photoshop, etc. ?

I'm using the option
set GIS_PLOT_OPTIONS=-f bitmap_rendering=1
and I've set
general_raster.plot_as_bitmap?? << true
in the image, but I've tried several other combinations
without much success.

Thanks,

Robert

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#273 From: robert.schweikert@... (Robert Schweikert)
Date: Thu Mar 11, 1999 10:46 am
Subject: Re: Partial post
robert.schweikert@...
Send Email Send Email
 
Well I still don't get it: are those "modification markers"
referring to some rwo (as I thought in my first reply) or to
some internal data that indicates which records have
been inserted/updated/deleted?

Robert

Kirmo Uusitalo a écrit:
>
>  > From: mark.b.field@... [mailto:mark.b.field@...]
>  >
>  > We have a similar requirement. This deals with "modification
>  > markers" We do not want to post any modification markers, so we
>  > implemented a method that creates a child off the current
>  > alternative, remove the modification markers from the current
>  > alternative, post the current alternative up, then post the
>  > alternative's child up to the current alternative.
>  >
>
>  Thank you for this valuable information. Could you please point me to where
>  I could find more information of these modification markers.
>
>  Currently I've been experimenting with ds_difference_stream, but this seems
>  to return only whole records, not the modification markers.
>
>  > This is a convoluted way, but it works!
>
>  Well, your solution sounds quite elegant to me as it relies on core GIS on
>  doing the post.
>
>  Regards,
>
>  Kirmo Uusitalo
>
>  ...

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#274 From: Alan Kornuta <Alan.Kornuta@...>
Date: Fri Mar 12, 1999 8:53 am
Subject: Coordinate interchange
Alan.Kornuta@...
Send Email Send Email
 
Hi,
I have to solve following problem. In SW 3 application all x coordinates
have to be replaced by y coordinates and vice versa y coordinates have
to be replaced by x coordinates. Simply all x and y coords have to be
interchanged. I dont want use transform on all desired geometries
(chains, points, ...), just only interchange coords on some low database
level.
Does anybody have any experience with this?

Thanx, Alan



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#275 From: vlp@...
Date: Fri Mar 12, 1999 12:36 pm
Subject: Re: importing Smallworld-EPS files
vlp@...
Send Email Send Email
 
Hello,

EPS stands for encapsulated PostScript. A PostScript interpreter is
far too complex to be included in an application like Corel Draw or
Photoshop. Usually these applications are able to interpret a sub-set
of EPS. Most probably Smallworld does not produce EPS recognizable by
these applications...

The EPS produced by smallworld you are talking about is smallworld
printing output, isn't it?

Regards,

Robert Schweikert wrote on March 11 about '[sw-gis] importing Smallworld-EPS
files':
  > Hi,
  >
  > we are having problems importing Smallworld-generated
  > EPS files (particularly those containing raster data)
  > into other applications (not able to import EPS files,
  > garbage output when printing an imported EPS file, etc.)
  >
  > Does anybody have "workflows" (as they like to call this
  > in prepress) for treating Smallworld EPS files with
  > standard desktop publishing software such as Corel Draw,
  > Photoshop, etc. ?
  >
  > I'm using the option
  > set GIS_PLOT_OPTIONS=-f bitmap_rendering=1
  > and I've set
  > general_raster.plot_as_bitmap?? << true
  > in the image, but I've tried several other combinations
  > without much success.
  >
  > Thanks,
  >
  > Robert
  >
  > ------------------------------------------------------------------------
  > eGroups Spotlight:
  > "Vediculture" - Disuss the world's ancient Vedic culture.
  > http://offers.egroups.com/click/242/0
  >
  > eGroup home: http://www.eGroups.com/list/sw-gis
  > Free Web-based e-mail groups by eGroups.com
  >
  >

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#276 From: Konstantin Malakhanov <kosta@...>
Date: Fri Mar 12, 1999 1:15 pm
Subject: Re: importing Smallworld-EPS files
kosta@...
Send Email Send Email
 
vlp@... writes:
  >
  > Hello,
  >
  > EPS stands for encapsulated PostScript. A PostScript interpreter is
  > far too complex to be included in an application like Corel Draw or
  > Photoshop. Usually these applications are able to interpret a sub-set
  > of EPS. Most probably Smallworld does not produce EPS recognizable by
  > these applications...
  >
  > The EPS produced by smallworld you are talking about is smallworld
  > printing output, isn't it?

Well, Corel Draw 7.0 has "A PostScript interpreter" (and a lot of
other programs have) and we usually use CorelDraw here to massage
Smallworld EPS. We produce Smallworld EPS with normal psplot calling
sequence and had as far no troubles, also with background raster maps
plotted as bitmaps.

For Robert Schweikert: it would be quite helpful if you will give the
version of GIS , the platform you producing EPS files at and which
"other applications" give you the problems. Microsoft is known for its
, well, broken filters for third-party formats. MS Word had (has?) a
bug in EPS importing, sometimes printing a preview built-in in EPS
file over EPS file itself.

So far,
Konstantin Malakhanov,
---
Institut for Hydraulic Engineering & Groundwater Mgmt.,
RWTH Aachen, Germany
E-Mail: malakhanov@...          Tel. +49/(0)241/807343


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#277 From: Iván Rau Aguirre <irau@...>
Date: Fri Mar 12, 1999 10:02 am
Subject: Load Patches
irau@...
Send Email Send Email
 
Hi friends,
somebody could say me how to load smallworld patches?

thanks in advance,




------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#278 From: "Ben Coe" <blu@...>
Date: Fri Mar 12, 1999 3:08 pm
Subject: Re: Load Patches
blu@...
Send Email Send Email
 
sw!update_image(patch_directory)



>>> Ivßn Rau Aguirre <irau@...> 03/12/99 05:02AM >>>
Hi friends,
somebody could say me how to load smallworld patches?

thanks in advance,




------------------------------------------------------------------------
Internet FileZone: Always FREE!
Instantly store & access your valuable PC files on the net,
from any Web browser.
SIGN UP NOW - http://offers.egroups.com/click/235/0

eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

#279 From: Zareh Langridge <Zareh.Langridge@...>
Date: Fri Mar 12, 1999 3:16 pm
Subject: Re: Load Patches
Zareh.Langridge@...
Send Email Send Email
 
Ben Coe wrote:
>
>   sw!update_image(patch_directory)
>
> >>> Iv_n Rau Aguirre <irau@...> 03/12/99 05:02AM >>>
> Hi friends,
> somebody could say me how to load smallworld patches?
>
> thanks in advance,
>

The patch directory should contain the patches to be loaded and a file called
patch_list.txt which should contain the names of the patches to be loaded.

Zareh
--
zareh@... (Zareh Langridge)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tel. +44 1223 300687  Fax. +44 1223 329359
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The opinions expressed above are purely personal and not those of my employer

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/sw-gis
Free Web-based e-mail groups by eGroups.com

Messages 249 - 279 of 22502   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help