pere roca wrote:
>   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?
>   
There was an alpha version of a SLD editor demo written in a previous 
release, I think version 1.0 had it.  But it has not been migrated to 
the latest releases when we switched to using an Openlayers rendering 
system.

SLD editing is highly desirable functionality. Maybe you would like to 
add it?

>   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!!)
>   
Mike might be able to answer this.

You also might find it better to render your points as vectors (using a 
GML or WFS layer). This will probably require you to rewrite SLD passing 
code, which would not be too difficult. Andreas has been doing some work 
in this area and can probably give you more tips if you want to head 
down this path.
>   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");
>   
Maybe the MapPaneOL is not receiving the "refresh" event. Try 
setParam("loadModel") and see if that works.

>   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
>   


-- 
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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to