Hi,
Hints of answers below...

> Le 4 févr. 2019 à 02:42, Reginald <reginald.carl...@ingelmunster.be> a écrit :
> 
> Hello list,
> 
> I am running QGIS 3.4 on windows 7 and I have a bat file that uses ogr2ogr
> to get a layer of points from a WFS service. The bat file works when I run
> it in the OSGeo4W shell but not if I run it in the windows cmd shell. Then
> it complains about not finding the SRS.

This is normal.  The OSGEO4W shell prepares the environment path to basically 
tell the shell where to find all the various softwares.  You can manually set 
up this path but you can just use the OSGeo4w shell.   More on this here 
concerning temporary path for a shell.  
https://stackoverflow.com/questions/6832496/command-prompt-how-to-add-a-set-path-only-for-that-batch-file-executing


> Now I want to make a model to fetch the points and to do an intersection
> with the polygon of an area.
> The model also needs to style the points.
> Doing the intersection and the styling can be done in the model.
> My question is if I can run a bat file in the osgeo4W shell from within a
> model?

This is where I am lost.  Are you using the QGIS processing graphical modeller 
or are you trying to do this from a dos batch file? If you are trying to do 
this from the batch file, I would look are the link below are try working with 
the processing modeller.  Personally, I would make a python script instead of 
trying to do this with a dos .bat file if this is the case.  Keep in mind that 
QGIS 2 and QGIS 3 use different versions of python so most tutorials on the web 
are probably made for QGIS 2.

http://www.qgistutorials.com/en/docs/processing_graphical_modeler.html

QGIS and python.

https://www.qgistutorials.com/en/docs/getting_started_with_pyqgis.html

Nicolas
> 
> Regards,
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> _______________________________________________
> 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 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

Reply via email to