Yes, that's the way it works.  Run Datastore Query executes the query 
immediately and creates a fully materialized layer for the results.  Add 
Datastore Layer creates a dynamic layer backed by a connection to the 
database, and only loads the data which is visible in the current 
viewport (with some caching to allow for fast zoom-in).

You should be able to detect which is in place for a given layer by 
digging into the underlying DataStore.  But I'm not sure this will help 
with creating a fully realized PDF using that layer.  There's no current 
mechanism to say "load the data from the Dyamic Layer in this area so I 
can process it".  In fact, that's often not possible (think of DB tables 
with millions of features...)

It's not immediately obvious to me what the best approach to this is.  I 
think it will have to be require some involvement on the user's part to 
tell the system what data he wants to see in the PDF.  One way to do 
this is to build the PDF out of whatever is currently displayed in the 
view (all this data is cached in memory and is thus available). 


Larry Becker wrote:
> Is this evidence that Stefan's caching theory is correct?  Does "Run 
> datastore query" load into memory immediately and "Add datastore 
> layer" somehow defer the load? 
>
> By the way, PostGIS datastores do result in an object type of Layer, 
> so it is being processed as vectors.
>
> I guess what is needed is a way in the software to detect a PostGIS 
> DataStore Layer and process it separately as in:
>
> if (layer instanceof SomethingNotSureWhat)
>
> regards,
> Larry
>
> On Mon, Nov 9, 2009 at 3:47 PM, Rahkonen Jukka 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Hi,
>
>     I managed to print data from PostGIS to layered pdf by using "Run
>     datastore query" instead of "Add datastore layer".  Pretty nice
>     feature.
>
>     -Jukka-
>
>
>     Stefan Steiniger wrote:
>
>     > I assume it is related to the caching?
>
>     > stefan
>
>     > Rahkonen Jukka wrote:
>     >> Hi,
>     >
>     >> I tried now - no effect at all.  With PostGIS layers open in
>     the task window, only the fence shows in the pdf file.
>     >
>     >> -Jukka-
>     >
>     >
>     > Larry Becker wrote:
>     >
>     > Hmm.  Perhaps PostGIS doesn't descend from Layer.  There is no
>     rendering
>     > optimization for non-Layer data, so it might render like a raster.
>     >
>     > Did you try unchecking the "Change Line Width" check box?
>     >
>     > Larry
>     >
>     > On Mon, Nov 9, 2009 at 12:27 PM, Rahkonen Jukka
>     > <[email protected] <mailto:[email protected]>>wrote:
>     >
>     >> Hi,
>     >>
>     >> No problem in installing, running and creating layered pdf from
>     demo
>     >> shapefiles.  However, it does not print by own vectors from
>     PostGIS into
>     >> pdf.  Layers appear in the resulting file but linework is not
>     visible.  Is
>     >> there some simple reason for this?
>     >>
>     >> -Jukka-
>     >>
>     >>
>     >> Larry Becker wrote:
>     >>
>     >> You can download a prerelease copy here:
>     >>
>     >> http://www.ashsiii.com/downloads/SkyJUMP_12_104.EXE
>     >>
>     >> Larry
>     >>
>     >> On Sat, Nov 7, 2009 at 6:52 AM, Rahkonen Jukka
>     <[email protected] <mailto:[email protected]>
>     >>> wrote:
>     >>> Hi Larry,
>     >>>
>     >>> I would like to have a try.  When do you plan to release a version
>     >>> supporting layered PDF output?
>     >>>
>     >>> -Jukka-
>     >>>
>     >>>
>     >>>
>     >>> -----Alkuperäinen viesti-----
>     >>> Lähettäjä: Larry Becker [mailto:[email protected]
>     <mailto:[email protected]>]
>     >>> Lähetetty: pe 6.11.2009 17:32
>     >>> Vastaanottaja: OpenJump develop and use
>     >>> Aihe: [JPP-Devel] SkyJUMP generating PDF directly with layers
>     >>>
>     >>> I just wanted to report that I have just added direct PDF
>     generation
>     >>> capability to SkyJUMP (committed but build unreleased).  It
>     supports
>     >>> layers,
>     >>> transparency, and high resolution images.  See the link below
>     for an
>     >>> example.  It uses the SkyJUMP print architecture and the iText
>     >>> <http://www.lowagie.com/iText/>library.
>     >>>
>     >>> http://www.ashsiii.com/downloads/SkyJUMP.pdf
>     >>>
>     >>> regards,
>     >>> Larry Becker
>     >>> Integrated Systems Analysts, Inc.
>     >>>
>     >>>
>     >>>
>     >>>
>     >>
>     
> ------------------------------------------------------------------------------
>     >>> Let Crystal Reports handle the reporting - Free Crystal
>     Reports 2008
>     >> 30-Day
>     >>> trial. Simplify your report design, integration and deployment
>     - and
>     >> focus
>     >>> on
>     >>> what you do best, core application coding. Discover what's new
>     with
>     >>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     >>> _______________________________________________
>     >>> Jump-pilot-devel mailing list
>     >>> [email protected]
>     <mailto:[email protected]>
>     >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>     >>>
>     >>
>     >>
>     >> --
>     >> Larry Becker
>     >> Integrated Systems Analysts, Inc.
>     >>
>     >>
>     >>
>     >>
>     
> ------------------------------------------------------------------------------
>     >> Let Crystal Reports handle the reporting - Free Crystal Reports
>     2008 30-Day
>     >> trial. Simplify your report design, integration and deployment
>     - and focus
>     >> on
>     >> what you do best, core application coding. Discover what's new with
>     >> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     >> _______________________________________________
>     >> Jump-pilot-devel mailing list
>     >> [email protected]
>     <mailto:[email protected]>
>     >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>     >>
>     >
>     >
>     >
>
>     
> ------------------------------------------------------------------------------
>     Let Crystal Reports handle the reporting - Free Crystal Reports
>     2008 30-Day
>     trial. Simplify your report design, integration and deployment -
>     and focus on
>     what you do best, core application coding. Discover what's new with
>     Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     _______________________________________________
>     Jump-pilot-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>     
> ------------------------------------------------------------------------------
>     Let Crystal Reports handle the reporting - Free Crystal Reports
>     2008 30-Day
>     trial. Simplify your report design, integration and deployment -
>     and focus on
>     what you do best, core application coding. Discover what's new with
>     Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     _______________________________________________
>     Jump-pilot-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
>
> -- 
> Larry Becker
> Integrated Systems Analysts, Inc.
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   

-- 
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to