From: Jody G. <jod...@gm...> - 2011-01-23 12:20:58
|
Okay it sounds like you are on your way then - app-schema is solving the opposite problem (how to format the output exactly conforming to a provided schema). The property datastore is clear - and extends abstract datastore - allowing you to quickly make a read-only datastore that talks to your web service. I started writing a sequal to this tutorial making use of "ContentDataStore"; but have not found an oppertunity to finish. Jody On 23/01/2011, at 4:03 PM, Keith, Kenny W Mr ARMY GUEST USA USAREUR 7A USA wrote: > Yes you are correct, the format will be the same each time, the only difference will be the data itself. so a good example would a external web service that returns the locations of shipping trucks in a country. the format will always be the same, but the locations of the trucks will be different obviously. I would like to have that be served out as a SLD styled wms vector layer... i do not at this time think i would need to modify it via WFS. i read through the app-schema tutorial but it seems like a custom datastore would be better..... ive already written most of the code kinda using the properties file datastore tutorial but i get confused because im not sure exactly the process is. > > ----- Original Message ----- > From: Jody Garnett <jod...@gm...> > Date: Sunday, January 23, 2011 5:01 > Subject: Re: [Geotools-gt2-users] Custom datastore for geoserver > To: "Keith, Kenny W Mr ARMY GUEST USA USAREUR 7A USA" <ken...@us...> > Cc: geo...@li... > >> Oh I think I understand you; you are hitting up an external service >> (perhaps for weather information for example) - and the output for >> that is the same each time. You want to parse that input and push >> the results out of the DataStore API into geoserver (and thus out >> as all the formats geoserver supports). >> >> Do I understand you correctly? >> >> Jody >> >> On 23/01/2011, at 8:45 AM, Keith, Kenny W Mr ARMY GUEST USA USAREUR >> 7A USA wrote: >> >>> well what i mean is the xml return is in a format that i know >> what each element is. It will return a lat lon so a geometry point >> will need to be created for that im assuming... so you think the >> app schema will work? is there a tutorial somewhere that will give >> me an idea of how to do this? >>> >>> ----- Original Message ----- >>> From: Jody Garnett < >>> Date: Saturday, January 22, 2011 23:25 >>> Subject: Re: [Geotools-gt2-users] Custom datastore for geoserver >>> To: "Keith, Kenny W Mr ARMY GUEST USA USAREUR 7A USA" < >>> Cc: geo...@li... >>> >>>> The DataStore api is used to access data; at the Java level. >>>> >>>> The part about returning its content is a known xml schema not >>>> exactly on >>>> track with that; at the Java level we have a data structure called >>>> FeatureType which describes what infromation is available. >>>> GeoServer takes >>>> this FeatureType description and is able to advertise it as either >>>> a GML3 >>>> Schema or a GML2 Schema. >>>> >>>> The application schema module in geotools; combined with GeoServer is >>>> intended to address your issue. It allows you to map elements of >>>> data access >>>> (ie the datastore api) to a specific target schema. >>>> >>>> Jody >>>> >>>> On Sat, Jan 22, 2011 at 3:32 PM, Keith, Kenny W Mr ARMY GUEST USA >>>> USAREUR 7A >>>> USA <>> >>>>> Hello list, im looking to create a custom datastore for geoserver. ive read >>>>> through the api and a few tutorials including the properties file tutorial. >>>>> Unfortunately im still kind of confused. The datastore i wish to create and >>>>> implement would be a datastore that would connect to a web service that >>>>> returns it's content in a known xml schema. what i would like to do is have >>>>> geoserver connect to this webservice get the xml content and parse it. once >>>>> parsed the necessary information geoserver needs would be available.... i >>>>> understand this is really just coding and i feel i can handle this >>>>> project... the only challenge i have is understanding where to start, what i >>>>> need and the best process to use in order to ensure that geoserver will >>>>> recognize the featuretypes,feature content, datastore etc. If anyone could >>>>> assist me with this it would be greatly appreciated. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>>>> Finally, a world-class log management solution at an even better >>>>> price-free! >>>>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>>>> February 28th, so secure your free ArcSight Logger TODAY! >>>>> http://p.sf.net/sfu/arcsight-sfd2d >>>>> _______________________________________________ >>>>> Geotools-gt2-users mailing list >>>>> Geo...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>>> >> |