On Mon, Oct 25, 2010 at 4:21 PM, Justin Deoliveira <[email protected]> wrote: > I like the idea. It would be nice to however imo not to explode the number > of templates. Could you pull it off with a single template? I guess for name > of the zip file and the name of the shapefile you won't have new lines so > you could use the first two lines for that. And then the remaining lines for > the description? Just a suggestion.
Ah, a single template with three subsequent lines... may look like this: <company>-<date> <company>-<date>-<layer> <company>-<date> first line for the zip file, second for the single shapefile, third for the request dump? May actually work. I like the fact that you have just one file to deal with. I'm a bit worried about users wondering how to just specify, for example, the shapefile name (you'd have to leave the first line empty or something like that). Or maybe it could be a templated property file: zip=<company>-<date> shp=<company>-<date>-<layer> req=<company>-<date> That way we give a name to each line. Hmmm.... not sure. Having three files does not look so bad to me. Having recently seen people struggle with ftl files I am a bit weary to give them more meaning or structure than usual. Cheers Andrea > On Mon, Oct 25, 2010 at 5:00 AM, Andrea Aime <[email protected]> > wrote: >> >> Hi, >> I'm looking into making some changes into the shape-zip output format to >> improve >> traceability and output customization and I'd like to pass them by the >> community before >> going down and implement them. >> >> Traceability of the outputs is important in some circles: people want >> the files to contain >> information about where the files come from, when they were generated, and >> how. >> >> To satisfy this requirements we want to make the zip file name >> configurable so that >> it might contain a company name and the ISO date of the request. >> The same goes for the single shapefiles in it, they would have to >> contain the company >> name, the ISO date of the request and of course the name of the layer. >> >> In order to support traceablity instead I want to add a new file that >> contains the actual >> WFS request, as a URL in case of a GET request, as a XML dump in case >> of a POST request. >> This new file will be added to the lot of files contained in the zip file. >> >> To satisfy the above and keep a general approach I want to roll out a >> handful of new >> freemarker templates: >> - shapezip.ftl: will generate the zip file name given the request >> time, the list of layers requested >> - shapefile.ftl: will generate the shapefile name given the request >> time and the layer name >> - shapedesc.ftl: will generate the request description file name >> >> People can then place those freemarker in the usual workspace >> hierarchy (for the shapezip.ftl >> we'll use the first layer as a reference in case of a multilayer request). >> >> If no templates are to be found the code will just use the current >> naming strategies and name >> the request description file as request.txt >> >> Opinions? >> >> Cheers >> Andrea >> >> ----------------------------------------------------- >> Ing. Andrea Aime >> Senior Software Engineer >> >> GeoSolutions S.A.S. >> Via Poggio alle Viti 1187 >> 55054 Massarosa (LU) >> Italy >> >> phone: +39 0584962313 >> fax: +39 0584962313 >> >> http://www.geo-solutions.it >> http://geo-solutions.blogspot.com/ >> http://www.linkedin.com/in/andreaaime >> http://twitter.com/geowolf >> >> ----------------------------------------------------- >> >> >> ------------------------------------------------------------------------------ >> Nokia and AT&T present the 2010 Calling All Innovators-North America >> contest >> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >> marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> _______________________________________________ >> Geoserver-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-devel > > > > -- > Justin Deoliveira > OpenGeo - http://opengeo.org > Enterprise support for open source geospatial. > -- ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
