GML upload debugging help

6 views
Skip to first unread message

danomatika

unread,
Jan 2, 2011, 9:36:02 AM1/2/11
to Graffiti Markup Language
Howdy all,

I'm working on a small GML uploader for OpenFrameworks and need a
little help.

https://github.com/danomatika/ofxGmlUploader

Currently, I can upload the GML data itself fine, but none of my
optional parameters make it through ie no username, keywords, etc. I'm
formatting the POST query like so:

application=ofxGmlUploader&gml=<gml><pt><x>1</x><y>1</y><t>1</t></pt></
gml>&username=danomatika&author=Dan Wilcox&keywords=test, throw this
away, ofxGmlUploader, danomatika

but only the gml seems to make it though. Am I missing something?

Also, it would be nice if the server returned a status string that
could be used for debugging as well as "dry run" option where it
wouldn't actually post the data, just parse it and return said string.

-----------
Dan Wilcox
danomatika.com
robotcowboy.com

Jamie Wilkinson

unread,
Jan 2, 2011, 2:26:09 PM1/2/11
to graffiti-mar...@googlegroups.com, Graffiti Markup Language
Hi Dan, love the plugin idea and all great points. I'm AFK but will test yr params later today. Offhand:

It's a little nebulous right now which fields are allowed via params, parses from the raw GML, or both -- most apps to date put keywords and author et al inside the raw GML, but I will make sure both techniques work as expected.

FYI fields passed via params will also be injected back into the raw GML so it's available to people who download

What kind of debugging strings were you looking for when uploading? You might also check out the /validate endpoint which can be used for testing

Maybe "dry run" upload basically just does validation? Makes sense to simplify to one endpoint. Ease of implementation is a priority so notes are very much appreciated!

> --
> -~-~-~-~-~-~>
> GML Mailing List: http://groups.google.com/group/graffiti-markup-language
> Unsubscribe: graffiti-markup-la...@googlegroups.com

danomatika

unread,
Jan 3, 2011, 6:35:16 PM1/3/11
to Graffiti Markup Language
I followed the wiki in that I figured I could add the parameters
separately and it would add them to the GML for me, but isn't working
so far.

Also, I didn't know about the validate page, there isn't anything on
it in the wiki. It dosen't work for me, throws 404s when used manually
and just returns the page html when http POSTING.

As for error strings, it would be useful just to get a basic string
(possibly with and error code) based on where the parsing succeeds or
fails: "0 gml uploaded successfully", "1 POST error", "2 gml dosen't
validate", "3 username does not exist", etc

On Jan 2, 8:26 pm, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> Hi Dan, love the plugin idea and all great points. I'm AFK but will test yr params later today. Offhand:
>
> It's a little nebulous right now which fields are allowed via params, parses from the raw GML, or both -- most apps to date put keywords and author et al inside the raw GML, but I will make sure both techniques work as expected.
>
> FYI fields passed via params will also be injected back into the raw GML so it's available to people who download
>
> What kind of debugging strings were you looking for when uploading? You might also check out the /validate endpoint which can be used for testing
>
> Maybe "dry run" upload basically just does validation? Makes sense to simplify to one endpoint. Ease of implementation is a priority so notes are very much appreciated!
>

Evan Roth

unread,
Jan 26, 2011, 8:53:43 AM1/26/11
to graffiti-mar...@googlegroups.com
Greetings all,
Just wanted to check and see if there have been any GML OF updates
recently? I know there has been some development on libs / up-loaders,
and just wanted to see if anything is nearing publication?

I'm asking in part because Jerome (http://www.saint-clair.net) is close
to releasing a very complete set of GML tools for Processing, and it
would be great to also point to something in OF?

Evan

Theo Watson

unread,
Jan 26, 2011, 9:07:52 AM1/26/11
to graffiti-mar...@googlegroups.com
Hey!

Quick thought:
If the tools Jerome is working have a nice api, then it might make sense to have him release an OF port too?
That way if you use one you know how to use the other.

I would be happy to him port it to openFrameworks, if he needs any help!

Theo

----------------------------------------------
Theo Watson
http://theowatson.com
http://openframeworks.cc
----------------------------------------------

Jerome Saint-Clair

unread,
Jan 26, 2011, 9:18:08 AM1/26/11
to graffiti-mar...@googlegroups.com
Hey,

Here comes the long awaited opportunity to jump into oF.

I can't promess I can do that on my own in a reasonable time frame,
but if I can have your help when needed, that's really welcomed.


----------------------------------------------------------------

Theo Watson

unread,
Jan 26, 2011, 9:22:45 AM1/26/11
to graffiti-mar...@googlegroups.com
Great! :) 

I had a quick peek at the code and it looks pretty do-able. 
The next release of OF has file loading from url etc 

Just send me a message if you need any help or have questions!

Cheers,
Theo

Jerome Saint-Clair

unread,
Jan 26, 2011, 9:28:23 AM1/26/11
to graffiti-mar...@googlegroups.com
Ok, let's do that.
Thanks for your help.

J

On Wednesday, January 26, 2011, Theo Watson <th...@theowatson.com> wrote:
> Great! :)
> I had a quick peek at the code and it looks pretty do-able. The next release of OF has file loading from url etc
> Just send me a message if you need any help or have questions!
> Cheers,Theo
> On 26 Jan 2011, at 09:18, Jerome Saint-Clair wrote:
> Hey,
>
> Here comes the long awaited opportunity to jump into oF.
>
> I can't promess I can do that on my own in a reasonable time frame,
> but if I can have your help when needed, that's really welcomed.
>
>
> ----------------------------------------------------------------
>
>
>
> On Wed, Jan 26, 2011 at 3:07 PM, Theo Watson <th...@theowatson.com> wrote:
>
>
> Hey!
>
> Quick thought:
> If the tools Jerome is working have a nice api, then it might make sense to have him release an OF port too?
> That way if you use one you know how to use the other.
>
> I would be happy to him port it to openFrameworks, if he needs any help!
>
> Theo
>
> ----------------------------------------------
> Theo Watson

> http://theowatson.com <http://theowatson.com/>
> http://openframeworks.cc <http://openframeworks.cc/>


> ----------------------------------------------
>
> On 26 Jan 2011, at 08:53, Evan Roth wrote:
>
>> Greetings all,
>> Just wanted to check and see if there have been any GML OF updates recently? I know there has been some development on libs / up-loaders, and just wanted to see if anything is nearing publication?
>>

>> I'm asking in part because Jerome (http://www.saint-clair.net <http://www.saint-clair.net/>) is close to releasing a very complete set of GML tools for Processing, and it would be great to also point to something in OF?

--
----------------------------------------------------------------
*Contact info: *http://tinyurl.com/jscContact*
*----------------------------------------------------------------*
*

Jamie Wilkinson

unread,
Jan 26, 2011, 11:51:29 AM1/26/11
to graffiti-mar...@googlegroups.com
Rock. I know Dan Wilcox & Golan have something brewing too (but might be waiting for 000book bugfixes from me?)

danomatika

unread,
Jan 27, 2011, 2:10:54 PM1/27/11
to Graffiti Markup Language
Well I have http://github.com/danomatika/ofxGmlUploader which uploads
the gml fine, but without the meta data ...

but haven't looked at the code since the beginning of this month. I
was still waiting on 000book being able to handle the username,
keywords, etc. I am happy to use the existing code as a basis for a
port of the processing lib, but I wouldn't be abel to get to until
next week.

On Jan 26, 11:51 am, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> Rock. I know Dan Wilcox & Golan have something brewing too (but might be waiting for 000book bugfixes from me?)
>
> On Jan 26, 2011, at 6:28 AM, Jerome Saint-Clair wrote:
>
>
>
>
>
>
>
> > Ok, let's do that.
> > Thanks for your help.
>
> > J
>
> > On Wednesday, January 26, 2011, Theo Watson <t...@theowatson.com> wrote:
> >> Great! :)
> >> I had a quick peek at the code and it looks pretty do-able. The next release of OF has file loading from url etc
> >> Just send me a message if you need any help or have questions!
> >> Cheers,Theo
> >> On 26 Jan 2011, at 09:18, Jerome Saint-Clair wrote:
> >> Hey,
>
> >> Here comes the long awaited opportunity to jump into oF.
>
> >> I can't promess I can do that on my own in a reasonable time frame,
> >> but if I can have your help when needed, that's really welcomed.
>
> >> ----------------------------------------------------------------
>
Reply all
Reply to author
Forward
0 new messages