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

2012-03-30 Thread Chaitanya kumar CH
Phillippe,

You can start with http://trac.osgeo.org/gdal/wiki/BuildHints if you want
to do this yourselves.
You can file a ticket at http://trac.osgeo.org/osgeo/newticket and attach
your patch there.

Also, provide a link to the MSSQL documentation regarding this.

Thank you.

On Fri, Mar 30, 2012 at 12:14 PM, philippe.suray <
philippe.su...@market-ip.com> wrote:

> 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 ENCODING=UTF-8
> -overwrite -progress
>
> When I check the records in the DB, some fields are not correctly encoded.
>
> According to SQLServer documentation and to my understanding: in order to
> store unicode, the fields must be declared as NCHAR or NVARCHAR and the
> insert or update statements must append 'N' before the value (INSERT INTO
> tForeignLanguage ([Name]) VALUES (N'Араб'))
>
> I also search about unicode in this list and found:
> - http://osgeo-org.1560.n6.nabble.com/RFC-23-OGR-Unicode-td3759338.html
> - http://trac.osgeo.org/gdal/wiki/rfc23_ogr_unicode
>
> I downloaded the latest source code from http://www.gdal.org/daily/ and
> check into mssqlspatial component and found that the driver does not
> respect
> these assumptions:
> - fields are created as VARCHAR,
> - statements does not append 'N'
>
> I really need this unicode support but I am not very familiar with C++,
> could you help me to implement a patch to test the loading of a shapefile
> into SQLServer2008.
> What classes should I change and how?
>
> Thank you for your help.
>
> Best regards.
>
> Philippe
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/UTF-8-problem-with-MSSQLSpatial-and-ogr2ogr-tp4670214p4670214.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

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

2012-03-30 Thread Mateusz Loskot
On 30 March 2012 01:35, Eli Adam  wrote:
> 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?

I'm fairly sure he typed it correctly.
The error message he got is spelled correclty:

"Failed to create geoJSON datasource"

Either folder rights are not right, or dataset translation fails.
If the latter, sample data + ticket would be appreciated.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2012-03-30 Thread proto83
Can you give me an example,how will i do it?

Sorry,but i am a little bit confused.

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4671308.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2012-03-30 Thread Chaitanya kumar CH
Spiros,

Your command was correct. The error you got was caused because the ogr2ogr
utility could not create a file in the place you specified. See if you can
create a folder or a file in the folder you are trying to save the file
oikismoi_irakliou_gml.gml. If you can't, it means that you don't have
permissions to modify that folder. Try to save the file in some other place.

On Fri, Mar 30, 2012 at 6:54 PM, proto83  wrote:

> Can you give me an example,how will i do it?
>
> Sorry,but i am a little bit confused.
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4671308.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

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

2012-03-30 Thread Vivek Dey
Hello

Thank you all for helping me out.

The error was because of the write permission in the directory.
I changed the directory and it works well.

Thanks Chaitanya and everybody else.

Vivek

On Fri, Mar 30, 2012 at 3:18 AM, Mateusz Loskot  wrote:

> On 30 March 2012 01:35, Eli Adam  wrote:
> > 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?
>
> I'm fairly sure he typed it correctly.
> The error message he got is spelled correclty:
>
> "Failed to create geoJSON datasource"
>
> Either folder rights are not right, or dataset translation fails.
> If the latter, sample data + ticket would be appreciated.
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

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

2012-03-30 Thread proto83
ok i understood and i solved the problem.i did this on another hard disk that
i have without any problem.

So,everything is ok.thank you for your help.

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Error-in-creating-gml-file-tp4669016p4671470.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] ARG (Azavea Raster Grid) driver

2012-03-30 Thread David Zwarg
Hello,

I've written an implementation for the Azavea Raster Grid format (ARG
spec)
that we use in GeoTrellis .

I created a ticked for this feature: http://trac.osgeo.org/gdal/ticket/4591

This is the first driver that I've contributed, so if you have the time, I
would appreciate any feedback you have about the driver implementation.

Thanks,
David
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev