I have a bunch of GPX files on our server and would like to overlay them on top of a Google Map to display them on our website. We use Perl for all our site scripts however we're having a hard time figuring out how to format the data correctly to display it in Google Maps.
I'm hoping that some GPX expert out there can explain at a high level how we can best accomplish this and provide some sample perl code to correctly process the GPX file and print out the necessary HTML to display it on a Google Map.
Thanks in advance for your help!!!
The tool you really want to use is GPSBabel. If you want a somewhat perlish interface to it, rather than just driving it from the commandline, there's also a GPS::Babel module.
Related
I'm using perl with an excel template to try to make creating invoices for clients somewhat automated. My only issue is that I'd really like to be able to convert this excel file to a PDF when I'm done, but I can't seem to find any perl modules that do anything of the sort. Anyone ever heard of something like this being done? I know it can be done somehow, since word and open office manage to do it!
Simply shell out to unoconv.
There are also Perl bindings to UNO, but last time I looked, they didn't work.
You may have to convert/flatten the Excel file first, and then figure out a way to pipe it in, but this may get you headed in the right direction http://metacpan.org/pod/PDF::Create
I want to parse an excel sheet and have to display the content in table view. Suggestions please.
The easiest way is to save your excel file as a text file with tab delimiters. This way its straight forward. In case you like to do some "intelligent" parsing - you may just take a look at one of these many parser tutorials for the iPhone. I am sure, you will be able to build on these sample quite easily.
Is it possible for it to retain its display formatting, and links to Internet sites?
UIWebView can display Excell documents. Just open them like you would any other HTML file. Not sure about the display formatting or links though.
http://developer.apple.com/library/ios/#qa/qa1630/_index.html
My approach would be a little bit different. If you have a way to get to the displayed data (e.g. parse the excel file, or if possible use a csv or plist). Then you could use CorePlot to display the data. I really like this SDK, because you can nearly customize everything. ;-)
Sandro
I am making an iPhone application and i want to use libical to parse .ics dat from an .ics file OR from the URL location of the .ics file..
Firstly i want to know how i would go about using libical in my project? How to add it into my iphone project etc.. ive seen some guides but they seem to be specific to OSX projects and not iphone projects..
Secondly i want to parse event names and their descriptions, so i that i can store the event names/ descriptions as variables..
I was wondering if this was possible using libical.. if so could someone please show me roughly how i may go about implementing this...
Any and all information will be very much appreciated!
Thank You For Reading
I know it might not be a very helpful answer - posting it because i can't comment on the question, so sorry for that - but ics data files are relatively easily parsable. Open one in a text editor and take a look, i've implemented an ics parser before for exactly what you're trying to do, took me a couple of hours, and trying to get all sorts of libraries to compile used taken me more in a few occasions :)
Found an excellent library for parsing .ics files. There are a whole lot of functions too for other tasks like managing calendar and calendar events.
https://github.com/KiranPanesar/MXLCalendarManager
Is there a test suite for PDFs, preferably in Perl? What I want is some function to test positioning and existence of some text (and if possible a name of a grapic) in a PDF file. Is this theoritically possible with PDF markup?
Thank you for your help.
As jrockway said, there's not a 100% solution available today. With my CAM::PDF library, you can compute positions for any element in the document. See my answer to "How do I get character offset information from a pdf document?" which shows how to extract coordinates for all text on a page.
I don't think there is anything pre-built on the CPAN, but Test::Builder and CAM::PDF should allow you to write what you want.
Once you get it working, upload it to the CPAN... and then there will be a way to test PDFs on the CPAN :)