Re: [Geotools-devel] GTXML code generation & data sources

2013-04-02 Thread Andrea Aime
On Sat, Mar 23, 2013 at 9:59 PM, Ákos Maróy  wrote:

> Hi,
>
> I'm (still) trying to create a Data Store that can handle an XML file
> format defined by an XML Schema, which is based on GML. The XML schema
> itself is quite complex, therefore I'd do as much code generation based
> on the schema as possible. I do have JAXB properly generating an API
> based on the XML Schema I have, which is AIXM.
>
>
Akos,
I've read a few of your mails and I'm going to try to provide a single
answer to them.

If I understand correctly, you want to parse AIXM, a GML based XML file,
and render it on a map.
Regardless of how you approach this, going directly from XML to map
rendering is going to
be, uh, gut feeling, 10-100 times slower than rendering a binary data
source that has any
sort of spatial indexing (e.g., shapefile).

So, my first observation would be, if you have to repeatedly render the
same file over and over,
is there any way you can turn it into something more efficient to read?
I don't have good suggestions on the how though.

About parsing the XML, all the solutions you're looking into have some
value, but if you have
to render I'd stay away from generic ones and go straigth to something that
is optimized.
Either a hand written XML pull parser, which builds complex features
directly, or JAXB,
which generates a large object model that you have then to copy into
geotools complex features.
The latter has the defect that it will load the whole file in memory, which
is not good if you are
trying to render large amounts of AIXML, and won't allow you to do any
filtering, whilst a hand
written xml pull parser could also take into account the current filters
and be smart about
what it's loading.
Also, with the hand written version I can imaging someone (ab)using the
shapefile quadtree file
(.qix)   to store the bbox and offset of the first char of each feature,
and leverage that to
speed up spatial oriented reads (ok, this is not easy, but it's a
possibility).

As for building complex feature data stores we don't have tutorials, but
look at the complex
feature building code that we have in the GeoServer CSW module (referred to
it in another
mail sent a few minutes ago), that might serve as a template

Hope this helps

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] Monday meeting and Italian national holidays

2013-04-02 Thread Justin Deoliveira
Yeah, there was no meeting, or at least noone showed else showed up in IRC.


On Tue, Apr 2, 2013 at 2:13 AM, Ben Caradoc-Davies <
ben.caradoc-dav...@csiro.au> wrote:

> On 02/04/13 16:07, Andrea Aime wrote:
>
>> I like 13:00 UTC:
>> http://www.timeanddate.com/__**worldclock/meetingdetails.__**
>> html?year=2013&month=4&day=15&**__hour=13&min=0&sec=0&p1=55&**
>> p2=__215&p3=196&p4=240
>>
>> > html?year=2013&month=4&day=15&**hour=13&min=0&sec=0&p1=55&p2=**
>> 215&p3=196&p4=240
>> >
>> Yes, I like that time too.
>> Btw, wasn't there any meeting yesterday? I saw no meeting minutes on the
>> mailing list
>>
>
> I think everyone else had a holiday as well.
>
>
> --
> Ben Caradoc-Davies 
> Software Engineer
> CSIRO Earth Science and Resource Engineering
> Australian Resources Research Centre
>



-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] Monday meeting and Italian national holidays

2013-04-02 Thread Ben Caradoc-Davies
On 02/04/13 16:07, Andrea Aime wrote:
> I like 13:00 UTC:
> 
> http://www.timeanddate.com/__worldclock/meetingdetails.__html?year=2013&month=4&day=15&__hour=13&min=0&sec=0&p1=55&p2=__215&p3=196&p4=240
> 
> 
> Yes, I like that time too.
> Btw, wasn't there any meeting yesterday? I saw no meeting minutes on the
> mailing list

I think everyone else had a holiday as well.

-- 
Ben Caradoc-Davies 
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] Monday meeting and Italian national holidays

2013-04-02 Thread Andrea Aime
On Tue, Apr 2, 2013 at 6:18 AM, Ben Caradoc-Davies <
ben.caradoc-dav...@csiro.au> wrote:

> Now that the North has entered Daylight Saving time, should we reconsider
> the time of Monday meetings? They were originally at 13:00 UTC, but we
> moved to 13:30 UTC when DST started in the North.
>
> Goal: include both Jody (UTC+10) and Justin (UTC-6). DST ending in Sydney
> and starting in the North moves Justin and Jody two hours closer.  :-)
>
> Next meeting is 15 April:
> http://www.timeanddate.com/**worldclock/meetingtime.html?**iso=20130415&;
> p1=55&p2=215&p3=196&p4=240
>
> I like 13:00 UTC:
> http://www.timeanddate.com/**worldclock/meetingdetails.**
> html?year=2013&month=4&day=15&**hour=13&min=0&sec=0&p1=55&p2=**
> 215&p3=196&p4=240


Yes, I like that time too.
Btw, wasn't there any meeting yesterday? I saw no meeting minutes on the
mailing list

Cheers
Andrea



-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---
--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel