News aggregator

Python plug-ins licensing

Forum - Sat, 2011-07-30 12:45

by thejustsite (Posted Sat Jul 30, 2011 4:45 am)

Thank you. so Good!!


Read the main topic related to this post

Symbolization - Importing symbology - No Unique Value Option

Forum - Sat, 2011-07-30 00:12

by ckierst1 (Posted Fri Jul 29, 2011 4:12 pm)

Good morning folks! I'm a newbie to Quantum GIS and am looking at it for a friend's company. I'm not a geographer but am a geologist GIS user. I find that the version I downloaded last week doesn't have a Unique Value selection in the Layer Properties window. I need it if I am to classify my point data. I am also wondering if Quantum is able to assimilate (import) ESRI ArcView legend files (.avl). It doesn't seem to automatically recognize them so I must be missing something. I notice that the Symbol Manager doesn't seem to have any Help information loaded into the Help button??? I downloaded the User's Guide but apparently it's for v. 1.6.0 "Copiapo". I am using v. 1.7.0 "Wroclaw" and it's clear that the furniture has since been moved around a bit in the Layer Properties window. If any of you have any suggestions I would appreciate them. Are there any conversion widgets to convert .avls to something Quantum is happy with and still maintain my industry symbology conventions? Blue squares and orange stars for my points ain't gettin' it.

Also, I haven't gotten into this deeply enough to know how you can quickly and gracefully add new records from an imported new data shapefile to an existing layer (shapefile) displayed in QGIS in order to update the existing data relatively automatically so I don't have to input the new records in a bloody one-at-a-time layer editing (attribute table) fashion. Yeah, I'm lazy!


Read the main topic related to this post

PyQGIS script not run on Windows...

Forum - Fri, 2011-07-29 23:44

by Bertolomych (Posted Fri Jul 29, 2011 3:44 pm)

Hello!
I have to write a plugin which will refresh canvas automatically every 3 seconds (for tracking vehicle via GPS+GPRS). Well.. I've wrote a simple script, which I want my plugin to base on. Here it is:
Code: Select all
from PyQt4.QtCore import *
timer = QTimer()
timer.setInterval(3000)
QObject.connect(timer, SIGNAL("timeout()"), qgis.utils.iface.mapCanvas().refresh)

timer.start() / timer.stop() # I want to bind it to buttons


On my Linux machine it's ok. But when I'm trying to do the same on Windows - nothing happen. It's strange, because
Code: Select all
qgis.utils.iface.mapCanvas().refresh()
works. And if I try
Code: Select all
timer.isActive()
it returns "true"..

Thank U,
R.B.


Read the main topic related to this post

regexp_replace problem

Forum - Fri, 2011-07-29 23:21

by p0cisk (Posted Fri Jul 29, 2011 3:21 pm)

Hi,
You can download and install master version if you want. If you have Windows you can use OSGEO4W installer (choose qgis-dev to install), for ubuntu you can use one of this repositories: http://www.qgis.org/wiki/Download#Master_3
Or you can download source code and compile by yourself.

Sorry, I don't know if any conditional expression are planned.


Read the main topic related to this post

Cut a layer with another

Forum - Fri, 2011-07-29 19:35

by underdark (Posted Fri Jul 29, 2011 11:35 am)

You could close the linestring somewhere far off the area of interest and then convert the closed linestring to polygon.


Read the main topic related to this post

regexp_replace problem

Forum - Fri, 2011-07-29 18:59

by p0cisk (Posted Fri Jul 29, 2011 10:59 am)

You talk about help documentation but I did not see anything about the functions available in the calculator field.
You can read about expressions supported by field calculator by clicking Help button in calculator window.

I've test regexp_replace function with success. This
Code: Select all
regexp_replace('aabsdccs','[ac]','1')

gives me '11bsd11s' as result.

What version of QGIS you have? The regexp_replace expression is available only in Master version (1.8 ).


Read the main topic related to this post

[SOLVED] Init function custom ui-form dialog

Forum - Fri, 2011-07-29 14:12

by pegasustf (Posted Fri Jul 29, 2011 6:12 am)

Hi,

thanks webrian. That solve my problem.

with best regards

Thomas


Read the main topic related to this post

LEARN ENGLISH LANGUAGE

Forum - Fri, 2011-07-29 08:48

by philippines (Posted Fri Jul 29, 2011 12:48 am)

LEARN ENGLISH LANGUAGE | NINTENDO WII


Read the main topic related to this post

Init function custom ui-form dialog

Forum - Fri, 2011-07-29 02:11

by pegasustf (Posted Thu Jul 28, 2011 6:11 pm)

Hi,

I have a problem to use the Init function on "Vector Properties Dialog" ("general tab"). It is no problem to create a custom ui-form dialog with the designer from pyqt. But i will also dynamical initialise the input widgets and create my own specific signal-slots connections. Has anybody an idea or an example how i can use the Init function to do this.

Thomas


Read the main topic related to this post

Cut a layer with another

Forum - Fri, 2011-07-29 01:52

by epoq (Posted Thu Jul 28, 2011 5:52 pm)

Hi all !
Sorry for my language, I'm not english.
I usually use Mapinfo but I'm fed of this impractical software. I have dowload the last Qgis version this morning so I'm a beginner.

Here is my problem :

I Have two layers, the one is a layer of polygon and the second is a large polyligne.

I want to cut my layer of polygon with my polyligne.

I already can cut the poligon manualy with the function "separate entities" but I want to cut my layer automaticaly with my second layer polyligne.

I can't cut my first layer manualy because she's too big

Thanks for your help


Read the main topic related to this post

[SOLVED] strange buffer result - 30 km buffer only 23 km

Forum - Fri, 2011-07-29 00:04

by nhopton (Posted Thu Jul 28, 2011 4:04 pm)

Hi Jan,

OT. Just to mention that if your area of interest is Japan you might find this useful:

http://www.brock-family.org/gavin/googl ... imaps.html

It overlays GE imagery with very high-quality raster maps, just keep zooming-in.

Regards, Nick.


Read the main topic related to this post

point sampling tool automatic

Forum - Thu, 2011-07-28 21:47

by geojanli (Posted Thu Jul 28, 2011 1:47 pm)

It would be great if somebody can give me an instruction how to do this.

I have QGI 1.6 and GRASS GIS 6.4.1. But I dont know how to to use GRASS and how to write a python/bash script using v.what.rast module.

I need your help.

Thank you very much.


Read the main topic related to this post

[SOLVED] polygons labeled

Forum - Thu, 2011-07-28 21:41

by geojanli (Posted Thu Jul 28, 2011 1:41 pm)

Thanks!


Read the main topic related to this post

strange buffer result - 30 km buffer is only about 23 km

Forum - Thu, 2011-07-28 20:45

by Jhelebrant (Posted Thu Jul 28, 2011 12:45 pm)

thank you underdark. I reprojected the points to EPSG:3095 Tokyo / UTM zone 54N, created the buffers and then switched back to Google Mercator and all is ok now. Great.


Read the main topic related to this post

strange buffer result - 30 km buffer is only about 23 km

Forum - Thu, 2011-07-28 18:29

by underdark (Posted Thu Jul 28, 2011 10:29 am)

Google Mercator is not a good projection for measuring distances. There is huge distortion in it. You should use a fitting Japanese coordinate system for creating the buffers.


Read the main topic related to this post

polygons labeled

Forum - Thu, 2011-07-28 17:43

by geojanli (Posted Thu Jul 28, 2011 9:43 am)

Hi,
I want to label my polygones, the polygones are outlines of countries.
When I use the properties menu every single island gets a own label, but I want one label for every polygone ( state ).

Can you help me?

Thanks!


Read the main topic related to this post

regexp_replace problem

Forum - Thu, 2011-07-28 17:07

by Guillaume Rabany (Posted Thu Jul 28, 2011 9:07 am)

One thing more, maaza,
You talk about help documentation but I did not see anything about the functions available in the calculator field.
Have a link about this subject ?


Read the main topic related to this post

Use of Spatial Index

Forum - Thu, 2011-07-28 17:03

by dimamix (Posted Thu Jul 28, 2011 9:03 am)

When programming in Python, so it looks
Code: Select all
# returns an array of object identifiers that intersect a given rectangle
intersect = index.intersects(QgsRectangle(22.5, 15.3 , 23.1 , 17.2 ))

# returns an array of identifiers of five, the closest to a given point, facilities
nearest = index.nearestNeighbor(QgsPoint(25.4, 12.7 ), 5 )



Read the main topic related to this post

[SOLVED] how to set layer order in qgis

Forum - Thu, 2011-07-28 16:46

by dimamix (Posted Thu Jul 28, 2011 8:46 am)

So - works

Code: Select all
self.legendTree = self.iface.mainWindow().findChild(QDockWidget,"Legend").findChild(QTreeWidget)
......
vlayer=QgsVectorLayer("bb.shp","bb",'ogr')
QgsMapLayerRegistry.instance().addMapLayer(vlayer)
# save layer bb
Item_bb = self.legendTree.takeTopLevelItem( 0 )

rlayer=QgsRasterLayer("aa.jpg", "aa")
QgsMapLayerRegistry.instance().addMapLayer(rlayer)
# save layer aa
Item_aa = self.legendTree.takeTopLevelItem( 0 )

# move aa down
self.legendTree.addTopLevelItem(Item_aa)


Будем бить через дымоход. (с)«Тот самый Мюнхгаузен»
We will beat through the chimney. (c) "The most Munchausen"


Read the main topic related to this post

Assigning graphic symbols to waypoints

Forum - Thu, 2011-07-28 05:47

by underdark (Posted Wed Jul 27, 2011 9:47 pm)

Yes, QGIS has a style file format. Create a style and press "Save Style ..." to get a sample. This way you should have a basis for your own style file.


Read the main topic related to this post
Syndicate content