[gdal-dev] convert UTM 2 Latlong

2013-08-24 Thread Murat Beyhan
Hi, I have tried to do before but until I can't succeded please help me how to convert utm data into geographic lat/lon data. I have point and line data in shape file and I would like to convert it into lat/long data I thing this could be done using gdaltransform but I dont know how to do. I have

[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 for

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

2013-02-18 Thread Murat Beyhan
new directory and collect files under that directory.. > > > I have written another script and it read data under working directory. So > I have to see files under the working directory. > > Regards > Murat > > 2013/2/16 Eli Adam > >> On Fri, Feb 15, 2013 at 1:25 PM,

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

2013-02-17 Thread Murat Beyhan
Murat 2013/2/16 Eli Adam > On Fri, Feb 15, 2013 at 1:25 PM, Murat Beyhan > 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 > > > &g

[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 lo

[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 b

[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 Count:

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ı

[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

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 /var/www/html/dynamic/kyh_sta_ogr.csv thanks again Murat On Tue, 2012-03-06 at 08:08 +, Jukka Rahkonen wrote: > Murat Beyhan deprem.gov.tr> writes: > > >

[gdal-dev] ogr csv layer gdal

2012-03-06 Thread Murat Beyhan
g (0.0) Longitude: String (0.0) OGRFeature(kyh_sta_ogr):1 ID (String) = 1 STA_ID (String) = 0104 Latitude (String) = 37.02403 Longitude (String) = 3

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: &

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

2012-03-05 Thread Murat Beyhan
> Perhaps you can use the CAST operator to convert the data type to > varchar. > > On Monday, March 5, 2012, Murat Beyhan wrote: > > Chaitanya, > > > > Thanks for your help, I try to use concat to create view from > database > > which is storing start and

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

2012-03-05 Thread Murat Beyhan
eate the wkt. > > It should be something like this: CONCAT('LINESTRING(', 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 > wrote: >

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

2012-03-02 Thread Murat Beyhan
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 > wrote: > Chaitanya, > > I

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 > wrote: > Chaitanya, > > What do you prefer and which way more fast to draw

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 > wrote: > I have to say this is not view >

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

2012-03-02 Thread Murat Beyhan
your view? > SELECT * FROM geom; > > On Fri, Mar 2, 2012 at 6:12 PM, Murat Beyhan > wrote: > > > > > Dear Chaitanya, > > I see what you explain first I convert lat lon data to string > then

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

2012-03-02 Thread Murat Beyhan
my progress :) murat 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 > wrote: > > > >

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

2012-03-02 Thread Murat Beyhan
ons/conversion-functions.php > > On Fri, Mar 2, 2012 at 5:38 PM, Murat Beyhan > wrote: > Chaitanya, > > I could not do this using sql sorry. > > But I have an another idea is it good way to store these data > as a >

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

2012-03-02 Thread Murat Beyhan
er than the '+' operator in the SQL > syntax to create the geom field in the view. > > On Thu, Mar 1, 2012 at 12:48 PM, Murat Beyhan > wrote: > Chaitanya, > > I have had a progress about VRT data access > but I afraid something

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

2012-02-29 Thread Murat Beyhan
elp. Many thanks Murat On Thu, 2012-03-01 at 09:22 +0530, Chaitanya kumar CH wrote: > Murat, > > You should check MySQL's SQL syntax to concatenate strings and > decimals to produce a string. > > On Wednesday, February 29, 2012, Murat Beyhan > wrote: > > Chaitan

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

2012-02-29 Thread Murat Beyhan
hanks again On Tue, 2012-02-28 at 18:08 +0530, Chaitanya kumar CH wrote: > Murat, > > > I see that your view, lineview, doesn't give the expected geometry > type with ogrinfo. It is showing the datatype as Real. Check if the > datatype of geo

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

2012-02-27 Thread Murat Beyhan
n't matter much how you store it. If you are > going to edit the end points later, storing them as points is > preferable, otherwise store them as wkt linestring geometries. > > > For your mapfile, first check if the extents are correct. Then check > if

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

2012-02-27 Thread Murat BEYHAN
mapfile. Check 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 > wrote: > > > Dear all, &

[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 from

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

2011-05-04 Thread Murat Beyhan
Cc: "gdal- > > d...@lists.osgeo.org" > > Ogg: Re: [gdal-dev] > > create kml file using MySQL database or shape file > > > > Dear Sigfrido, > > > > > > Thank you for your help, > > I corrected the script and it works but when I > &g

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

2011-05-04 Thread Murat Beyhan
user=root, > password=mysql_123,port=3306,tables=sisint' -sql "SELECT koy, > longitude, latitude , sisint from sisint" > > koy means village name. > > sisint menans seismic intensity value of the village > > Murat > > > On Tue, > 2011-05-03

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

2011-05-04 Thread Murat Beyhan
5-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 simgmt.kml simgmt.shp -dsco NameField=RegionName > > this can create a file but strangely data collected at one point. > &g

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

2011-05-03 Thread Murat Beyhan
t; GeoJSON -> Interlis 1 -> Interlis 2 -> GMT -> SQLite -> ODBC -> PGeo -> OGDI -> MySQL -> PCIDSK -> XPlane -> AVCBin -> AVCE00 -> DXF -> Geoconcept -> GeoRSS -> GPSTrackMaker -> VFK -- Murat BEYHAN Geophy

[gdal-dev] open failed ogr connection

2010-09-21 Thread Murat Beyhan
ogr CONNECTION "MySQL:testogr,user=root,password=mysql_123" NAME "ilcmrk" DATA ilce_merkezleri STATUS default TYPE POINT CLASS NAME "iLCE MERKEZi" SYMBOL "cpoint" SIZE 1 COLOR 72 118 255 END END What is wrong with my procedures. Plea

Re: [gdal-dev] Open failed for OGR connection

2010-09-21 Thread Murat Beyhan
Hi I'm sorry, please.I could not understood what do you mean. I didn't use thread what you mention. I sent my question by using "Open failed for OGR connection" murat On Tue, 2010-09-21 at 10:31 +0200, Jean-Claude REPETTO wrote: > Le 21/09/2010 10:07, Murat Beyhan a é

[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' suc

Re: [gdal-dev] compile error

2010-09-16 Thread Murat Beyhan
ild the PHP bindings by doing this : > > cd swig/php > make veryclean > make build > > This assumes you have SWIG somewhere in your path (tested version here : swig > 1.3.39) > > This produces a php_gdal.so, but again don't blame me if it doesn't work ;-) >

[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