<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Papyrus;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:FR;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi all, let me precise the need:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Numerical vertex edit and wkt plugin are usefull when dealing with one geometry.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Geom calculation with field update can create eventually a WKB, but it’s absolutely not user friendly, and there is actually no way to load a layer
 from that in a file based layer. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Think of a user getting a excel or calc spreadsheet with XY inside. The only way to import it directly as a spatial layer (not talking about using
 sqlite or postgis.. too complex for common users not even aware of data source types) is too export it to csv and import it with delimited text plugin.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That is always a pain since no tool exports csv in the same way when dealing with numerical / text types, decimal separators…
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">XLS, calc, dbf do type correctly fields and avoid any file conversion (if no formula or problem in field names today). Importing directly the datasource,
 and being able to spatialize it afterwards , only if needed (join pure attribute data is also a use case), would be nice.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So is the need for my corp.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My question : I would like to avoid data duplication (again) , is that feasible using pluginlayerType in python API todayu, or do I need some core
 modifications ? Of course, that need to be reloaded correctly with a project file.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Régis<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="color:#1F497D"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">Cordialement,</span><span lang="EN-US" style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">Régis Haubourg</span><span lang="EN-US" style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">----------------------------------------------------------------------</span><span style="font-size:10.0pt;color:#1F497D">--------------<br>
Régis Haubourg<br>
<br>
Administrateur de données Géographiques<br>
Département des Systèmes d'Information (DCSI)<br>
Agence de l'eau Adour Garonne <br>
90 rue du Férétra,<br>
31078 Toulouse Cedex4<br>
Tél: 05 61 36 82 58<br>
Mail: <a href="mailto:regis.haubourg@eau-adour-garonne.fr">regis.haubourg@eau-adour-garonne.fr</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><img border="0" width="49" height="43" id="Image_x0020_1" src="cid:image001.jpg@01CE7640.11D6AFF0" alt="cid:image002.jpg@01CE5BAA.92C70ED0"></span><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">
<a href="http://www.eau-adour-garonne.fr/"><span style="font-size:10.0pt">http://www.eau-adour-garonne.fr</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><u><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:blue"><o:p><span style="text-decoration:none"> </span></o:p></span></u></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:10.0pt;font-family:Papyrus;color:navy">Accédez aux données sur l'eau  :</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://adour-garonne.eaufrance.fr/">http://adour-garonne.eaufrance.fr/</a>
</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> kimaidou [mailto:kimaidou@gmail.com]
<br>
<b>Envoyé :</b> dimanche 30 juin 2013 22:00<br>
<b>À :</b> Anita Graser<br>
<b>Cc :</b> Alexander Bruy; qgis-developer; HAUBOURG<br>
<b>Objet :</b> Re: [Qgis-developer] New feature's needed, create geometry from attribute<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi<o:p></o:p></p>
</div>
<p class="MsoNormal">What about using the field calculator ? I think I have seen a method in the "geometry" tools : something like geomfromwkt ? If needed, we could simply add a way to modifiy the features geometry with the field calculator, and it will do
 the trick. <o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2013/6/30 Anita Graser <<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>><o:p></o:p></p>
<div>
<p class="MsoNormal">The Quick WKT plugin does something very similar.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888">Anita<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Sun, Jun 30, 2013 at 3:06 PM, Alexander Bruy <<a href="mailto:alexander.bruy@gmail.com" target="_blank">alexander.bruy@gmail.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi, what about NumericalVertexEdit plugin? If I understand correctly, it<br>
do what you need.<br>
<br>
2013/6/30 Régis Haubourg <<a href="mailto:regis.haubourg@eau-adour-garonne.fr" target="_blank">regis.haubourg@eau-adour-garonne.fr</a>>:<o:p></o:p></p>
<div>
<p class="MsoNormal">> Hi all,<br>
> After some training courses here, a very common use case is not satisfied<br>
> easily:<br>
><br>
> The only entry to create geometry from text (XY or WKT) is the delimited<br>
> text plugin.<br>
> It appears that having a separate fonction "create point" like in Mapinfo or<br>
> Arcgis would be really handy, and could avoid the need of csv import.<br>
><br>
> I was thinking of making a plugin for this, but I'm wondering what is the<br>
> best approach.<br>
>  1- duplicate layer into a memory layer. Easy, requires MemoryLayerSaver to<br>
> make data persistent, is not dynamic with datasource.<br>
>  2- create a pluginLayer? I'm not sure it will do what I need. I would like<br>
> the project to keep a reference to the datasource (xls, whatever ogr/<br>
> postgres/ sqlite/ spatialite) and replace or create geometry on load by<br>
> reading XY columns or WKT column.<br>
><br>
> Is that feasable in a plugin,  as a proof of concept, or does it require<br>
> core classes modifications (C++ work , so I won't do it by myself)<br>
><br>
> Thanks for your tips,<br>
> Régis<br>
<br>
--<o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="color:#888888">Alexander Bruy</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>