[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
--001636e0aea3b8972204617392c4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Let us break down your use case a bit more; right now we load and save a pr=
oject / map / layer data structure from disk.<div>Are you looking to save e=
verything in the database? Or are you looking to "override" part =
of the normal load/save process and force some centrally defined styles ont=
o an already existing Map?</div>
<div><br></div><div>Can you give me your requirement in user terms?</div><d=
iv><br></div><div>Back to your technical question - please review the follo=
wing class:</div><div>- <a href=3D"http://svn.refractions.net/udig/udi=
g/trunk/plugins/net.refractions.udig.style.sld/src/net/refractions/udig/sty=
le/sld/SLDContent.java">http://svn.refractions.net/udig/udig/trunk/plugins/=
net.refractions.udig.style.sld/src/net/refractions/udig/style/sld/SLDConten=
t.java</a></div>
<div><br></div><div>This should provide enough detail for you read in a blo=
b of SLD from your database and apply it to an existing layer.</div><div>Jo=
dy<br><br><div class=3D"gmail_quote">On Tue, Jan 27, 2009 at 1:29 AM, Justi=
n R. Lynch <span dir=3D"ltr"><<a href=3D"mailto:Justin.Lynch@xxxxxxxxxx"=
>Justin.Lynch@xxxxxxxxxx</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">The closest would be to save the style info=
rmation into a database, so<br>
when someone opens a layer (also saved in the database) they will be<br>
using the same style.<br>
Justin<br>
<div><div></div><div class=3D"Wj3C7c"><br>
-----Original Message-----<br>
From: <a href=3D"mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx">udig-deve=
l-bounces@xxxxxxxxxxxxxxxxxxxxx</a><br>
[mailto:<a href=3D"mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx">udig-de=
vel-bounces@xxxxxxxxxxxxxxxxxxxxx</a>] On Behalf Of Jody<br>
Garnett<br>
Sent: Friday, January 23, 2009 9:21 PM<br>
To: User-friendly Desktop Internet GIS<br>
Subject: Re: [udig-devel] How does one change the saving and loading sld<br=
>
styleinformation?<br>
<br>
There are a couple of aspects to what you are talking about. You<br>
mentioned making use of a database so I am going to take a couple wild<br>
guesses to try and figure out what you are getting at based on what<br>
others have done.<br>
<br>
The uDig load/save mechanism for Maps is all about saving this<br>
information into a project directory. In the past people have wanted to<br>
either:<br>
- save this information too and from a databases so users can work on a<br>
common set of maps<br>
- save this information too and from an Open Web Context document (to be<br=
>
<br>
attached to a wiki page)<br>
- save just the style information into a database and "update" ex=
isting<br>
maps to use the latest style from the common central database<br>
<br>
In each one of these cases you are going to get in there making your own<br=
>
<br>
maps and layers; taking charge of the process your application uses to<br>
assemble a working Map data structure for udig to draw. Let me know<br>
which one of the above scenarios you are working towards and I can try<br>
and make more specific recommendations.<br>
<br>
(the general idea is that these are just data structures so you can<br>
"load" and "save" them as you see fit)<br>
<br>
If I can ask you to review the IRC logs from this weeks meeting; Moovida<br=
>
<br>
requested a new "export style" extension point be created; it is =
not<br>
quite related to your request here - except in that it will represent<br>
another example of saving and loading a style to a file.<br>
<br>
Jody<br>
<br>
Justin R. Lynch wrote:<br>
><br>
> Greetings everyone. We are currently using the sld style to render the=
<br>
<br>
> layers for our project. We need to change where the information about<=
br>
> a layer's style is saved and loaded. We would like to be able to s=
ave<br>
> / load this information from a database. It seems that a SLDContent<br=
>
> (net.refractions.udig.style.sld) currently loads /saves this<br>
> information from the eclipse IMemento. If we were creating our own<br>
> style and renderer we could use these methods to instead load / save<b=
r>
> to the database but I don't know how to use the sld style provided=
and<br>
<br>
> replace just the save and load. The best I can come up with is to use<=
br>
> copy / paste reuse and basically copy all of the<br>
> net.refractions.udig.style.sld plug-in into another plug-in and just<b=
r>
> change those two functions.<br>
><br>
> Am I missing something? What is the correct way to change this<br>
> functionality?<br>
><br>
> If I create a new style that just re-implements the StyleContent,<br>
> won't I have problems making that style get selected over the sld<=
br>
style?<br>
><br>
> Thanks,<br>
><br>
> Justin<br>
><br>
> -------<br>
><br>
> The information contained in this message may be company sensitive and=
<br>
<br>
> is for the intended addressee only. Any unauthorized use,<br>
> dissemination of the information, or copying of this message is<br>
> prohibited. If you are not the intended addressee, please notify the<b=
r>
> sender immediately and delete this message.<br>
><br>
> --------<br>
><br>
><br>
------------------------------------------------------------------------<br=
>
><br>
> _______________________________________________<br>
> User-friendly Desktop Internet GIS (uDig)<br>
> <a href=3D"http://udig.refractions.net" target=3D"_blank">http://udig.=
refractions.net</a><br>
> <a href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel" t=
arget=3D"_blank">http://lists.refractions.net/mailman/listinfo/udig-devel</=
a><br>
><br>
<br>
_______________________________________________<br>
User-friendly Desktop Internet GIS (uDig)<br>
<a href=3D"http://udig.refractions.net" target=3D"_blank">http://udig.refra=
ctions.net</a><br>
<a href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel" target=
=3D"_blank">http://lists.refractions.net/mailman/listinfo/udig-devel</a><br=
>
<br>
</div></div>No virus found in this incoming message.<br>
Checked by AVG - <a href=3D"http://www.avg.com" target=3D"_blank">http://ww=
w.avg.com</a><br>
Version: 8.0.176 / Virus Database: 270.10.13/1916 - Release Date:<br>
1/26/2009 7:08 AM<br>
<div><div></div><div class=3D"Wj3C7c">_____________________________________=
__________<br>
User-friendly Desktop Internet GIS (uDig)<br>
<a href=3D"http://udig.refractions.net" target=3D"_blank">http://udig.refra=
ctions.net</a><br>
<a href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel" target=
=3D"_blank">http://lists.refractions.net/mailman/listinfo/udig-devel</a><br=
>
</div></div></blockquote></div><br></div>
--001636e0aea3b8972204617392c4--