Re:Re: [Qgis-user] projection change
thank you again Original map is in *adf format it's metadata like this: name: Lambert Conformal Conic proj: lcc datum: wgs84 ellps: wgs84 lat_1: 40.66 lat_2: 43.34 lat_0: 0 lon_0: 34 x_0: 100 y_0: 0 no_defs: defined I save it as shp fie in QGIS. then I am trying to convert it lat/long with ogr2ogr as: ogr2ogr -t_srs EPSG:4326 -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=0 lon_0=34.0 +x_0=100 +y_0=0 +datum=wgs84 +spheroid=wgs84 +units=m +no_defs' geohidro_cizgi_adf2.shp hidro_cizgi_adf.shp 17 Ara 2009 12:50 tarihinde, Micha Silver mi...@arava.co.il şunu yazdı: On 17/12/2009 10:49, ahmet temiz wrote: thank you I tried as you have suggested. But there seems to be something wrong. resulting map's extent looks weird. I agree with you on that... Are you sure about the original shapefile projection? Does it have an attached *.prj file? If yes, then you should be able to run ogr2ogr *without* specifying the -s_srs. I can't find in the EPSG database any projection with your parameters. Is it some special CRS? $ ogr2ogr -t_srs EPSG:4326 -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=41 lon_0=34.0 +x_0=100 +y_0=0 +datum=wgs84 spheroid=wgs84 +units=m' geohidro_cizgi_adf2.shp hidro_cizgi_adf.shp or...@orkun-desktop:~$ or...@orkun-desktop:~$ or...@orkun-desktop:~$ ogrinfo geohidro_cizgi_adf2.shp -al -summary INFO: Open of `geohidro_cizgi_adf2.shp' using driver `ESRI Shapefile' successful. Layer name: geohidro_cizgi_adf2 Geometry: Line String Feature Count: 4929 Extent: (-28.672066, 75.100678) - (37.866883, 81.508631) * Layer SRS WKT: GEOGCS[GCS_WGS_1984, DATUM[WGS_1984, SPHEROID[WGS_1984,6378137,298.257223563]], PRIMEM[Greenwich,0], UNIT[Degree,0.017453292519943295]] UserId: Integer (10.0) FNODE_: Integer (10.0) TNODE_: Integer (10.0) LPOLY_: Integer (10.0) RPOLY_: Integer (10.0) LENGTH: Real (32.3) HIDRO_CIZG: Integer (10.0) HIDRO_CIZG: Integer (10.0) F_CODE: String (80.0) F_NAME: String (80.0) SYMBOL: Integer (10.0) DISPSCALE: Integer (10.0) 2009/12/16 Micha silvermi...@arava.co.il: ahmettemi...@gmail.com wrote: hello I have difficulty changing map projection from lamber conical to geographic ? how can I do that ? here is the original map's metada: name: Lambert Conformal Conic proj: lcc datum: wgs84 ellps: wgs84 lat_1: 40.66 lat_2: 43.34 lat_0: 0 lon_0: 34 x_0: 100 y_0: 0 no_defs: defined I tried with ogr2ogr : ogr2ogr -t_srs '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=0 lon_0=34 +x_0=100 +y_0=0 +datum=wgs84 +units=meter' geohidro_cizgi_adf94.shp hidro_cizgi_adf.shp I think you might be having trouble with the quoting. Maybe try with just the EPSG code, ie: ogr2ogr -t_srs EPSG:4326 geohidro_cizgi_adf94.shp hidro_cizgi_adf.shp -- Micha regards Ahmet Temiz This mail was received via Mail-SeCure System. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user This mail was received via Mail-SeCure System. This mail was received via Mail-SeCure System. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] projection change
On 17/12/2009 13:27, ahmettemi...@gmail.com wrote: thank you again Original map is in *adf format it's metadata like this: name: Lambert Conformal Conic proj: lcc datum: wgs84 ellps: wgs84 lat_1: 40.66 lat_2: 43.34 lat_0: 0 lon_0: 34 x_0: 100 y_0: 0 no_defs: defined OK, do you have other layers in that CRS? Do they align with the new shapefile?? I save it as shp fie in QGIS. And what CRS did you specify when you saved as shapefile (I can't find any CRS in QGIS like the one above...). In Settings-Options-CRS there's a setting how QGIS treats a layer when it cannot recognize the CRS. If you have it set to some global value, then QGIS will assume the new shapefile should be in that CRS, and set it as such. Have a look in the shapefile's metadata (property page). What CRS does it say there? Also, I think that ogr2ogr will read the adf file directly (is it an Arc/Info Binary?). Then you won't need the interim step of converting to a shapefile. -- Micha then I am trying to convert it lat/long with ogr2ogr as: ogr2ogr -t_srs EPSG:4326 -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=0 lon_0=34.0 +x_0=100 +y_0=0 +datum=wgs84 +spheroid=wgs84 +units=m +no_defs' geohidro_cizgi_adf2.shp hidro_cizgi_adf.shp 17 Ara 2009 12:50 tarihinde, Micha Silver mi...@arava.co.il şunu yazdı: On 17/12/2009 10:49, ahmet temiz wrote: thank you I tried as you have suggested. But there seems to be something wrong. resulting map's extent looks weird. I agree with you on that... Are you sure about the original shapefile projection? Does it have an attached *.prj file? If yes, then you should be able to run ogr2ogr *without* specifying the -s_srs. I can't find in the EPSG database any projection with your parameters. Is it some special CRS? $ ogr2ogr -t_srs EPSG:4326 -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=41 lon_0=34.0 +x_0=100 +y_0=0 +datum=wgs84 spheroid=wgs84 +units=m' geohidro_cizgi_adf2.shp hidro_cizgi_adf.shp or...@orkun-desktop:~$ or...@orkun-desktop:~$ or...@orkun-desktop:~$ ogrinfo geohidro_cizgi_adf2.shp -al -summary INFO: Open of `geohidro_cizgi_adf2.shp' using driver `ESRI Shapefile' successful. Layer name: geohidro_cizgi_adf2 Geometry: Line String Feature Count: 4929 Extent: (-28.672066, 75.100678) - (37.866883, 81.508631) * Layer SRS WKT: GEOGCS[GCS_WGS_1984, DATUM[WGS_1984, SPHEROID[WGS_1984,6378137,298.257223563]], PRIMEM[Greenwich,0], UNIT[Degree,0.017453292519943295]] UserId: Integer (10.0) FNODE_: Integer (10.0) TNODE_: Integer (10.0) LPOLY_: Integer (10.0) RPOLY_: Integer (10.0) LENGTH: Real (32.3) HIDRO_CIZG: Integer (10.0) HIDRO_CIZG: Integer (10.0) F_CODE: String (80.0) F_NAME: String (80.0) SYMBOL: Integer (10.0) DISPSCALE: Integer (10.0) 2009/12/16 Micha silvermi...@arava.co.il: ahmettemi...@gmail.com wrote: hello I have difficulty changing map projection from lamber conical to geographic ? how can I do that ? here is the original map's metada: name: Lambert Conformal Conic proj: lcc datum: wgs84 ellps: wgs84 lat_1: 40.66 lat_2: 43.34 lat_0: 0 lon_0: 34 x_0: 100 y_0: 0 no_defs: defined I tried with ogr2ogr : ogr2ogr -t_srs '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' -s_srs '+proj=lcc +lat_1=40. +lat_2=43.3 +lat_0=0 lon_0=34 +x_0=100 +y_0=0 +datum=wgs84 +units=meter' geohidro_cizgi_adf94.shp hidro_cizgi_adf.shp I think you might be having trouble with the quoting. Maybe try with just the EPSG code, i.e.: ogr2ogr -t_srs EPSG:4326 geohidro_cizgi_adf94.shp hidro_cizgi_adf.shp -- Micha regards Ahmet Temiz This mail was received via Mail-SeCure System. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user This mail was received via Mail-SeCure System. This mail was received via Mail-SeCure System. This mail was received via Mail-SeCure System. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] alternatives to join attributes
Good morning. I have a lot of data I need to visualize in QGIS (142 time steps, each with over 200,000 points). I need a way to quickly and easily load this data in QGIS. All of my data is in separate .csv files (one file per time step). I load each file via the csv plug-in and then use join attributes to connect my csv data to the polygon data that defines my grid. Join attributes takes forever (trying to do 4,000 points took an hour). Any one know of any other, faster way to do this? Or a way to speed up my join attributes? I know 200,000 points is a lot to ask and can easily cut that down a bit, but an hour to do 4000 points seems very slow. At that rate, it would take 3 weeks to load the entire time series into QGIS. I'm running the latest version of QGIS (Mimas) on a Mac OsX. Thanks, Katie ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] alternatives to join attributes
Have you thought about loading the data into PostGIS? You would load the data into the db and then be able to query and display only the data that you want at any time. David. On Thu, Dec 17, 2009 at 8:46 AM, Carbonari, Katie (IS) katie.carbon...@ngc.com wrote: Good morning. I have a lot of data I need to visualize in QGIS (142 time steps, each with over 200,000 points). I need a way to quickly and easily load this data in QGIS. All of my data is in separate .csv files (one file per time step). I load each file via the csv plug-in and then use join attributes to connect my csv data to the polygon data that defines my grid. Join attributes takes forever (trying to do 4,000 points took an hour). Any one know of any other, faster way to do this? Or a way to speed up my join attributes? I know 200,000 points is a lot to ask and can easily cut that down a bit, but an hour to do 4000 points seems very slow. At that rate, it would take 3 weeks to load the entire time series into QGIS. I'm running the latest version of QGIS (Mimas) on a Mac OsX. Thanks, Katie ___ 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] alternatives to join attributes
Further to the same question: is there a really good PostGIS for Dummies type of explanation of how to get information into a PostGIS database? Google's bringing up some hits, but not one good reference that has the information I'm looking for. Scott On Thu, Dec 17, 2009 at 10:10 AM, Carbonari, Katie (IS) katie.carbon...@ngc.com wrote: I tried doing that at one point, but I've never used databases before and didn't get how to include them into QGIS. I tried going under Add PostGIS Table but wasn't really sure how to connect to my database. I have my dbf files stored locally on my machine, yet the gui wants me to make a PostgreSQL Connection; what exactly is that and is there a more simple way to access my dbf files? Thanks, katie -Original Message- From: David Fawcett [mailto:david.fawc...@gmail.comdavid.fawc...@gmail.com ] Sent: Thu 12/17/2009 9:57 AM To: Carbonari, Katie (IS) Cc: qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] alternatives to join attributes Have you thought about loading the data into PostGIS? You would load the data into the db and then be able to query and display only the data that you want at any time. David. On Thu, Dec 17, 2009 at 8:46 AM, Carbonari, Katie (IS) katie.carbon...@ngc.com wrote: Good morning. I have a lot of data I need to visualize in QGIS (142 time steps, each with over 200,000 points). I need a way to quickly and easily load this data in QGIS. All of my data is in separate .csv files (one file per time step). I load each file via the csv plug-in and then use join attributes to connect my csv data to the polygon data that defines my grid. Join attributes takes forever (trying to do 4,000 points took an hour). Any one know of any other, faster way to do this? Or a way to speed up my join attributes? I know 200,000 points is a lot to ask and can easily cut that down a bit, but an hour to do 4000 points seems very slow. At that rate, it would take 3 weeks to load the entire time series into QGIS. I'm running the latest version of QGIS (Mimas) on a Mac OsX. Thanks, Katie ___ 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 -- Scott Rollins, Virginia Beach, VA organ...@gmail.com ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] alternatives to join attributes
Am 17.12.2009 15:46, schrieb Carbonari, Katie (IS): Good morning. I have a lot of data I need to visualize in QGIS (142 time steps, each with over 200,000 points). I need a way to quickly and easily load this data in QGIS. All of my data is in separate .csv files (one file per time step). I load each file via the csv plug-in and then use join attributes to connect my csv data to the polygon data that defines my grid. Join attributes takes forever (trying to do 4,000 points took an hour). Any one know of any other, faster way to do this? Or a way to speed up my join attributes? I know 200,000 points is a lot to ask and can easily cut that down a bit, but an hour to do 4000 points seems very slow. At that rate, it would take 3 weeks to load the entire time series into QGIS. I'm running the latest version of QGIS (Mimas) on a Mac OsX. Good afternoon ;-) I think with this amount of data is would be the best method to work with a spatially enhanced database - most prominently PostgreSQL/PostGIS and to do all the datamanagement there - that is the reason why databases exist... So, 1. export your polygon data to Postgres/PostGIS 2. push your csv data also into the database 3. create the necessary objects as tables from point 1+2 4. map it in qgis The same applies if you do it with spatiallite, which is also possible, but with that databasesystem I have no expierence... Hope this helps, greetings, Albin -- - | Albin Blaschka, Mag. rer.nat - Salzburg, Austria | http://www.albinblaschka.info http://www.thinkanimal.info | It's hard to live in the mountains, hard, but not hopeless! - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] alternatives to join attributes
Am 17.12.2009 16:16, schrieb Scott Rollins: Further to the same question: is there a really good PostGIS for Dummies type of explanation of how to get information into a PostGIS database? Google's bringing up some hits, but not one good reference that has the information I'm looking for. Maybe something like this? http://www.bostongis.com/ and, more specific http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01 HTH, Albin -- - | Albin Blaschka, Mag. rer.nat - Salzburg, Austria | http://www.albinblaschka.info http://www.thinkanimal.info | It's hard to live in the mountains, hard, but not hopeless! - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] alternatives to join attributes
and http://revenant.ca/www/postgis/workshop/ Postgis is really the way to go for you. You can easily join your data within Postgis with views. And you can do query/analysis in other tools besides QGIS, also in plain SQL. Andreas On Thu, December 17, 2009 4:21 pm, Albin Blaschka wrote: Am 17.12.2009 16:16, schrieb Scott Rollins: Further to the same question: is there a really good PostGIS for Dummies type of explanation of how to get information into a PostGIS database? Google's bringing up some hits, but not one good reference that has the information I'm looking for. Maybe something like this? http://www.bostongis.com/ and, more specific http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01 HTH, Albin -- - | Albin Blaschka, Mag. rer.nat - Salzburg, Austria | http://www.albinblaschka.info http://www.thinkanimal.info | It's hard to live in the mountains, hard, but not hopeless! - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] alternatives to join attributes
On Thu, Dec 17, 2009 at 10:19 AM, Edmond, Brian S brianedm...@missouristate.edu wrote: Katie, Your foray into PostgreSQL and PostGIS will not be wasted if you plan to do more GIS in the future. Even if you do it only for this project, it should help you tremendously. Katie, It can be a little daunting to figure out where to start with PostGIS, but when you are dealing with large amounts of spatial features and related attribute records, moving to a spatially-enabled relational database is really the best solution. Like Brian said, learning PostGIS will not be wasted time. Even if you end up using a different spatial database in the future, most of the knowledge transfers well. If you aren't already using William Kyngesburye's GIS frameworks and binaries for the Mac, I recommend it. It is quite a reasonable way to install QGIS, PostGIS, MapServer, and all of the software dependencies that they need. http://www.kyngchaos.com/macosx:index http://www.kyngchaos.com/macosx:build:index You can download the PostGIS workshop from FOSS4G 2009 at: http://2009.foss4g.org/workshops/#workshop_03 David. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Re: suggestion for gdal raster tools in QGIS
Agustin Lobo ha scritto: Thanks for the many fixes of the Raster tools in QGIS. As you know, I consider adding these tools to QGIS a fundamental step towards a fully operational gis. Thanks. into an editor, edit there and run the edited command, but if this editing could be done directly in the Raster tools window, that would enhance operationality. I think this is quite interesting - let's see what we can do. Anyway, I can imagine you are not short of good ideas but of time. Quite right! And resources are short too. :) So help is most welcome. All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
RE: [Qgis-user] alternatives to join attributes
Katie, Your foray into PostgreSQL and PostGIS will not be wasted if you plan to do more GIS in the future. Even if you do it only for this project, it should help you tremendously. I routinely plot 7K+ unique points as a PostGIS layer using QGIS and the time to plot them is almost instantaneous. Furthermore, a whole world of spatial capabilities will open to you with all of the PostGIS functions available to do analysis on your data. I do have an iMac (at work), but I run my setup on a Kubuntu machine (at home) so I might be able to help you a little bit there. Start by installing PostgreSQL and getting some familiarity with it. It will help if you know SQL and have worked with databases before (they are all essentially the same from a user POV). The desktop tool pgAdmin will help you guify PostgreSQL a bit, but you'll still need to do a few things manually or from the command line. I checked and there is a Mac OS port for pgAdmin. (I prefer using phpPgAdmin, but it would require that you have a web server and PHP installed on your Mac.) Good luck! B From: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Carbonari, Katie (IS) Sent: Thursday, December 17, 2009 9:11 AM To: David Fawcett Cc: qgis-user@lists.osgeo.org Subject: RE: [Qgis-user] alternatives to join attributes I tried doing that at one point, but I've never used databases before and didn't get how to include them into QGIS. I tried going under Add PostGIS Table but wasn't really sure how to connect to my database. I have my dbf files stored locally on my machine, yet the gui wants me to make a PostgreSQL Connection; what exactly is that and is there a more simple way to access my dbf files? Thanks, katie -Original Message- From: David Fawcett [mailto:david.fawc...@gmail.com] Sent: Thu 12/17/2009 9:57 AM To: Carbonari, Katie (IS) Cc: qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] alternatives to join attributes Have you thought about loading the data into PostGIS? You would load the data into the db and then be able to query and display only the data that you want at any time. David. On Thu, Dec 17, 2009 at 8:46 AM, Carbonari, Katie (IS) katie.carbon...@ngc.com wrote: Good morning. I have a lot of data I need to visualize in QGIS (142 time steps, each with over 200,000 points). I need a way to quickly and easily load this data in QGIS. All of my data is in separate .csv files (one file per time step). I load each file via the csv plug-in and then use join attributes to connect my csv data to the polygon data that defines my grid. Join attributes takes forever (trying to do 4,000 points took an hour). Any one know of any other, faster way to do this? Or a way to speed up my join attributes? I know 200,000 points is a lot to ask and can easily cut that down a bit, but an hour to do 4000 points seems very slow. At that rate, it would take 3 weeks to load the entire time series into QGIS. I'm running the latest version of QGIS (Mimas) on a Mac OsX. Thanks, Katie ___ 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] Default Save As Image format
Does anyone know of a way short of re-compiling to change the default image format from PNG to JPG when you select File | Save As Image? I have some guys that will be using that feature a lot, and JPG is the format they have to use. Ron Bentley ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Re: suggestion for gdal raster tools in QGIS
Agustin Lobo ha scritto: into an editor, edit there and run the edited command, but if this editing could be done directly in the Raster tools window, that would enhance operationality. Hi Agus. Would you mind opening a ticket for this? https://trac.faunalia.it/GdalTools-plugin/ Thanks. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user