[gdal-dev] UTF-8 problem with MSSQLSpatial and ogr2ogr

2012-03-29 Thread philippe.suray
Hello, I am trying to load a shape file encoded in UTF-8 in SQLServer2008. I use this command from ogr2ogr to load the data's: ogr2ogr --debug on -f MSSQLSpatial "MSSQL:server=localhost;database=ogr2ogrTest;Trusted_Connection=True;" "myShapeFile.shp" -t_srs EPSG:4326 -dsco ENCODING=UTF-8 -lco ENC

Re: [gdal-dev] Ogr2OGR for GeoJSON fails on windows 7

2012-03-29 Thread Chaitanya kumar CH
Vivek, Check if you have write permission to the directory. On Fri, Mar 30, 2012 at 5:53 AM, Vivek Dey wrote: > Hi Eli > My bad , i did typo in writing here. I have written correctly as GeoJSON > for conversion. > Thnks > Vivek > On 2012-03-29 4:23 PM, "Eli Adam" wrote: > >> Vivek, >> >>I

Re: [gdal-dev] Ogr2OGR for GeoJSON fails on windows 7

2012-03-29 Thread Eli Adam
Vivek, > My bad , i did typo in writing here. I have written correctly as GeoJSON for > conversion. Are you saying that you typed it correctly on the command line and it still doesn't work? If so, can you copy your command and error from the command line to the email? Eli __

Re: [gdal-dev] Ogr2OGR for GeoJSON fails on windows 7

2012-03-29 Thread Vivek Dey
Hi Eli My bad , i did typo in writing here. I have written correctly as GeoJSON for conversion. Thnks Vivek On 2012-03-29 4:23 PM, "Eli Adam" wrote: > Vivek, > >I think you might have some minor typos: > > > ogr2ogr -f "geoJSAON CENO.json CENOVUS.shp > > "GeoJSON" not > "geoJSAon [no ending d

Re: [gdal-dev] Ogr2OGR for GeoJSON fails on windows 7

2012-03-29 Thread Eli Adam
Vivek, I think you might have some minor typos: > ogr2ogr -f "geoJSAON CENO.json CENOVUS.shp "GeoJSON" not "geoJSAon [no ending double quote either] HTH, Eli ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinf

[gdal-dev] Ogr2OGR for GeoJSON fails on windows 7

2012-03-29 Thread Vivek Dey
Hi All I am a newbie of GDAL. I want to convert a shape file to GeoJSON file. I have downloaded GDAL 19 (MSVC 2010 win64) binaries. However, when I try to convert to GeoJSON. It says "Failed to create geoJSON datasource" I am using the following code ogr2ogr -f "geoJSAON CENO.json CENOVUS.sh

Re: [gdal-dev] Re: Error in creating gml file

2012-03-29 Thread Salvatore Larosa
Il giorno gio, 29/03/2012 alle 14.47 -0700, proto83 ha scritto: > ok i did it and i the output was this. > INFO:Open of 'c:\shapefiles\oikismoi_irakliou.shp' > using driver 'ESRI Shapefile' successful > 1:oikismoi_irakliou Can you try ogr2ogr command in a different folder? For example in the Des

[gdal-dev] Re: Error in creating gml file

2012-03-29 Thread proto83
ok i did it and i the output was this. INFO:Open of 'c:\shapefiles\oikismoi_irakliou.shp' using driver 'ESRI Shapefile' successful 1:oikismoi_irakliou -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4669302.html Sent from the GDAL - Dev

Re: [gdal-dev] Re: Error in creating gml file

2012-03-29 Thread Salvatore Larosa
Il giorno gio, 29/03/2012 alle 14.00 -0700, proto83 ha scritto: > no i am in windows.but i still cannot understand what i must do to fix the > problem. > > -- well, will be hard reach a solution! ;-) try ogrinfo command: ogrinfo oikismoi_irakliou.shp _

[gdal-dev] Re: Error in creating gml file

2012-03-29 Thread proto83
no i am in windows.but i still cannot understand what i must do to fix the problem. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4669179.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _

Re: [gdal-dev] Re: Error in creating gml file

2012-03-29 Thread Salvatore Larosa
Il giorno gio, 29/03/2012 alle 13.31 -0700, proto83 ha scritto: > can you explain me more if it's not problem for you? :) I assume you are on Linux! What returns this command: $ ls -l | grep yourFolder ? "youFolder" is the folder where you save your files! _

[gdal-dev] Re: Error in creating gml file

2012-03-29 Thread proto83
can you explain me more if it's not problem for you? :) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4669107.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev mail

Re: [gdal-dev] Error in creating gml file

2012-03-29 Thread Even Rouault
Le jeudi 29 mars 2012 22:03:06, proto83 a écrit : > ogr2ogr -f "GML" oikismoi_irakliou_gml.gml oikismoi_irakliou.shp > > i write this in the command line and i receive the following message. > > ERROR4:Failed to create GML file oikismoi_irakliou_gml.gml > GML driver failed to create oikismoi_irak

[gdal-dev] Error in creating gml file

2012-03-29 Thread proto83
ogr2ogr -f "GML" oikismoi_irakliou_gml.gml oikismoi_irakliou.shp i write this in the command line and i receive the following message. ERROR4:Failed to create GML file oikismoi_irakliou_gml.gml GML driver failed to create oikismoi_irakliou_gml.gml Does anyone knows what is the problem? Regards,

RE: [gdal-dev] Interpretation of DTED elevation data

2012-03-29 Thread Alex Barféty
I've used the ReadRaster method with a short array and it working perfectly fine, the elevation data recovered are correct. Thanks for your advice :) Alex Barféty -Message d'origine- De : Even Rouault [mailto:even.roua...@mines-paris.org] Envoyé : mercredi 28 mars 2012 10:23 À : AlexRN

Re: [gdal-dev] fail to build gdal 1.9 with minGW

2012-03-29 Thread chenliang wang
I think I get it more clearly. It 's a linking problem now. When I compiled GDAL 1.9 linked statically with proj. I got the error 'undefined reference to 'pj_init' '. The libray 'libproj.a' must be set in my project. But I use same configure script to test my GDAL 1.6. It turns out that I just

Re: [gdal-dev] fail to build gdal 1.9 with minGW

2012-03-29 Thread Even Rouault
Selon chenliang wang : > Thanks for your reply. I have tried 'make clean' and then rebuild GDAL. > And I have also modified GNUmakefile ,replaed '${GDAL_ROOTs}' for '.' > and then 'make clean' and rebuild it again. Unfortunately, I failed > again. I use command ' ./configure --prefix=. ' Shoul

Re: [gdal-dev] fail to build gdal 1.9 with minGW

2012-03-29 Thread chenliang wang
Thanks for your reply. I have tried 'make clean' and then rebuild GDAL. And I have also modified GNUmakefile ,replaed '${GDAL_ROOTs}' for '.' and then 'make clean' and rebuild it again. Unfortunately, I failed again. I use command ' ./configure --prefix=. ' Should I need to add option '--ho

Re: [gdal-dev] GDAL Tiling

2012-03-29 Thread Even Rouault
Selon akshay gupta : > I am presently using -srcwin for copying AOI to a different file. does > -projwin have any advantage over -srcwin? No, the underlying processing is the same. You just use what option is the more convenient for you. In fact, when -projwin is used, the projected/geographic co

Re: [gdal-dev] fail to build gdal 1.9 with minGW

2012-03-29 Thread Even Rouault
Selon chenliang wang : > hi: > I failed to build gdal 1.9 with minGW. I modified 'cpl_multiproc.h' with > the patch.But there are still errors with build:cpl_multiproc.cpp:73: > undefined reference to `CPLCreateOrAcquireMutex' .Pls help me out.Thanks! >

Re: [gdal-dev] GDAL Tiling

2012-03-29 Thread akshay gupta
I am presently using -srcwin for copying AOI to a different file. does -projwin have any advantage over -srcwin? Akhy On Wed, Mar 28, 2012 at 5:29 PM, Jay L. wrote: > Akshay, > > 1) An AOI can be created using the -projwin option in gdal_translate. You > can use that option when creating a new

[gdal-dev] fail to build gdal 1.9 with minGW

2012-03-29 Thread chenliang wang
hi: I failed to build gdal 1.9 with minGW. I modified 'cpl_multiproc.h' with the patch.But there are still errors with build:cpl_multiproc.cpp:73: undefined reference to `CPLCreateOrAcquireMutex' .Pls help me out.Thanks! --