Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-22 Thread Luca Lanteri
ok, you are right.

You can import your shapfiles into spatialite using dbmanager, then copy
the definitions of the first layer, add column to the other layer and then
export to shapefile.

Luca


2015-10-22 5:17 GMT+02:00 Richard Males :

> The join works without a common field of any kind, which is what I wanted,
> but unfortunately the field names get prefixed with the join layer.   When
> I export as shape file from the joined layer, I get field names like
> 'exported', 'exported_1', etc.   So I don't think the join will work, since
> what I want to do is preserve field names, just copying them from one layer
> to another.
>
> Maybe some other approach?   I was hoping for an existing plug-in, but
> have not found anything in the repository.   Maybe a python script to
> export field names from existing layer?  I will explore that approach,
> although I am not very familiar with python scripting for QGIS, see if I
> can get started.
>
> Thanks.
>
>
>
> On Tue, Oct 20, 2015 at 2:21 AM, Luca Lanteri  wrote:
>
>> why do you need the same geometry type in order to make a join ?
>> You just need one common field.
>>
>> Luca
>>
>> 2015-10-19 21:44 GMT+02:00 Joris Hintjens :
>>
>>> I’d try “join layers” if they are the same geometry type
>>>
>>> Joris
>>>
>>> Op 17-okt.-2015, om 11:40 heeft Luca Lanteri  het
>>> volgende geschreven:
>>>
>>> You can make a join and then save as layer
>>> I have been looking for a capability (plugin or native QGIS) that will
>>> easily copy the field definitions (not the attribute data) from one layer
>>> to another layer.   To date I have not found it, I may be missing something
>>> obvious.  Any help/advice much appreciated.
>>>
>>> I have a layer with a bunch of fields already defined, and another layer
>>> with geometry but no additional fields.   I would like to add the field
>>> definitions from the first layer to the second layer, and then populate
>>> with the appropriate data for that layer.
>>>
>>> Thanks.
>>>
>>> Dick Males
>>> Cincinnati, Ohio, USA
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>>
>>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-21 Thread Damien Stephens
You can change the prefix of the column names in 2.10 there is a tick box  in 
the join dialog. not sure if you can set it to blank, but might work?


From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Richard 
Males
Sent: Thursday, 22 October 2015 11:17 AM
To: Luca Lanteri
Cc: qgis-user
Subject: Re: [Qgis-user] Copy field definitions from one vector layer to 
another?

The join works without a common field of any kind, which is what I wanted, but 
unfortunately the field names get prefixed with the join layer.   When I export 
as shape file from the joined layer, I get field names like 'exported', 
'exported_1', etc.   So I don't think the join will work, since what I want to 
do is preserve field names, just copying them from one layer to another.
Maybe some other approach?   I was hoping for an existing plug-in, but have not 
found anything in the repository.   Maybe a python script to export field names 
from existing layer?  I will explore that approach, although I am not very 
familiar with python scripting for QGIS, see if I can get started.
Thanks.


On Tue, Oct 20, 2015 at 2:21 AM, Luca Lanteri 
<mesca...@gmail.com<mailto:mesca...@gmail.com>> wrote:
why do you need the same geometry type in order to make a join ?
You just need one common field.

Luca

2015-10-19 21:44 GMT+02:00 Joris Hintjens 
<joris...@gmail.com<mailto:joris...@gmail.com>>:
I’d try “join layers” if they are the same geometry type

Joris

Op 17-okt.-2015, om 11:40 heeft Luca Lanteri 
<mesca...@gmail.com<mailto:mesca...@gmail.com>> het volgende geschreven:


You can make a join and then save as layer
I have been looking for a capability (plugin or native QGIS) that will easily 
copy the field definitions (not the attribute data) from one layer to another 
layer.   To date I have not found it, I may be missing something obvious.  Any 
help/advice much appreciated.

I have a layer with a bunch of fields already defined, and another layer with 
geometry but no additional fields.   I would like to add the field definitions 
from the first layer to the second layer, and then populate with the 
appropriate data for that layer.
Thanks.
Dick Males
Cincinnati, Ohio, USA

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user




__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-21 Thread Richard Males
The join works without a common field of any kind, which is what I wanted,
but unfortunately the field names get prefixed with the join layer.   When
I export as shape file from the joined layer, I get field names like
'exported', 'exported_1', etc.   So I don't think the join will work, since
what I want to do is preserve field names, just copying them from one layer
to another.

Maybe some other approach?   I was hoping for an existing plug-in, but have
not found anything in the repository.   Maybe a python script to export
field names from existing layer?  I will explore that approach, although I
am not very familiar with python scripting for QGIS, see if I can get
started.

Thanks.



On Tue, Oct 20, 2015 at 2:21 AM, Luca Lanteri  wrote:

> why do you need the same geometry type in order to make a join ?
> You just need one common field.
>
> Luca
>
> 2015-10-19 21:44 GMT+02:00 Joris Hintjens :
>
>> I’d try “join layers” if they are the same geometry type
>>
>> Joris
>>
>> Op 17-okt.-2015, om 11:40 heeft Luca Lanteri  het
>> volgende geschreven:
>>
>> You can make a join and then save as layer
>> I have been looking for a capability (plugin or native QGIS) that will
>> easily copy the field definitions (not the attribute data) from one layer
>> to another layer.   To date I have not found it, I may be missing something
>> obvious.  Any help/advice much appreciated.
>>
>> I have a layer with a bunch of fields already defined, and another layer
>> with geometry but no additional fields.   I would like to add the field
>> definitions from the first layer to the second layer, and then populate
>> with the appropriate data for that layer.
>>
>> Thanks.
>>
>> Dick Males
>> Cincinnati, Ohio, USA
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-20 Thread Luca Lanteri
why do you need the same geometry type in order to make a join ?
You just need one common field.

Luca

2015-10-19 21:44 GMT+02:00 Joris Hintjens :

> I’d try “join layers” if they are the same geometry type
>
> Joris
>
> Op 17-okt.-2015, om 11:40 heeft Luca Lanteri  het
> volgende geschreven:
>
> You can make a join and then save as layer
> I have been looking for a capability (plugin or native QGIS) that will
> easily copy the field definitions (not the attribute data) from one layer
> to another layer.   To date I have not found it, I may be missing something
> obvious.  Any help/advice much appreciated.
>
> I have a layer with a bunch of fields already defined, and another layer
> with geometry but no additional fields.   I would like to add the field
> definitions from the first layer to the second layer, and then populate
> with the appropriate data for that layer.
>
> Thanks.
>
> Dick Males
> Cincinnati, Ohio, USA
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-19 Thread Joris Hintjens
I’d try “join layers” if they are the same geometry type 

Joris

> Op 17-okt.-2015, om 11:40 heeft Luca Lanteri  het 
> volgende geschreven:
> 
> You can make a join and then save as layer
> 
> I have been looking for a capability (plugin or native QGIS) that will easily 
> copy the field definitions (not the attribute data) from one layer to another 
> layer.   To date I have not found it, I may be missing something obvious.  
> Any help/advice much appreciated.   
> 
> I have a layer with a bunch of fields already defined, and another layer with 
> geometry but no additional fields.   I would like to add the field 
> definitions from the first layer to the second layer, and then populate with 
> the appropriate data for that layer.
> 
> Thanks.
> 
> Dick Males
> Cincinnati, Ohio, USA
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/qgis-user 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-17 Thread Luca Lanteri
You can make a join and then save as layer
I have been looking for a capability (plugin or native QGIS) that will
easily copy the field definitions (not the attribute data) from one layer
to another layer.   To date I have not found it, I may be missing something
obvious.  Any help/advice much appreciated.

I have a layer with a bunch of fields already defined, and another layer
with geometry but no additional fields.   I would like to add the field
definitions from the first layer to the second layer, and then populate
with the appropriate data for that layer.

Thanks.

Dick Males
Cincinnati, Ohio, USA

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-16 Thread Richard McDonnell
On second reading of what you are looking for, The Table Manager plugin, 
may not be what you need.



On 15/10/2015 19:29, Richard Males wrote:
I have been looking for a capability (plugin or native QGIS) that will 
easily copy the field definitions (not the attribute data) from one 
layer to another layer.   To date I have not found it, I may be 
missing something obvious. Any help/advice much appreciated.


I have a layer with a bunch of fields already defined, and another 
layer with geometry but no additional fields.   I would like to add 
the field definitions from the first layer to the second layer, and 
then populate with the appropriate data for that layer.


Thanks.

Dick Males
Cincinnati, Ohio, USA


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user



OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart
OPW - Looking to the future - Caring for the past

***
Email Disclaimer: http://www.opw.ie/en/disclaimer/

<>___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-16 Thread Goyo
This might work:

1. Make an empty copy of the layer with the attributes.
2. Select all objects of the layer with the geometries.
3. Copy and paste the selected objects into the empty layer.

Goyo


2015-10-15 20:29 GMT+02:00 Richard Males :
> I have been looking for a capability (plugin or native QGIS) that will
> easily copy the field definitions (not the attribute data) from one layer to
> another layer.   To date I have not found it, I may be missing something
> obvious.  Any help/advice much appreciated.
>
> I have a layer with a bunch of fields already defined, and another layer
> with geometry but no additional fields.   I would like to add the field
> definitions from the first layer to the second layer, and then populate with
> the appropriate data for that layer.
>
> Thanks.
>
> Dick Males
> Cincinnati, Ohio, USA
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-16 Thread Goyo
2015-10-16 10:39 GMT+02:00 Alexandre Neto :

> uhmm... well thought! This will probably work if the geometry types of both
> layers are the same. If not, Instead of making an empty copy of the layer
> with attributes you should use a conversion tool to cast the layer into the
> desired final geometry, something like "polygon to line" or "Line to
> points", etc...

Yes, it was just an outline of the procedure. There may be some issues
to work around, depending on the details.

Goyo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Copy field definitions from one vector layer to another?

2015-10-16 Thread Alexandre Neto
Em sex, 16 de out de 2015 às 09:25, Goyo  escreveu:

> This might work:
>
> 1. Make an empty copy of the layer with the attributes.
> 2. Select all objects of the layer with the geometries.
> 3. Copy and paste the selected objects into the empty layer.
>
> Goyo
>
>
uhmm... well thought! This will probably work if the geometry types of both
layers are the same. If not, Instead of making an empty copy of the layer
with attributes you should use a conversion tool to cast the layer into the
desired final geometry, something like "polygon to line" or "Line to
points", etc...

Alexandre Neto


>
> 2015-10-15 20:29 GMT+02:00 Richard Males :
> > I have been looking for a capability (plugin or native QGIS) that will
> > easily copy the field definitions (not the attribute data) from one
> layer to
> > another layer.   To date I have not found it, I may be missing something
> > obvious.  Any help/advice much appreciated.
> >
> > I have a layer with a bunch of fields already defined, and another layer
> > with geometry but no additional fields.   I would like to add the field
> > definitions from the first layer to the second layer, and then populate
> with
> > the appropriate data for that layer.
> >
> > Thanks.
> >
> > Dick Males
> > Cincinnati, Ohio, USA
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Copy field definitions from one vector layer to another?

2015-10-15 Thread Richard Males
I have been looking for a capability (plugin or native QGIS) that will
easily copy the field definitions (not the attribute data) from one layer
to another layer.   To date I have not found it, I may be missing something
obvious.  Any help/advice much appreciated.

I have a layer with a bunch of fields already defined, and another layer
with geometry but no additional fields.   I would like to add the field
definitions from the first layer to the second layer, and then populate
with the appropriate data for that layer.

Thanks.

Dick Males
Cincinnati, Ohio, USA
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user