Olivier, Would it be difficult to merge writeXml and writeXml2 into one? I assume this should make it easier for users like Pere.
Olivier Terral wrote: > Hi pere roca, > > > pere roca a écrit : > >> hi everybody, >> >> I'm using mapbuilder Version: 1.5-alpha1 over Tomcat 5.5. >> >> Sorry if this is a too long question here is a shortcut: >> >> 1- it's possible to manipulate and visualize SLDs (not in WebMapContext) >> without saving? >> 2- I cannot save (serialize) a new SLD file with the name I want (it >> generates a cmbXXXX.xml file, even if I declare, in ModelBase, var >> response=postGetLoad(config.serializeUrl,objRef.doc,"text/xml","/temp","myNAME.sld"); >> Do I have to directly work over XMLSerializer? (should be in >> server/java/src/mapbuilder/XmlSerializer, but cannot find it!! >> >> > You must use the servlet writeXml2 instead of writeXml (default one), > specify a serializeUrl in your config : > > <serializeUrl>writeXml2</serializeUrl> > > The writeXml2 servlet works with the XMLSerializer2.class > (server/java/src/mapbuilder/XmlSerializer2.java) > The only difference between writeXml and writeXml2 is writeXml2 allows > GET params (http://...../writeXml2?dir=/temp&fileName=/myNAME.sld) and > writeXml no. > The XMLSerializer2.java and the postGetLoad function was created > specially for the SLD Editor so use it . > > > Bye > >> Well,here is the long mail: >> >> I want users to insert point data, after that a SLD is dynamically >> constructed (php extract from database and applies an XSLT) and now I wanna >> allow people to symbolize these points. >> >> Till now I've been playing with the WMC (has an static <SLD>, just for >> testing), changing size, colors, etc. (you can take a look at >> http://edit.csic.es/edit_geo/prototype/edit_project.html , go to Iberian >> Peninsula (latlong) and click Sample Point Data->Data Symbolization; only >> for Firefox 2.0 for the moment!!) >> >> I've seen in mapbuilder's SLD demo that you allways manipulate the WMC and >> set a mainMap refreshing (that's also the way I've been working till now). >> SLD-Body length is limited (and cannot get a legend from that), so I want to >> directly manipulate the basic SLD previously created. >> >> So, following the SLDEditor demo, I added to config.xml >> >> <StyledLayerDescriptor id="mySLD"> >> <defaultModelUrl>http://localhost/generos2.sld</defaultModelUrl> >> </StyledLayerDescriptor> >> >> Shortly, I change for example the Size node, as follows: >> >> >> SizeNode=config.objects.mySLD.doc.selectSingleNode(""+xpath+"").firstChild; >> SizeNode.nodeValue="new size value"; >> >> If I make changes to mySLD and apply in Firebug: >> console.dirxml(config.objects.mySLD.doc); I can see how the values in >> generos2.sld change, but it's not reflected in the mainMap (even if i use a >> config.objects.mainMap.setParam("refresh"); >> >> So I deducted that may be I should "permanently write" this new SLD, >> overwriting the "old" one (the one without the desired symbology) and >> performing a refreshing. The "Create SLD file" button >> (config.objects.mySLD.saveModel(config.objects.mySLD)) should be the >> solution (see SLD Editor demo in mapbuilder Version: 1.5-alpha1), but after >> searching and manipulating everything, I really cannot save the xml file >> with the name I want. Event if I explicitly declare in saveModel function >> (ModelBase.js) >> >> var >> response=postGetLoad(config.serializeUrl,objRef.doc,"text/xml","/temp","myName.xml"); >> >> Do I have to directly work over XMLSerializer? (should be in >> server/java/src/mapbuilder/XmlSerializer, but cannot find it!! I've seen it >> in this previous Nabble message >> http://www.nabble.com/Where-is-%22serializeUrl%22--td15541147.html#a15567818) >> >> No way to configure a so simple thing? >> >> Thanks in advance, >> >> Pere Roca >> >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Mapbuilder-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > > -- Cameron Shorter Geospatial Systems Architect Tel: +61 (0)2 8570 5050 Mob: +61 (0)419 142 254 Think Globally, Fix Locally Commercial Support for Geospatial Open Source Solutions http://www.lisasoft.com/LISAsoft/SupportedProducts.html ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
