Re: [Qgis-user] shape file

2007-12-07 Thread Tim Sutton
Hi

Yes I think my patch will check both before and after. Don't worry
about your English I can understand you fine :-)

Regards

Tim

2007/12/7, alexey <[EMAIL PROTECTED]>:
> Hi
>
> Tim, now I know what problem was - it's absence of attributes of
> column. Then project has created somebody and did't fill up key - field.
> Qgis crashed because one field of one of objects was
> empty.
> I think that will be more better create a check of type field before
> creating a shape-file.
>
> P.S. sorry for my bad english, i hope you will understand me).
>
>
> > Hi
>
> > Looking at the code, only int, string and double types are currently
> > supported. What data types are in your grass layer attributes table?
> > Certainly we should not assert there but rather give some kind of
> > feedback.
>
> > Currently the code for QGIS 0.9.1 is in string freeze so I cant do
> > much about it right now. However I have made a patch to at least just
> > give an error message rather than assert (which causes the app to
> > terminate).
>
> > I have created a bug for this here:
>
> > https://svn.qgis.org/trac/ticket/854
>
> > Which includes a patch which at least prevents the app terminating. If
> > you supply me with more info regarding the datatypes in your attribute
> > table I will try to include support for additional dataypes in the
> > above patch. As I recall shapefile format supports only int, double
> > and string so any other attribute types will need to be merged into
> > one of those types. I will apply the patch post 0.9.1 release.
>
> > Regards
>
> > Tim
>
> > 2007/12/5, alexey <[EMAIL PROTECTED]>:
> >> Hi
> >>
> >> I have a problem with generating shape file in qgis.
> >> When at grass vector layer I press right mouse button and select "save as
> >> shapefile" qgis crashes and in terminal appears this text:
> >> -
> >>
> >> QgsGrass::vectors()
> >> qgis: 
> >> /home/timlinux/dev/cpp/qgis-0.9.0/src/core/qgsvectorfilewriter.cpp:222: bo
> >> ol QgsVectorFileWriter::addFeature(QgsFeature&): Assertion `0 && "invalid 
> >> varian
> >> t type"' failed.
> >> Aborted
> >>
> >> -
> >>
> >> Somebody did such operation (i need to transport grass vector layer to
> >> postgis table in postgres)
> >>
> >> --
> >>
> >>  alexey  mailto:[EMAIL PROTECTED]
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.qgis.org
> >> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
> >>
>
>
>
>
>
> --
> С уважением,
>  alexey  mailto:[EMAIL PROTECTED]
>
>


-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] shape file

2007-12-05 Thread Tim Sutton
Hi

Looking at the code, only int, string and double types are currently
supported. What data types are in your grass layer attributes table?
Certainly we should not assert there but rather give some kind of
feedback.

Currently the code for QGIS 0.9.1 is in string freeze so I cant do
much about it right now. However I have made a patch to at least just
give an error message rather than assert (which causes the app to
terminate).

I have created a bug for this here:

https://svn.qgis.org/trac/ticket/854

Which includes a patch which at least prevents the app terminating. If
you supply me with more info regarding the datatypes in your attribute
table I will try to include support for additional dataypes in the
above patch. As I recall shapefile format supports only int, double
and string so any other attribute types will need to be merged into
one of those types. I will apply the patch post 0.9.1 release.

Regards

Tim

2007/12/5, alexey <[EMAIL PROTECTED]>:
> Hi
>
> I have a problem with generating shape file in qgis.
> When at grass vector layer I press right mouse button and select "save as
> shapefile" qgis crashes and in terminal appears this text:
> -
>
> QgsGrass::vectors()
> qgis: /home/timlinux/dev/cpp/qgis-0.9.0/src/core/qgsvectorfilewriter.cpp:222: 
> bo   
> ol QgsVectorFileWriter::addFeature(QgsFeature&): Assertion `0 && "invalid 
> varian
>t type"' failed.
> Aborted
>
> -
>
> Somebody did such operation (i need to transport grass vector layer to
> postgis table in postgres)
>
> --
>
>  alexey  mailto:[EMAIL PROTECTED]
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
>


-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


[Qgis-user] shape file

2007-12-05 Thread alexey
Hi

I have a problem with generating shape file in qgis.
When at grass vector layer I press right mouse button and select "save as
shapefile" qgis crashes and in terminal appears this text:
-

QgsGrass::vectors()
qgis: /home/timlinux/dev/cpp/qgis-0.9.0/src/core/qgsvectorfilewriter.cpp:222: 
bo   ol 
QgsVectorFileWriter::addFeature(QgsFeature&): Assertion `0 && "invalid varian   
t 
type"' failed.
Aborted

-

Somebody did such operation (i need to transport grass vector layer to
postgis table in postgres)

-- 

 alexey  mailto:[EMAIL PROTECTED]

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