<br><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 7:28 PM, Tyron Madlener <span dir="ltr"><<a href="mailto:tyronx@gmail.com">tyronx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Jun 2, 2011 at 3:29 PM, Madhura Jayaratne <<a href="mailto:madhura.cj@gmail.com">madhura.cj@gmail.com</a>> wrote:<br>
><br>
><br>
> On Thu, Jun 2, 2011 at 6:16 PM, Tyron Madlener <<a href="mailto:tyronx@gmail.com">tyronx@gmail.com</a>> wrote:<br>
>><br>
>> On Thu, Jun 2, 2011 at 2:35 PM, Madhura Jayaratne <<a href="mailto:madhura.cj@gmail.com">madhura.cj@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> ><br>
>> > On Thu, Jun 2, 2011 at 1:32 PM, Tyron Madlener <<a href="mailto:tyronx@gmail.com">tyronx@gmail.com</a>> wrote:<br>
>> >><br>
>> >> On Thu, Jun 2, 2011 at 4:27 AM, Madhura Jayaratne<br>
>> >> <<a href="mailto:madhura.cj@gmail.com">madhura.cj@gmail.com</a>><br>
>> >> wrote:<br>
>> >> ><br>
>> >> ><br>
>> >> > On Thu, Jun 2, 2011 at 1:42 AM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> Madhura Jayaratne a écrit :<br>
>> >> >> (...)<br>
>> >> >> > > Hi Ammar,<br>
>> >> >> > ><br>
>> >> >> > > I'm not sure what exactly your requirement is. But pls<br>
>> >> >> > have a<br>
>> >> >> > look<br>
>> >> >> > > at the visualization of data at [1] by clicking on the<br>
>> >> >> > 'Visualize<br>
>> >> >> > > GIS data' link in the 'Query results operations'<br>
>> >> >> > section<br>
>> >> >> > towards the<br>
>> >> >> > > bottom of the page. Try out zooming by double clicking<br>
>> >> >> > and<br>
>> >> >> > panning<br>
>> >> >> > > by dragging. I believe you are looking for something<br>
>> >> >> > like<br>
>> >> >> > this for<br>
>> >> >> > > your zoom search feature.<br>
>> >> >> ><br>
>> >> >> > Madhura,<br>
>> >> >> ><br>
>> >> >> > I have issues operating panning and zooming. Here is the<br>
>> >> >> > scenario:<br>
>> >> >> ><br>
>> >> >> > 1. Browse world_cities and click Visualize GIS data<br>
>> >> >> > 2. Click-drag: pans OK<br>
>> >> >> > 3. Double-click: this is a zoom out, I guess<br>
>> >> >> > 4. Click-drag: no panning<br>
>> >> >> > 5. Click "zoom out": data points are enlarging, isn't this a<br>
>> >> >> > zoom-in?<br>
>> >> >> ><br>
>> >> >> > Marc,<br>
>> >> >> ><br>
>> >> >> > This is a Firefox compatibility problem. Resolved and pushed to<br>
>> >> >> > the<br>
>> >> >> > repo. Demo will take some time to upgrade to the new version.<br>
>> >> >> > Meanwhile<br>
>> >> >> > if you have Chrome, you can still experience what it's suppose to<br>
>> >> >> > do.<br>
>> >> >><br>
>> >> >> Madhura,<br>
>> >> >> ok, panning and zooming are fine now.<br>
>> >> >><br>
>> >> >> Is the saving feature ready? I tried to save in PNG and got a bunch<br>
>> >> >> of<br>
>> >> >> binary data on-screen.<br>
>> >> >><br>
>> >> >> Saving in PDF generates<br>
>> >> >> Fatal error: Call to undefined method<br>
>> >> >> PMA_GIS_Visualization::toFileAsPdf() in<br>
>> >> >><br>
>> >> >><br>
>> >> >> /srv/http/<a href="http://pma.cihar.com/gsoc-madhura/libraries/gis_visualization.lib.php" target="_blank">pma.cihar.com/gsoc-madhura/libraries/gis_visualization.lib.php</a><br>
>> >> >> on line 161<br>
>> >> >><br>
>> >> >> --<br>
>> >> >> Marc Delisle<br>
>> >> >> <a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
>> >> >><br>
>> >> > Hi Marc,<br>
>> >> > In my previous mail to the group, I mentioned that this feature is<br>
>> >> > not<br>
>> >> > yet<br>
>> >> > ready. BTW, this is a feature which is to be delivered in the second<br>
>> >> > half of<br>
>> >> > GSoC (after mid-term eval), according to the schedule. However I<br>
>> >> > started<br>
>> >> > working on it, since it is very much related to what I've done so<br>
>> >> > far. I<br>
>> >> > should be able to get it ready (for all 3 formats, SVG, PNG and PDF)<br>
>> >> > by<br>
>> >> > the<br>
>> >> > end of this week.<br>
>> >><br>
>> >> Just in case I'm allowed to use Highcharts, could you make your<br>
>> >> conversion code generic enough so I could use it too? :)<br>
>> >> And just for your information, the current SVG converter of highcharts<br>
>> >> uses following post variables to a php file that calls a java tool<br>
>> >> (source is available btw):<br>
>> >><br>
>> >> * $tempName string The desired filename without extension<br>
>> >> * $type string The MIME type for export.<br>
>> >> * $width int The pixel width of the exported raster image. The height<br>
>> >> is calculated.<br>
>> >> * $svg string The SVG source code to convert.<br>
>> >><br>
>> > Hi Tyron,<br>
>> > For my work I am not doing any conversions as such. I am generating SVGs<br>
>> > and<br>
>> > PNG separately in their basic forms. It's not that I generate it in one<br>
>> > form<br>
>> > and converting it to the other.<br>
>> > --<br>
>><br>
>> Does that mean you use jQuery SVG to generate the SVG and build/use<br>
>> another rendering library that generates the PNG/PDF? Why not just<br>
>> build a converter? That seems like a more reusable solution.<br>
>><br>
> I use GD extension to generate PNGs and will be using TCPDF (which is<br>
> already included in PMA) to generate PDFs. Since both GD and TCPDF support<br>
> rendering basic shapes, I find this approach needs only few additional lines<br>
> of code, which would not have been the case if I am to build a converter.<br>
<br></div></div></blockquote><div>In total I did not have to add more that 100 LOC to get all 7 geometric types to PNG. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="h5">
</div></div>A disadvantage is that you will have duplicate code. Also if we would<br>
have a converter we could include some cool features such as exporting<br>
the SVG with its currently selected zoom level and pan - which might<br>
turn out really useful for big amounts of data.<br></blockquote><div><br></div><div>Well, I agree that this will be useful. </div><div>About code duplication, I tried my best with a good class hierarchy to ensure that code duplication is minimized as much as possible. </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
And it will turn out really useful when I'm allowed use Highcharts for<br>
the status page. There the conversion code will be ~100% reusable.<br>
<br>
So how about we build one together? :)<br></blockquote><div><br></div><div>Great idea!!! But I doubt whether I will have enough time for this, since my GSoC project is 'OpenGIS support for PMA' and not 'OpenGIS visualization support for PMA' :) There is lot more I promised to deliver that is related to OpenGIS.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There should be some lib for it anyway. Might even turn out to be<br>
easier than the code to generate a PNG.<br>
<br></blockquote><div> </div></div>-- <br>Thanks and Regards,<div><br></div><div>Madhura Jayaratne<br><div><br></div></div><br>