[Qgis-user] "raised field" objects : how to extract and export ?

2017-03-21 Thread dandrigo
Dear all,

I m working on windows 10.
In input, i have a .LAS "GROUND_only" lidar point cloud (4 millions points).
We 're interested in geomorphological microstructures called raised field
(ground elevation due to cultivated areas ). 
I attach a SS representing this cloud file.


1/ We would like to classify our input ground point cloud in order to
separate the points constuing those "raised field"  and other ground points
"NON ground raised field" points.
2/ Once the classification will done, we would like to be able to export the
result toward an new .las or shp (ideally with usefull attribute information
like class_id, z value, etc.).
We would like generate a Multipoint layer only for those "raised field
objects". All the points constituing an object "raised field" must be strore
into the same row( entity).

Could you tell me how to that? 

In advance, thank you very much. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/raised-field-objects-how-to-extract-and-export-tp5313523.html
Sent from the QGIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Geomorphological microstructures 's footprint extraction?

2017-03-11 Thread dandrigo
Good morning,


We have as input a lidar point cloud (800 000 points) which is the result of
one our classification (this cloud represent only our geomorphological
structures class.) Then,from this cloud we generated a DTM (20cms).

Our goal is to delimit automatcally the footprint of these microstructures
with a polygonal vector. 

Pouvez vous nous éclairer sur les différentes méthodes et outils permettant
de faire celà? 
Could you throw light for us about methods and tools doing this task? 

Is it possible to capture this polygonal layer directly from the points
cloud? (hull).
Or would it be preferarable to work from the DTM raster or one of this
derivatived  (vector level curves, slope raster map, exposure raster map,
shading, etc.)? For instance, the slope raster map seems to be an
interesting criterion to identify and isolate the base of these
microstructures. Is would be possible to do an automatic vectorization?

Below, a screenshot showing the points cloud  and another showing  slope
raster :

 

 

Thank you very much for your usefull help.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Geomorphological-microstructures-s-footprint-extraction-tp5311838.html
Sent from the QGIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] MapInfo to QGIS style generator ; error message

2016-11-18 Thread dandrigo
Hello,

For remind, i'm working on Windows 10 64 bits,mapinfo new version Pro 16.0,
QGIS 2.16.3.Following  to my previous message, I succeed in resolving my
first problem regarding the error message. The Peter 's procedure allows
indeed to no longer have an error message during the execution of the
command.I remind you the following post (giving the soution) :

http://gis.stackexchange.com/posts/217934/revisions

 However, now, when i rerun the same command but the plugin does not still
seem to work. No task is done. I let the process run all the night. And the
status stays always on 
"Opening Mapinfo ... Exporting style table" .
 No qml file has been generated. It's strange because i managed to use this
plugin in march 2015 last year (with a previous mapinfo version) ...
According to you, the reason of the problems could be from updates realised
beteween previous version and last new mapinfo v.16?
Is it possible for someone to try a quick test ? I have already post a
message on the Nathan's Blog(plugin 's issues) :

https://github.com/NathanW2/MapInfo-to-QGIS-style-generator/issues/4

This plugin is really important for my work. 


--



actual

pip freeze | grep win32

mine is:

pywin32==218

but I never used that script
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 16 November 2016 at 01:37, dandrigo lcelati@ wrote:
> Good morning,
>
> I'm working on windows 10 with mapinfo 16, qgis 2.16.3.
>
> I tried to use the usefull following plugin called "MapInfo to QGIS style
> generator":
>
> https://github.com/NathanW2/MapInfo-to-QGIS-style-generator/wiki/Using-MapInfo-to-QGIS-style-generator.
>
> But when i launch this following command via osgeo4w shell :
>
> python mapinfoToQgis.py F:\temp\commerces.TAB F:\temp\out.qml -c
> ID_SYMBOLOGIE --UseMapInfo
>
> An error message appears. I send you the attachment showing the error
> message.
>
> http://osgeo-org.1560.x6.nabble.com/file/n5295947/osgeo4w_command_error_mssge.jpg;
>
> Could you throw light for me regarding the meaning of the error message
> and
> could youhow to help me in order to find a solution?
>
> In advance, thank you very much.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/MapInfo-to-QGIS-style-generator-error-message-tp5295947.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@.osgeo
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@.osgeo
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapInfo-to-QGIS-style-generator-error-message-tp5295947p5296422.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] MapInfo to QGIS style generator ; error message

2016-11-16 Thread dandrigo
Thanks for yours replies...FYI, i got the solution here :

http://gis.stackexchange.com/questions/217934/mapinfo-to-qgis-style-generator-error-message

After to have editing the line into the python file, all works well without
error message...




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapInfo-to-QGIS-style-generator-error-message-tp5295947p5296138.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] MapInfo to QGIS style generator ; error message

2016-11-15 Thread dandrigo
Good morning,

I'm working on windows 10 with mapinfo 16, qgis 2.16.3.

I tried to use the usefull following plugin called "MapInfo to QGIS style
generator":

https://github.com/NathanW2/MapInfo-to-QGIS-style-generator/wiki/Using-MapInfo-to-QGIS-style-generator.

But when i launch this following command via osgeo4w shell :

python mapinfoToQgis.py F:\temp\commerces.TAB F:\temp\out.qml -c
ID_SYMBOLOGIE --UseMapInfo

An error message appears. I send you the attachment showing the error
message.


 

Could you throw light for me regarding the meaning of the error message and
could youhow to help me in order to find a solution?

In advance, thank you very much.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapInfo-to-QGIS-style-generator-error-message-tp5295947.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Import gpx files into Postgis db (windows)?

2014-10-31 Thread dandrigo
Dear all, 

I'm working with windows 8  postgis 2.1. 

I have several gps (gpx) files. I would like to import *directly* those gpx
files into my postgis database. 

What would be the easiest way? (OGR tool ?)

In advance, thank you to throw light for me. 

Regards. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Import-gpx-files-into-Postgis-db-windows-tp5170663.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Import gpx files into Postgis db (windows)?

2014-10-31 Thread dandrigo
Hello,

Ok thanks. I will have a look on ogr2ogr tool. 

Regarding  qgis, what qgis tool could import gpx files directly in the
postgis database? Perhaps you alluded to the Qgis DB manager? 

Thanks.





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Import-gpx-files-into-Postgis-db-windows-tp5170663p5170677.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Pyqgis 2.2 : get signal on feature added + zoom to layer extent?

2014-07-31 Thread dandrigo
Hello, 

1/ For my pyqgis plugin 2.2, i try to 
--- 
def logFeatureAdded(self,layerId,addfeatures): 
message = str(layerId) +  has features added:  
for feature in addedFeatures: 
message += str( feature.id() ) + ,  
QgsMessageLog.logMessage(message) 
QApplication.beep() 
 

When i try to add a feature, this following error message appears: 

TypeError : logFeaturesAdded() takes exactly 3 arguments (2 given). 

2/ Always for my plugin, i can load a vector layer succesfully. But when i
try to zoom to the layer extent. But it does not work. How to do in order to
zoom to the layer extent?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Pyqgis-2-2-get-signal-on-feature-added-zoom-to-layer-extent-tp5154365.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Get signal on edited feature ?

2014-07-30 Thread dandrigo
Hello,

Regarding my pyqgis plugin 2.2 , I've implemented signal on a vector layer
event  successfully. For instance, whenever i create a new feature, i can
read a new basic message appeared via QGIS logging system :  feature
added. 

But for some  events, besides this basic message, i would like read the name
of the layer and/or , the id of the feature/ the attribut name / the
geometry type (line,surf,punct). 

How to bring more info details for the events? 

I paste below my piece of code : 
-
def logLayerModified(self, onlyGeometry = None ):
QgsMessageLog.logMessage( layer modified )
QApplication.beep() 

def logAttributeAdded(self,QgsFeatureId):
QgsMessageLog.logMessage( attribut added )
QApplication.beep()

def logAttributeDeleted(self,QgsFeatureId):
QgsMessageLog.logMessage( attribut deleted )
QApplication.beep()

def logFeatureAdded(self,QgsFeatureId):
QgsMessageLog.logMessage(feature added, id =  + 
str(QgsFeatureId))
QApplication.beep() 

def logFeatureDeleted (self,QgsFeatureId):
QgsMessageLog.logMessage(feature deleted, id =  + 
str(QgsFeatureId))
QApplication.beep() 

def logGeometryChanged(self,fid)
QgsMessageLog.logMessage(Geometry changed, id =  + str(fid))
QApplication.beep() 

def logAttributeValueChanged (self, QgsFeatureId fid, int idx, const
QVariant )
QgsMessageLog.logMessage(Attribut value changed, id =  +
str(QgsFeatureId))
QApplication.beep() 


def logBeforeLayerCommitChange(self):
QgsMessageLog.logMessage( commit change )
QApplication.beep()


   layer.layerModified.connect(self.logLayerModified)   
layer.attributeAdded.connect(self.logAttributeAdded)
layer.attributeDeleted.connect(self.logAttributeDeleted)
layer.featureAdded.connect(self.logFeatureAdded)
layer.featureDeleted.connect(self.logFeatureDeleted) 
layer.featureDeleted.connect(self.logGeometryChanged)   


layer.beforeCommitChanges.connect(self.logBeforeLayerCommitChange)

layer.AttributeValueChanged.connect(self.logAttributeValueChanged)   
-



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Get-signal-on-edited-feature-tp5154172.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Pyqgis :2.2 : link between a signal and an event

2014-07-29 Thread dandrigo
I'm writing a pyqgis 2.2 plugin with qgis 2.2 I succeeded in accessing and
displaying vector data (geometries  attributes). I succeed also to create a
'beforecomitechanges' signal ( emitted, before changes are commited to the
data provider). Thus a message has appeared into qgis logwindow (comit
change label) after editing operations and before commiting toward the dp).
Please read following piece of code allowing to do that:
-
def beforeLayerCommitChange(self):

  QgsMessageLog.logMessage( commit change )
  QApplication.beep()

layer.beforeCommitChanges.connect(self.beforeLayerCommitChange)

Now I would like to generate others signals. i would like generate the
displaying of information messages (number of features that have been
added,modifyied,deleted, the id of the features which have been modified,
the name of the layer..).

COuld you throw light for me ? THanks.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Pyqgis-2-2-link-between-a-signal-and-an-event-tp5154004.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] python script : find the qgis 's python piece of code for editing?

2014-07-17 Thread dandrigo
Dear all,I would like back up or/and read a qgis 's python piece of code :
the piece regarding gis vector data edition mode (start editing/save or
rollback editing). It would be possible ? In advance, thank you. Regards.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/python-script-find-the-qgis-s-python-piece-of-code-for-editing-tp5151512.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] python script : find the qgis 's python piece of code for editing?

2014-07-17 Thread dandrigo
Hello,

Yes exactly. Do you know where and how to find this code please? 

Thanks. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/python-script-find-the-qgis-s-python-piece-of-code-for-editing-tp5151512p5151522.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python script : find the qgis 's python piece of code for editing?

2014-07-17 Thread dandrigo
Following to my previous post,

i would like know where I can find the code into the tree of QGIS
installation files ? (qgis core?). I Imagine that these editing piece of
code belongs to the qgis core code...?




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/python-script-find-the-qgis-s-python-piece-of-code-for-editing-tp5151512p5151610.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] pyQGIS : How to retreive layers 's edits ?

2014-07-14 Thread dandrigo
Hello, 

I 'm writing a pyqgis script. I succeed in accessing gis vector data (lists)
from my remote server (thanks to urllib) . I succed in displaying geometries
and attributs. 

1/ Now, i would like manage layer 's editions and modifications.
I must find a way to know the polygons that were been modified , deleted or
added. Could you throw light for me? 

2/ In a 2nd time i would like send these editing, these modifications toward
the remote server. Could you tell me how to do that please? 




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-How-to-retreive-layers-s-edits-tp5150946.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] pyQGIS : Way in order to know modifications ?

2014-07-14 Thread dandrigo
Following to my previous post ,

In order to be more explicit, please find the usefull github link showing
the plugin : 

https://github.com/picardie-nature/clicnat-qgis/blob/master/plugin.py



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-Way-in-order-to-know-modifications-tp5150946p5150994.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] pyQGIS : How to retreive layers 's edits ?

2014-06-20 Thread dandrigo
Hello, 

Thanks. i succeed in accessing and displaying geometries and attributs. 

I 'm abble to edit the layer. But now i would like to retreive informations
about edit layers. How to detect edit layers and modifications (WKT edit
layer? ). How to get a list about editing ? 

in a 2nd time, i would like send layer 's edits to the server. 

Could you throw light for me? 

Thanks. 








--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-read-attributes-with-qgis-2-2-tp5146541p5146934.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] pyQGIS : How to retreive layers 's edits ?

2014-06-20 Thread dandrigo
Hello, 

Thanks. i succeed in accessing and displaying geometries and attributs. 

I 'm abble to edit the layer. But now i would like to retreive informations
about edit layers. How to detect edit layers and modifications (WKT edit
layer? ). How to get a list about editing ? 

in a 2nd time, i would like send layer 's edits to the server. 

Could you throw light for me? 

Thanks. 




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-How-to-retreive-layers-s-edits-tp5146935.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] pyQGIS : read attributes with qgis 2.2?

2014-06-18 Thread dandrigo
Hello, 

I 'm writing a pyqgis script. I succeed in adding vector to the map. 

But now i would like display and accessing to fields and attributes table.
COuld you how to do that please? 

Thanks. 





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-read-attributes-with-qgis-2-2-tp5146541.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] pyQGIS : read attributes with qgis 2.2?

2014-06-18 Thread dandrigo
Thanks,

I would like back up attributes data. I tried to do thanks to following
piece of code : 

-
provider = layer.dataProvider()
layer.select(provider.attributeIndexes())
for f in layer.getFeatures():
print f['nom','reference','id_espace','table_espace','id_utilisateur']
---


But when i run the python extension, i can display the layer. But i can't
see the attribut table yet...;-(



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/pyQGIS-read-attributes-with-qgis-2-2-tp5146541p5146548.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qgis 2.2 : problem to visualize postgis raster layer

2014-05-20 Thread dandrigo
Following to my previous message, the host value seems to be not specified. 

COuld you tell me how i can specified this host value in order to load
postgis raster ? 

Thanks. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/qgis-2-2-problem-to-visualize-postgis-raster-layer-tp5141321p5141358.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] qgis 2.2 : problem to visualize postgis raster layer

2014-05-19 Thread dandrigo
Hello,


I'm working with windows 8 and qgis 2.2.
I imported raster into my postgis db without problem. But regarding the
visualization of the data in qgis i have an error message. This following
message appears when i try to load pg raster data from the qgis db manager.
I paste below the screenshot :

SS_error_pg_rasrter.JPG
http://osgeo-org.1560.x6.nabble.com/file/n5141321/SS_error_pg_rasrter.JPG  

I'm really surprised by the error message appearing in qgis. What's the
meaning of this connexion problem? i succeed without problem in connecting
and loading postgis layer vector data in qgis. My problem concerns only pg
raster data...

In advance thank you to throw light for me in order to visualize pg raster
data. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/qgis-2-2-problem-to-visualize-postgis-raster-layer-tp5141321.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user