Bug 429 - ExtractWFS data not working in 1.99 beta 1
: ExtractWFS data not working in 1.99 beta 1
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 normal
: 1.99 beta 4
Assigned To:
:
:
:
: 367
: 319 321
  Show dependency treegraph
 
Reported: 2004-06-01 06:33 by
Modified: 2008-01-03 16:14 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-06-01 06:33:15
Hi,

The ExtractWFSData widget is not working anymore, probably because of a name 
clash, the error I am getting is:

Fatal error: Cannot redeclare getgml() (previously declared in C:\ms4w_20
\apps\chameleon\htdocs\widgets\ExtractWFSData\ExtractWFSData.php:528) in 
C:\ms4w_20\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 822
------- Comment #1 From 2004-06-01 09:02:59 -------
Bill, please take care of this one.
------- Comment #2 From 2004-06-03 22:28:59 -------
FIxed in cvs.  Update the extractwfs widget to use the common get GML function
in the LayerAttributes.php.
------- Comment #3 From 2004-06-04 02:41:11 -------
Hi Bill,

this part works now, but the widget is still not fully functional. But this is 
caused by the fact that a few common directories are missing from the Chameleon 
1.99 beta 1 MS4W package:

common/ogr
common/tar
------- Comment #4 From 2004-06-04 05:50:34 -------
this is because they are missing from the makefile, I've updated the makefile
and the next release will have it :)
------- Comment #5 From 2004-06-22 09:20:03 -------
Currently I am verifing bugs for the release of beta 2.
Bill, can you take a look at this or comment on this bug. I tried to use the
WFSExtract in the sample application, the popup worked, but when pushing the
extract button, nothing!

http://localhost/chameleon/samples/sample_ogc.phtml

Was this the problem you had?
------- Comment #6 From 2004-06-22 09:29:25 -------
Chris, 
Bart has just committed a change to the ExtractWFSData widget.  It now requires
.../common/zip/zip.php.  Can you please update your php_utils and include this
file and let me know if the problem still happens?
------- Comment #7 From 2004-06-22 09:47:00 -------
Also, the ExtractWFSData widget has got a new required attribute now, called
compressionformats.

The tools_ogc.html and the tools_roi.html templates in the samples directory
need to be changed.

<cwc2 type="ExtractWFSData" styleresource="NavButton" visible="true"
image="/ms4w_20/apps/chameleon/htdocs/images/tool_extract_off.png"
imagetip="Download shapefile of GML" imagewidth="24" imageheight="24"
popupwidth="450" popupheight="300" toolbar="false" status="false"
menubar="false" outputformats="Shape,GML" compressformats="ZIP,TGZ" >
    <image state="normal"/>
    <image state="hover"/>
</cwc2>

See bug 367 for more info.
------- Comment #8 From 2004-06-22 09:47:31 -------
Sorry bill, I am unable to test your latest CVS update, since I have been given
a specific beta 2 version from paul. This bug will still be set to reopened
until paul decides to either set this new fix to beta 3 target or creates a new
build of beta 2.
------- Comment #9 From 2004-06-22 10:05:31 -------
Why is compressformats a required attribute?  It seems to me that it would be
better to simply assume no compression if the attribute is not set?
------- Comment #10 From 2004-06-22 10:16:53 -------
That's a possibility Daniel, would require a few changes though.

As both GML and shapefiles compress well, it seemed a good idea to me 
to "encourage" the user to download the content compressed.

Let me know which way you guys want to proceed, and I'll make the changes if 
necessary.
------- Comment #11 From 2004-06-22 10:57:51 -------
Daniel, this was an oversight in the design.  The original requirements for the
widget were to download a compressed verion, the decision was made at design
time to allow the user to download the uncompressed format if they wanted.

As Bart said, it would require a number of changes.  This is because the
compression format is firmly tied to the GUI.

I do agree that it could be made an optional component.
------- Comment #12 From 2004-07-08 11:11:39 -------
target beta 3 for testing.  Bart, are you going to address the changes in
functionality described above?
------- Comment #13 From 2004-07-08 12:03:35 -------
Paul, I will probably do the changes somewhere next week.
------- Comment #14 From 2004-10-05 21:48:14 -------
Bart, have you committed the changes for this widget?  We are into a final round
of bug fixes for beta 3.
------- Comment #15 From 2004-10-06 11:40:58 -------
The way the code is implemented right now, the compression and output formats
are specified as sub-tags in the widget declaration which is cool.  There is no
way to  make subtags mandatory except to produce an error in the widget code
(i.e. the framework won't choke on it)  I notice that there are reasonable
default choices for compression and output formats (zip/tgz and gml/shape).  I
don't think having a choice for no compression is a good idea unless you are
selecting GML ... and getting into different compressions for different formats
is not something we are going to address right now.

I am going to mark this bug as fixed because the main issue in this bug is
addressed and working.  If the features need to change, then an enhancement bug
can be filed describing how the widget should be changed.
------- Comment #16 From 2004-10-25 08:25:48 -------
Changed target for verification to 1.99 RC 1.
------- Comment #17 From 2004-10-30 07:05:05 -------
Paul, the changes were committed indeed, sorry I did not update the bug report 
after this. 

Also, I am just working through my e-mails after being on holiday until 19th of 
October, so that explains my slow response :)
------- Comment #18 From 2008-01-03 16:14:06 -------
*** Bug 417 has been marked as a duplicate of this bug. ***