[gdal-dev] translate polygon shape file

2013-03-11 Thread Murat Beyhan
Hi friends, I have a polygon shape file which is including district of the city It is latitude longitude data. And I try to transform it into UTM data Is it possible to do using gdal. I have googled it some but I could not find appropriate way to do. The example of the data as follows. Thanks

Re: [gdal-dev] ogr2ogr convert e00 to shp

2013-02-18 Thread Murat Beyhan
directory. So I have to see files under the working directory. Regards Murat 2013/2/16 Eli Adam ea...@co.lincoln.or.us On Fri, Feb 15, 2013 at 1:25 PM, Murat Beyhan muratbeyha...@gmail.com wrote: Dear All, I deleted existing shp file and I try but It doesn't create individual shp file

Re: [gdal-dev] ogr2ogr convert e00 to shp

2013-02-17 Thread Murat Beyhan
2013/2/16 Eli Adam ea...@co.lincoln.or.us On Fri, Feb 15, 2013 at 1:25 PM, Murat Beyhan muratbeyha...@gmail.com wrote: Dear All, I deleted existing shp file and I try but It doesn't create individual shp file under same directory. Always creates files under directory avcimport f30c3

[gdal-dev] ogr2ogr convert e00 to shp

2013-02-15 Thread Murat Beyhan
Dear frend, I was creating shp file using ogr2ogr as follows avcimport file.e00 coverage ogr2ogr -f ESRI Shapefile file.shp coverage This was worked well for old version of gdal I have installed gdal 1.9 then I have faced such a problem the ogr2ogr command create a directory and shp file

[gdal-dev] convert linestring to point data

2013-01-31 Thread Murat BEYHAN
Dear All, I would like to convert linestring shape (.shp) file into point shape (.shp) file using gdal. Is this made by gogr2ogr ogr2ogr -f ESRI Shapefile -nlt POINT e34c3_point.shp e34c3_line.shp I have tried this but it gives an error Please How can I do using command I do this using qgis

[gdal-dev] shape file to GMT dem file

2013-01-29 Thread Murat BEYHAN
Dear All, Is it possible to obtain dem grid data from shapefile using gdal or ogr. info about shape file as follows murat@murat:~/maps$ ogrinfo -so -al e34c3_n.shp INFO: Open of `e34c3_n.shp' using driver `ESRI Shapefile' successful. Layer name: e34c3_n Geometry: Line String Feature

[gdal-dev] ogr sql issue

2012-05-28 Thread Murat Beyhan
Dear All, I would like to create a KML file using ogr2ogr with using following but sql statement part does not filter data from csv file and draw all points on the map, please help me what I'm doing wrong. the code I used as follows ogr2ogr -f KML villages.kml villages.csv -dsco NameField=id

Re: [gdal-dev] ogr sql issue

2012-05-28 Thread Murat Beyhan
Dear Rahkohen, You are right it works fine now. Thanks for quick reply. :) On Mon, 2012-05-28 at 13:32 +, Jukka Rahkonen wrote: integer,real,real,real Murat BEYHAN Jeofizik Y.Müh. T.C. Başbakanlık Afet ve Acil Durum Yönetimi Başkanlığı Deprem Dairesi Başkanlığı Eskişehir Yolu 12. Km

[gdal-dev] ogr csv layer gdal

2012-03-06 Thread Murat Beyhan
(String) = 2 STA_ID (String) = 0118 Latitude (String) = 37.02100 Longitude (String) = 35.19100 POINT (35.1910003 37.021) Murat BEYHAN Jeofizik Y.Müh. T.C. Başbakanlık Afet ve Acil Durum Yönetimi Başkanlığı Deprem Dairesi Başkanlığı Eskişehir Yolu 12. Km. Lodumlu/ANKARA

Re: [gdal-dev] Re: ogr csv layer gdal

2012-03-06 Thread Murat Beyhan
Thanks Rahkonen, The problem solved by giving full path of csv file in map file as follows than it works thanks SrcDataSource/var/www/html/dynamic/kyh_sta_ogr.csv/SrcDataSource thanks again Murat On Tue, 2012-03-06 at 08:08 +, Jukka Rahkonen wrote: Murat Beyhan beyhan at deprem.gov.tr

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-05 Thread Murat Beyhan
(', x1, ' ', y1, ',', x2, ' ', y2, ')') You may have to change the order of the points. On Fri, Mar 2, 2012 at 9:24 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, I store data in table not view as I told you before becasue I could

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-05 Thread Murat Beyhan
type to varchar. On Monday, March 5, 2012, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, Thanks for your help, I try to use concat to create view from database which is storing start and end of the point of the line as follows. create view lineview6 as select eq_id

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-05 Thread Murat Beyhan
Chaitanya, I could not succeeded What I have tried. the problem is I'm not good at mysql. I think I could not do this job. I'm really upset. Are there a different way or easy way to draw line using mysql table data.. Regards On Mon, 2012-03-05 at 10:44 +0200, Murat Beyhan wrote: Chaitanya, I

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
at 12:48 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, I have had a progress about VRT data access but I afraid something wrong in mapserver .map file. here is the test.vrt file and I use in map file with connection ogr

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
in the SQL syntax to create the geom field in the view. On Thu, Mar 1, 2012 at 12:48 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, I have had a progress about VRT data access

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
On Fri, 2012-03-02 at 18:32 +0530, Chaitanya kumar CH wrote: Murat, Can you show a sample output of your view? SELECT * FROM geom; On Fri, Mar 2, 2012 at 6:12 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Dear Chaitanya, I

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
? SELECT * FROM geom; On Fri, Mar 2, 2012 at 6:12 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Dear Chaitanya, I see what you explain first I convert lat lon data to string then I concatenate them to string again

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
wrote: Murat, You specified the encoding for GeometryField in the VRT as WKT. OGR expects a WKT if you do that. Either change the data or the VRT. On Fri, Mar 2, 2012 at 6:42 PM, Murat Beyhan bey...@deprem.gov.tr wrote: I have to say this is not view this is a table created

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
was talking about the geometry format of the line. You have to decide for yourselves about the efficiency. On Fri, Mar 2, 2012 at 8:57 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, What do you prefer and which way more fast to draw line and point

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-03-02 Thread Murat Beyhan
really sorry for giving trouble to you. Thanks murat On Fri, 2012-03-02 at 21:19 +0530, Chaitanya kumar CH wrote: Modify the table to store the line as a wkt geometry in string format. On Fri, Mar 2, 2012 at 9:12 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-02-29 Thread Murat Beyhan
as Real. Check if the datatype of geom is actually string/text. On Tue, Feb 28, 2012 at 12:49 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, Map file which is try to draw line as follows are there any problem on the code

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-02-29 Thread Murat Beyhan
to concatenate strings and decimals to produce a string. On Wednesday, February 29, 2012, Murat Beyhan bey...@deprem.gov.tr wrote: Chaitanya, here is the structure of table on database sfault : eq_id varchar(14) lat1 decimal(7,4) lon1 decimal(7,4) lat2 decimal(7,4) lon2

[gdal-dev] drawing line using OGR and mysql in mapserver

2012-02-27 Thread Murat Beyhan
Dear all, I have shared this mail on Mapserver list but could not solve my problem. Still could not achieve to draw line using start and stop point line data stored in MySql database. I have tried Mr. Robert's solution but I have faced an error message. in map file I changed Geometrytype

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-02-27 Thread Murat BEYHAN
if ogrinfo gives expected results with this file. You probably have gdal executables if you are running mapserver. [1]: http://www.gdal.org/ogrinfo.html On Mon, Feb 27, 2012 at 12:48 PM, Murat Beyhan bey...@deprem.gov.tr wrote: Dear all, I have shared this mail on Mapserver list

Re: [gdal-dev] drawing line using OGR and mysql in mapserver

2012-02-27 Thread Murat Beyhan
the geometries in MySQL. On Tuesday, February 28, 2012, Murat BEYHAN wrote: Chaitanya, thanks for your repply, Actually I use ogr and mysql to draw point for example epicenter of earthquakes. But this is the first time to draw line

Re: [gdal-dev] create kml file using MySQL database or shape file

2011-05-04 Thread Murat Beyhan
Sigfrido Percich wrote: Hi Murat, Il giorno mar, 03/05/2011 alle 16.57 +0300, Murat Beyhan ha scritto: ogr2ogr -f KML simgmt.kml simgmt.shp -dsco NameField=RegionName this can create a file but strangely data collected at one point. Probably it is a Spatial Reference System related problem

Re: R: Re: [gdal-dev] create kml file using MySQL database or shape file

2011-05-04 Thread Murat Beyhan
, latitude , sisint from sisint koy means village name. sisint menans seismic intensity value of the village Murat On Tue, 2011-05-03 at 17:33 +0200, Luca Sigfrido Percich wrote: Hi Murat, Il giorno mar, 03/05/2011 alle 16.57 +0300, Murat Beyhan ha scritto: ogr2ogr -f KML

Re: R: Re: [gdal-dev] create kml file using MySQL database or shape file

2011-05-04 Thread Murat Beyhan
at 17:33 +0200, Luca Sigfrido Percich wrote: Hi Murat, Il giorno mar, 03/05/2011 alle 16.57 +0300, Murat Beyhan ha scritto: ogr2ogr -f KML simgmt.kml simgmt.shp -dsco NameField=RegionName this can create a file but strangely data collected at one point

[gdal-dev] create kml file using MySQL database or shape file

2011-05-03 Thread Murat Beyhan
- PCIDSK - XPlane - AVCBin - AVCE00 - DXF - Geoconcept - GeoRSS - GPSTrackMaker - VFK -- Murat BEYHAN Geophysical Engineer, M.Sc. Prime Ministry Disaster and Emergency Management Presidency Earthquake Department Address: Eskisehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556

[gdal-dev] Open failed for OGR connection

2010-09-21 Thread Murat Beyhan
Dear friends, I could not solve the problem for OGR connections. from terminal I use the following codes and it works fine [mu...@localhost makedaskmap]$ ogrinfo MySQL:testogr,user=root,password=mysql_123 INFO: Open of `MySQL:testogr,user=root,password=mysql_123' using driver `MySQL'

[gdal-dev] compile error

2010-09-15 Thread Murat Beyhan
I tried to install gdal 1.7.2 on mandriva in order to read data from mysql. So I faced following error Please help me How can I solve this problem many thanks Murat g++ -I../../port -I../../gcore -I../../alg -I../../ogr `php-config --includes` -fpic -c gdal_wrap.cpp