Re: [Qgis-user] Fix polygon that is not closed?

2010-12-17 Thread Zoran Jankovic
Yes, and QGIS displays the shapefile with no problem, and I was unable to
visually find where is this topological error... But, nevertheless, PostGIS
refuses to import it, and geometry validity check says its not closed :-(...

I have a couple more polygons that are, supposedly, self intersecting, but
could not find those intersections visually. All of the polygons were
created using Dxf2SHP plugin.


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia


On Fri, Dec 17, 2010 at 5:53 AM, Brad Nesom gisbrado...@live.com wrote:

 arcmap found no problem with that file usig geometry check.

 On Thu, Dec 16, 2010 at 2:36 PM, Zoran Jankovic 
 zoran.janko...@zisis.hrwrote:

 Hi list,

 I have isolated a polygon that is supposedly not closed (fTools - check
 validity), and PostGIS refuses to load it because of it. I was playing with
 node tool, but I do not see a way to detect were this polygon is not closed?
 It looks perfectly normal to me... (attached).

 How can I fix this, besides using FME (kind of out of my league,
 budget-wise :-)).


 ---
 Zoran Jankovic
 ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
 Consulting

 http://www.zisis.hr

 M: 00 385 98 682 902
 T:  00 385 44 683 374

 A. Senoe 4
 44320 Kutina
 Croatia

 ___
 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] Re: Fix polygon that is not closed?

2010-12-17 Thread Zoran Jankovic
On Fri, Dec 17, 2010 at 12:55 PM, Andrea Peri aperi2...@gmail.com wrote:

 Yes, and QGIS displays the shapefile with no problem, and I was unable to
 visually find where is this topological error... But, nevertheless, PostGIS
 refuses to import it, and geometry validity check says its not closed :-(...

 What version of postgis ?
 I think the last version of postgis allow to load Unvalid Polygon. (1.5.1+)
 Surely the actula trunk version (2.0.0) has a ST_MakeValid(..) to correct
 the self-intersections.

 Regards,



Ah, an eye opening comment indeed :-). I realized I was using SPIT plugin,
when I had the more advance shp2pgsql at hand... I am actually using PostGIS
2.0 from SVN, so I was able to import those shp with no problem... ...for
now... :-)




 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -


 ___
 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: Fwd: [Qgis-user] QGIS Near

2010-10-20 Thread Zoran Jankovic
Hi Joe,


On Wed, Oct 20, 2010 at 5:06 PM, Joe Larson joela...@gmail.com wrote:

 Does the function 'snapWithContext'

 http://doc.qgis.org/head/classQgsVectorLayer.html#733b974dce13d587e05cf3d4fc24f208
 which Snaps to segment or vertex within given tolerance. seem like
 what you're looking for? I came across it while trying to get Quantum
 Navigator working recently...seemed relative, but I'm no expert!


This is similar to the mentioned solution with selecting by radius, or
changing the tolerance of ID tool. Close, but no cigar. Since this is not
very urgent, I've decided to continue pursuing that outlined solution Carson
gave, and write a plugin i Python based on that. Since I actually never used
Python before, it may take a while, but hey, I get to learn sth. new :-).
I never got the word back from Carson, has he developed anything along these
lines, but I have to presume he didn't...
Anyone interested in joning me, or even earning some money, is still invited
to jump on board. My GIS implementation project is well on the way, and it
seems there'll even be some money involved :-).

Zoran

~joe

 On Tue, Oct 19, 2010 at 9:55 AM, Andreas Neumann a.neumann at carto.net
 wrote:

  Hi Zoran,
 
  I believe the infrastructure of what you want is already wihtin the
  selection and identify tools in QGIS. Isn't this almost implemented in
 the
  current identify tool?
 
 
 It sort of is, but not completely. Identify will ID all the features within
 certain radios (percentage of extent), but it will ID _all_ of the features
 within this radius. I only need the nearest, no matter how far away... Let
 us say it is, for simplicity, within current extent.


  The current identify tool selects near or close by features within a
  certain tolerance. This tolerance can be set in Options -- Map tools
  search radius. I believe it currently only effects the identify tool.
 Do
  you want the same tolerance also be used for the click-selection tool?
 
 
 Look above. This could be useful, but it is not the functionality I'm
 currently looking after.


  Are you also aware that in QGIS 1.6 there are new selection tools?
 
  * by click
  * by rectangle
  * by polygon
  * by freehand
  * by radius
 
 
 Yup, these are great, but they all select _multiple_ features within
 radius,
 rectangle, etc.


  Maybe this also helps to address your needs?
 
  Of course you can combine it with previous selections by pressing the
 ctrl
  key.
 
 

 BR,


 ---
 Zoran Jankovic
 ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
 Consulting

 http://www.zisis.hr

 M: 00 385 98 682 902
 T:  00 385 44 683 374

 A. Senoe 4
 44320 Kutina
 Croatia
 ___
 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: Re: Fwd: [Qgis-user] QGIS Near

2010-10-20 Thread Zoran Jankovic
Hi Stefan,

Yes! This is exactly what I was looking for! You were too fast for me, I'm
still on my first step: Python for Dummies :-))
As I can see the main stuff is in featurefindertool.py? And it works
through all the features in the selected layer every time?

But, I really do not have that many features, and it takes 2-3 seconds to
find the nearest feature on my, not so very new laptop, in a layer with cca
4200 point features.

Best regards,

PS Stefan, do you have a PayPal account? Or, does anyone know any better way
of transfering (modest, I'm afraid) amount of money? PayPal is limited to
paying only in Croatia...


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia


On Wed, Oct 20, 2010 at 8:54 PM, Ziegler Stefan stefan.zieg...@bd.so.chwrote:

  Hi Zoran

 I had some time left, took all my code snippets and also the one from
 Carson. Please try the plugin Nearest that should cover your example 1:

 http://www.catais.org/qgis/plugins.xml

 regards
 Stefan

 -Ursprüngliche Nachricht-
 *Von:* Zoran Jankovic [mailto:zoran.janko...@zisis.hr]
 *Gesendet am:* Mittwoch, 20. Oktober 2010 19:21
 *An:* qgis-user
 *Betreff:* Re: Fwd: [Qgis-user] QGIS Near

 Hi Joe,


 On Wed, Oct 20, 2010 at 5:06 PM, Joe Larson joela...@gmail.com wrote:

 Does the function 'snapWithContext'

 http://doc.qgis.org/head/classQgsVectorLayer.html#733b974dce13d587e05cf3d4fc24f208
 which Snaps to segment or vertex within given tolerance. seem like
 what you're looking for? I came across it while trying to get Quantum
 Navigator working recently...seemed relative, but I'm no expert!


  This is similar to the mentioned solution with selecting by radius, or
 changing the tolerance of ID tool. Close, but no cigar. Since this is not
 very urgent, I've decided to continue pursuing that outlined solution Carson
 gave, and write a plugin i Python based on that. Since I actually never used
 Python before, it may take a while, but hey, I get to learn sth. new :-).
 I never got the word back from Carson, has he developed anything along
 these lines, but I have to presume he didn't...
 Anyone interested in joning me, or even earning some money, is still
 invited to jump on board. My GIS implementation project is well on the way,
 and it seems there'll even be some money involved :-).

 Zoran

  ~joe

 On Tue, Oct 19, 2010 at 9:55 AM, Andreas Neumann a.neumann at carto.net
 wrote:

  Hi Zoran,
 
  I believe the infrastructure of what you want is already wihtin the
  selection and identify tools in QGIS. Isn't this almost implemented in
 the
  current identify tool?
 
 
 It sort of is, but not completely. Identify will ID all the features
 within
 certain radios (percentage of extent), but it will ID _all_ of the
 features
 within this radius. I only need the nearest, no matter how far away... Let
 us say it is, for simplicity, within current extent.


  The current identify tool selects near or close by features within a
  certain tolerance. This tolerance can be set in Options -- Map
 tools
  search radius. I believe it currently only effects the identify tool.
 Do
  you want the same tolerance also be used for the click-selection tool?
 
 
 Look above. This could be useful, but it is not the functionality I'm
 currently looking after.


  Are you also aware that in QGIS 1.6 there are new selection tools?
 
  * by click
  * by rectangle
  * by polygon
  * by freehand
  * by radius
 
 
 Yup, these are great, but they all select _multiple_ features within
 radius,
 rectangle, etc.


  Maybe this also helps to address your needs?
 
  Of course you can combine it with previous selections by pressing the
 ctrl
  key.
 
 

 BR,


 ---
 Zoran Jankovic
 ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
 Consulting

 http://www.zisis.hr

 M: 00 385 98 682 902
 T:  00 385 44 683 374

 A. Senoe 4
 44320 Kutina
 Croatia
   ___
 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


Fwd: [Qgis-user] QGIS Near

2010-10-19 Thread Zoran Jankovic
Sorry, I found out I sent this only to Carson, and not to the list, so I'm
forwarding the messagge to the list. Has anyone worked on a Near plugin,
or something similar?


-- Forwarded message --
From: Zoran Jankovic zoran.janko...@zisis.hr
Date: Sun, Oct 17, 2010 at 11:26 PM
Subject: Re: [Qgis-user] QGIS Near
To: carson.far...@gmail.com


Carson,

Have you, by any chance, pursued this idea further? I would be very much
interested in a plugin that could determine the closest point feature, and
select it, from the selected layer, when clicked anywhere on the map. Or,
closest to the preselected feature.

Example:

I have a lot of points that represent hydrants. This layer is selected in
the list. I choose this hypothetical Near function from the menu, and
click anywhere on the map. The closest hydrant to where I clicked is
selected.

Example 2:

Same as previous, but I do not have to click, I can select an already
existing point and than have the nearest hydrant to this point selected.

It is crucial that I do not want to create any new layers, define to and
from layers, etc. In the case of clicking on the map, there shouldn't be
any new point created...

I would just need the nearest feature selected.

Bonus: if the nearest feature could be a line, polyline or a polygon, not
just a point.

I'm aware that all of the above is already possible to accomplish in
PostGIS, but this way it would be much simpler, and it would work regardless
of data source: shp, postgis... as long as it is a vector layer in QGIS...

I'm very close to implementing QGIS here in my hometown, and if I manage to
actually earn any money from this, I would be more than happy to sponsor the
development of such a plugin, for a reasonable price. The problem is I need
the functionality now, and the money is yet to be earned :-(.

Best regards,

Zoran Jankovic
www.zisis.hr



On Mon, May 31, 2010 at 1:11 PM, Carson Farmer carson.far...@gmail.comwrote:

 No plugin that I know of, but it could probably be done quite easily
 from the Python console,
 something to the tune of (untested!):

 layer = qgis.utils.iface.mapCanvas().layer(0)
 provider = layer.dataProvider()
 provider.select([])
 feat = QgsFeature()
 index = QgsSpatialIndex()
 while provider.nextFeature(feat):
index.insertFeature(feat)
 provider.select([])
 while provider.nextFeature(feat):
near = index.nearestNeighbour(feat.geometry().asPoint(),1)
nearest = near[0]
# now do something here with the two points... and output results
 as you like

 # Obviously you'd have a bit more work to do here to compute angles
 etc. but all this functionality is available via the QGIS API...
 # If I get a chance, I might try to add this to the fTools/Vector menu...

 Regards,

 Carson

 On 26 May 2010 22:13, whollycow sjgard...@wisc.edu wrote:
  Is anyone aware of a function equivalent to Near in ArcGIS? (see
 
 http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Near_(Analysis)
  for reference) I have been searching all day and haven't come across
  anything quite like it. It seems like such basic functionality I would be
  surprised if someone hasn't already coded a solution.
  
  View this message in context: QGIS Near
  Sent from the qgis-user mailing list archive at Nabble.com.
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 



 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.com/
 ___
 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: Fwd: [Qgis-user] QGIS Near

2010-10-19 Thread Zoran Jankovic
On Tue, Oct 19, 2010 at 9:55 AM, Andreas Neumann a.neum...@carto.netwrote:

 Hi Zoran,

 I believe the infrastructure of what you want is already wihtin the
 selection and identify tools in QGIS. Isn't this almost implemented in the
 current identify tool?


It sort of is, but not completely. Identify will ID all the features within
certain radios (percentage of extent), but it will ID _all_ of the features
within this radius. I only need the nearest, no matter how far away... Let
us say it is, for simplicity, within current extent.


 The current identify tool selects near or close by features within a
 certain tolerance. This tolerance can be set in Options -- Map tools
 search radius. I believe it currently only effects the identify tool. Do
 you want the same tolerance also be used for the click-selection tool?


Look above. This could be useful, but it is not the functionality I'm
currently looking after.


 Are you also aware that in QGIS 1.6 there are new selection tools?

 * by click
 * by rectangle
 * by polygon
 * by freehand
 * by radius


Yup, these are great, but they all select _multiple_ features within radius,
rectangle, etc.


 Maybe this also helps to address your needs?

 Of course you can combine it with previous selections by pressing the ctrl
 key.



BR,


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Helmert 7 param transformation

2010-09-14 Thread Zoran Jankovic
Hi guys,

Thanks for all the help! I found some really useful apps via the links you
all sent.

On a side note, I was aware that Helmerts transformation is very well
documented, just am little pressed for time right now to develop an Excel
sheet on my own (my exam is on Thursday :-) ).

Here is what I found (in case someone else will be looking for (free)
transformation software:
http://www.apsalin.com/online.aspx
http://www.apsalin.com/online.aspx
http://www.fgg.uni-lj.si/~/mkuhar/Pouk/Utils.html (this one is in Slovenian,
but the Excel files are in English themselves, only the file names are in
Slovenian).

Best regards,
---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia


On Tue, Sep 14, 2010 at 2:28 PM, Gerry Creager gerry.crea...@tamu.eduwrote:

 I sent this to ZOran directly, but for others who might be interested, this
 site has a lot of useful geodesy tools:  http://www.ngs.noaa.gov/TOOLS/

 I've been a happy user for years.

 gerry


 Zoran Jankovic wrote:

 Hi guys and girls,
 I sent this message once before, but I do not think it got through, so I'm
 reposting.

 I know this is slightly off topic, but I ran out of places to ask... I'm
 looking for a piece of software, it could be a standalone app, or some
 JavaScript somewhere, that can calculate the 7 parameters of Helmerts
 transformation from the coordinates of identical points. Lots of
 applications can transform CRS, even on the fly, but I need something to
 calculate the parameters...

 The thing is I'm preparing for an exam, this is like a bar exam so I can
 get to be a certified surveying engineer, and one of the questions is to
 calculate the params. A decade ago, when I was a student, I had the formulas
 in a Sharp programmable calculator (that I borrowed :-)). Alas, both the
 knowledge, as well as the programmable calculator got lost somewhere over
 the years :-)

 --
 Gerry Creager -- gerry.crea...@tamu.edu
 Texas Mesonet -- AATLT, Texas AM University
 Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843

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


Re: [Qgis-user] Helmert 7 param transformation

2010-09-14 Thread Zoran Jankovic
On Tue, Sep 14, 2010 at 5:50 PM, Jean-Claude Repetto jc...@mxm.eu wrote:

 Le 14/09/2010 16:14, Zoran Jankovic a écrit :


  Here is what I found (in case someone else will be looking for (free)
 transformation software:
 http://www.apsalin.com/online.aspx
 http://www.apsalin.com/online.aspx
 http://www.fgg.uni-lj.si/~/mkuhar/Pouk/Utils.html (this
 one is in Slovenian, but the Excel files are in English themselves, only
 the file names are in Slovenian).


 Sorry, but it seems that these applications are not related to your
 question, or did I miss something ?


No, you are right, these are not (directly) related to the original
question. The one application that _does_ compute 7 parameters is SEVENPAR
(Killetsoft), but it's commercial, and demo version rounds off on 1st
decimal... :-(

Sorry, I've been working on 10 things at once, I sent my previous email
before I finished it properly :-(.

Br,

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


[Qgis-user] Helmert 7 param transformation

2010-09-13 Thread Zoran Jankovic
Hi guys and girls,
I sent this message once before, but I do not think it got through, so I'm
reposting.

I know this is slightly off topic, but I ran out of places to ask... I'm
looking for a piece of software, it could be a standalone app, or some
JavaScript somewhere, that can calculate the 7 parameters of Helmerts
transformation from the coordinates of identical points. Lots of
applications can transform CRS, even on the fly, but I need something to
calculate the parameters...

The thing is I'm preparing for an exam, this is like a bar exam so I can get
to be a certified surveying engineer, and one of the questions is to
calculate the params. A decade ago, when I was a student, I had the formulas
in a Sharp programmable calculator (that I borrowed :-)). Alas, both the
knowledge, as well as the programmable calculator got lost somewhere over
the years :-)


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


Re: [Qgis-user] OSM

2010-06-06 Thread Zoran Jankovic
Hi,

Have you tried Settings - Project Settings - Enable on the fly CRS
transformation? I'm also assuming you have defined CRS for your data? It
works for me, I'm using custom projection, similar to EPSG 31266, Windows
XP, QGIS 1.4.0... You could try using WGS84 for your project, while still
preserving data in EPSG 3763, using the aforementioned 'on the fly'
transformation capability.

The maximum extent is rather small, I'm using under 0.5 degrees Latitude and
Longitude.


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia

On Sun, Jun 6, 2010 at 2:35 PM, ALT SHN i.geograf...@alt-shn.org wrote:

 Hello,

 I'm having a hard time with OpenStreetMap Plugin  - no matter how small the
 area it always replies Booth Extents Are Too Large.

 Is it because my project isn't using geographic coordinates? (I'm using
 cartographic coordinates - ETRS89 tm06 Portugal [EPSG 3763])?
 If so, does that mean that I can only retrive information if my project is
 in wgs84?

 Thaks in advance,

 Andre

 --
 ---
 Associação Leonel Trindade
 SOCIEDADE DE HISTÓRIA NATURAL

 Apartado 25 2564-909 Torres Vedras Portugal
 Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras

 Laboratório de Paleontologia e Paleoecologia: Polígono Industrial do Alto
 do Ameal 2565-641 Ramalhal
 http://alt-shn.blogspot.com
 www.alt-shn.org

 ___
 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] Mobile GIS

2010-04-21 Thread Zoran Jankovic
Hi guys,

It would be great if you could send me the source code as well. I admit not
to be the top coder, but I could help... I have some ideas that are quite
compatible with your work...


BR,

---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia


On Wed, Apr 21, 2010 at 8:09 PM, Miguel Montesinos 
mmontesi...@prodevelop.es wrote:

 Hi Phillipe,

  -Mensaje original-
  De: Philipp Auersperg-Castell [mailto:p...@bluedynamics.com]
  Enviado el: miércoles, 21 de abril de 2010 17:42
  Para: Miguel Montesinos
  CC: qgis-user
  Asunto: Re: [Qgis-user] Mobile GIS
 
  Hi Miguel, Noli!
 
  Miguel, thanks for your hint, I just skimmed your class diagram, looks
  quite promising.
  since my stuff is yet experimental, gvSig seems worth a look for
  sharing components.
 
  - Do you have a public SVN repo for getting the source?

 Yes, but we are working some months on an internal one that we intend to
 migrate to the public one and keep on working on it as soon as the new
 version gets released. In the next days we are going to release a new
 version (0.2). It's in beta phase for some days and with no bugs so far, so
 it will be quite soon (probably next week).

 We can send you the binaries or the source code of this version if you want
 to have a look without waiting for the release.

 
  - Does gvsig support selecting and identifying features and querying
  data such as attributes, area, ?

 Not really, it can now search for Points of Interest (POIs) in external
 services, and query them afterwards, but it would be a good idea to work
 together for adding these kind of features.

 
  more questions will follow ;)

 They will be wellcome

 Regards,

 Miguel Montesinos
 ___
 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] [Offtopic]Geoext search

2010-02-13 Thread Zoran Jankovic
Hi list,

As the subject says, this is offtopic, but I have sent the same messagge to
Geoext users mailing list, nobody answered, and it's a very low traffic
list... So, if anyone has some experience with Geoext, I would appreciate
all the help I can get. (The data is prepared with QGIS, so it's not totally
OT :-) ).
My setup is very simple one, I have some SHP, loaded into Geoserver as a
layer.
I was looking into Geoext documentation and found this:
http://www.geoext.org/lib/GeoExt/widgets/form/SearchAction.html

What version of Ext, Geoext and Openlayers JS I have to reference to get
this working? I have tried with the setup from geoext tutorial, and with my
own local Ext-2.3.0, Geoext 0.6 and OpenLayers-2.8, to no effect...

The first problem I can see, in Ext-2.3.0 API documentation there is no
more
Ext.form.Panel
but there is
Ext.form.FormPanel object

So, if I use my setup from the basic example (it loads ExtJS 2.3.0, geoext
0.6 and OpenLayers 2.8) I get what is basically a blank page (only what I
add as HTML is rendered), Firefox Error Console gives a bunch of warnings
and 1 error:

Error: Ext.form.Panel is not a constructor
Source File: http://localhost/trazenje/
Line: 22

And if I try changing Ext.form.Panel to Ext.form.Formpanel I get:

Error: ct is null
Source File: http://localhost/ext-2.3.0/ext-all.js
Line: 1140

Needles to say my Javascript knowledge is limited, but I was under the
(probably false ;-) ) impression that I would at least be able to run some
examples :-(.
Where is the error? What should be in head to be able to run this example?

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


Re: [Qgis-user] Fwd: Import _and_ process DXF?

2010-02-05 Thread Zoran Jankovic
On Fri, Feb 5, 2010 at 7:06 AM, Mike Toews mwto...@gmail.com wrote:

  Yes, it creates shapefile with polylines, and even a separate shapefile
 with
  text (if you check the Export text labels. But, it does not (can not?)
  create _polygon_ shapefile, nor there is a way to associate parcel number
 to
  the parcel shape... That was the question ;-).
  As for the new GDAL/OGR: Osgeo4win installer says the highest supported
  version is 1.5.4-4 (Exp setting).

 CAD files can be really sloppy. Features don't have attributes, such
 as labels. (The only exception is block labels associated with points,
 but I'm not even sure if the FOSS offerings can do this association as
 I haven't checked). Furthermore, CAD polylines can be either a polygon
 or linestring, depending whether if it is closed or not. There is a
 large body of documentation on CAD-to-GIS conversion strategies, using
 a variety of software to accomplish a similar objective.

 If you want to get fancy and efficient, you could use a spatial join
 between the lot polygons and the the text shapefile (point?) locations
 to update the appropriate field for label .. then review the
 attributes to make sure it matches the CAD labels.

 -Mike


Yes, the spatial join would be the solution, except that this sample DXF
loads only as polylines, not as polygons: the source DXF file is all lines,
not polygons... So, I have one more hurdle to overcome, before I get to the
spatial join part...

BR,


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Geoprocessing question

2010-02-05 Thread Zoran Jankovic
OK list, here is one more philosophical GIS question, with more than one
answer possible.
Task: create one layer with street names, house numbers and city name
Set up:
- vector layers are all shapefiles
- one layer with points, attribute filed is house_number (presumably,
someone will input this data point by point, by digitizing or GPS
surveying...)
- the second layer is street buffer - created from streets, contains
street_name field, among others

If I perform intersect I get a new layer with point within polygons, that
now contain both street_name and house_number among others, _except_ for
the houses/points that are on the crossroads, because they intersect with
more than one polygon (street buffer). Let's say there are maybe 5%, or
less, points that are on the crossroads, so my solution for now is to add
them manually later after intersection.

Of course, the resulting shapefile contains more fields (columns), that are
not needed, but cannot be erased in QGIS, or at least I haven't figured out
how...

The second approach that crosses my mind is to import all of the shapefiles
into PostGIS, but I do not have very much experience with spatial queries
per se - is it possible to refine this process in PostGIS?

If anyone has any ideas/pointers/suggestions/experience with similar tasks I
would be very grateful :-).


BR,

---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Qgis-user Digest, Vol 48, Issue 9

2010-02-05 Thread Zoran Jankovic
On Fri, Feb 5, 2010 at 2:28 PM, jamesmikedup...@googlemail.com 
jamesmikedup...@googlemail.com wrote:

 On Fri, Feb 5, 2010 at 12:36 PM,  qgis-user-requ...@lists.osgeo.org
5. Re: Fwd: Import _and_ process DXF? (Mike Toews)
  Message: 5
  Date: Thu, 4 Feb 2010 22:06:48 -0800
  From: Mike Toews mwto...@gmail.com
  Subject: Re: [Qgis-user] Fwd: Import _and_ process DXF?
  To: Zoran Jankovic zoran.janko...@zisis.hr
  Cc: qgis-user@lists.osgeo.org
  Message-ID:
 
 I have a dxf2osm checked in here:
  http://github.com/h4ck3rm1k3/TwoNickels

 you can use that to filter and preprocess your dxf files.
 mike
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


I stumbled upon dxf2osm a couple of weeks ago, but it's a bit of a project
all on it's own to get it compiled and do something useful. Not that I have
a problem with C++, it was my first programming language of choice, 10 or so
years ago, it's just that my programing skills are rusted enough (never
developed? :-) ) that it would take me too much time to do something useful
;-). Nevertheless this is still a valid Plan B ;-).

Thanks Mike!


---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Fwd: Import _and_ process DXF?

2010-02-03 Thread Zoran Jankovic
On Wed, Feb 3, 2010 at 11:47 AM, Lionel Roubeyrie lroubey...@limair.asso.fr
 wrote:

 Hi Zoran,
 there's a dxf2shp plugin working perfectly on your file.
 Cordialy


Yes, it creates shapefile with polylines, and even a separate shapefile with
text (if you check the Export text labels. But, it does not (can not?)
create _polygon_ shapefile, nor there is a way to associate parcel number to
the parcel shape... That was the question ;-).

As for the new GDAL/OGR: Osgeo4win installer says the highest supported
version is 1.5.4-4 (Exp setting).


 Le 03/02/2010 11:34, Zoran Jankovic a écrit :

 I'm resending, the first one seemed to bounce as too big...

 -- Forwarded message --
 From: Zoran Jankoviczoran.janko...@zisis.hr
 Date: Wed, Feb 3, 2010 at 9:27 AM
 Subject: Import _and_ process DXF?
 To: qgis-userqgis-user@lists.osgeo.org


 Hi,

 I have cadastrial data like the sample in the attachment. It's layered
 DXF,
 with parcel numbers as block references in the layer 1_kc_broj, and the
 main layer of cadastrial parcel boundaries is 1_kc_medja.
 I would like to import this DXF into SHP (or directly to PostGIS?) _with
 the
 attribute parcel_number as well.
 Over the years I have used trial versions of FME, and this can be done, of
 course, using this - let's say it gently - not so cheap commercial
 application. Could it be done in QGIS (some plugins I am not aware of)?

 Best regards,
 ---
 Zoran Jankovic
 ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
 Consulting

 http://www.zisis.hr

 M: 00 385 98 682 902
 T:  00 385 44 683 374

 A. Senoe 4
 44320 Kutina
 Croatia




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


 --
 Lionel Roubeyrie - lroubey...@limair.asso.fr
 Chargé d'études
 LIMAIR - la Surveillance de l'Air en Limousin
 http://www.limair.asso.fr



 ___
 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] PRJ file does not include custom crs?

2010-01-24 Thread Zoran Jankovic
Hi list,

I have two, presumably newbie, questions:
- I have created my custom CRS, and I wanted to export it with my shape
file, so I could use keep native option in Geoserver SRS handling... But.
when I checked the resulting PRJ file it did not contain my specified
towgs84 parameters. Specifically, custom CRS in QGIS is:

+proj=tmerc +lat_0=0 +lon_0=18 +k=0. +x_0=650 +y_0=0 +ellps=bessel
+towgs84=-529.4533,-151.7769,-470.4923,5.319463,2.404593,-11.734044,2.430907
+units=m +no_defs
and PRJ file says:

PROJCS[Transverse_Mercator,GEOGCS[Bessel
1841,DATUM[D_unknown,SPHEROID[bessel,6377397.155,299.1528128]],PRIMEM[Greenwich,0],UNIT[Degree,0.017453292519943295]],PROJECTION[Transverse_Mercator],PARAMETER[latitude_of_origin,0],PARAMETER[central_meridian,18],PARAMETER[scale_factor,0.],PARAMETER[false_easting,650],PARAMETER[false_northing,0],UNIT[Meter,1]]

I have tried to do the same in 1.0.2, 1.4.0 and r12771M (trunk), always the
same result... What am I missing?


And the second question is slightly offtopic. I am working on a project that
needs some basic data display and search functionality, for now it is: QGIS
- Geoserver - OpenLayers. For the more advanced fetures like search and
feature highlight for now I'm using GeoExt. But it seems a bit overkill...
does anyone has any examples, links... to do it with just OpenLayers?

BR,

---
Zoran Jankovic
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and
Consulting

http://www.zisis.hr

M: 00 385 98 682 902
T:  00 385 44 683 374

A. Senoe 4
44320 Kutina
Croatia
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user