Re: [gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers

2014-06-01 Thread Even Rouault
Klo,

 
 it turned out afterall that DXF is not such a great choice in my case.
 `pstoedit` is best tool for rapid conversion, but it does not respect
 polygons present in initial PDF files, but it just samples polygons to very
 small lines which is such bad outcome.
 
 Evan, or anybody else, can you please link me to SVG DTD that ogr2ogr would
 understand?
 The link provided here: http://www.gdal.org/drv_svg.html is dead, and on
 their (cloudmade) web portal I can find any information about their custom
 SVG format.

No formal DTD, but here's a sample file :
http://svn.osgeo.org/gdal/trunk/autotest/ogr/data/test.svg

 
 I also assume there is no tool that can make initial PDF valid for ogr2ogr.

No, it just needs a bit of extra coding in the PDF driver.

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers

2014-05-31 Thread klo uo
Hi,

it turned out afterall that DXF is not such a great choice in my case.
`pstoedit` is best tool for rapid conversion, but it does not respect
polygons present in initial PDF files, but it just samples polygons to very
small lines which is such bad outcome.

Evan, or anybody else, can you please link me to SVG DTD that ogr2ogr would
understand?
The link provided here: http://www.gdal.org/drv_svg.html is dead, and on
their (cloudmade) web portal I can find any information about their custom
SVG format.

I also assume there is no tool that can make initial PDF valid for ogr2ogr.


Thanks,
Klo



On Thu, May 29, 2014 at 12:24 AM, klo uo klo...@gmail.com wrote:

 Ok, thanks for your confirmation.

 I'll go DXF route.
 In the meantime I found that by using pstoedit for conversion from PDF to
 DXF is the right choice.



 On Wed, May 28, 2014 at 11:34 PM, Even Rouault 
 even.roua...@mines-paris.org wrote:

 Le mercredi 28 mai 2014 23:06:38, vous avez écrit :
  Hi Even,
 
  thanks for your prompt reply.
 
  Could you please tell more about the PDF limitation. For example a way
 to
  transform my PDF to the one that ogr2ogr would understand?
 
  I attached the test files.

 The PDF driver would require some enhancements to support that kind of
 file.
 Basically it currently only supports files that have a layered
 organization,
 whereas yours is flat. From a quick analysis, I'd say it would require
 modest
 effort to support that file.

 --
 Geospatial professional services
 http://even.rouault.free.fr/services.html



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

Re: [gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers

2014-05-28 Thread Even Rouault
Le mercredi 28 mai 2014 22:10:51, klo uo a écrit :
 Hi,
 
 I have vector data in PDF format, which I tried to georeference with
 org2ogr -gcp feature and output basic Shapefile, but program complains that
 it's unable to read the PDF file, which I confirm as valid by processing it
 with ghostscript.
 
 I then converted PDF to SVG and confirmed that SVG is well-formed and valid
 XML, but again ogr2ogr complains about it.
 
 Finally by converting initial PDF to DXF, ogr2ogr was able to complete the
 task.
 
 I want to avoid converting PDF to other format and especially to DXF which
 makes the process slow, so I'm hoping for advice. I can provide the test
 files if necessary.  Thanks.

Could you provide the test file ? The PDF vector reader has some limitations, 
and works best with structured PDF.

As far as SVG is concerned, the SVG reader is also currently limited to a 
particular formation of SVG : http://gdal.org/drv_svg.html

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers

2014-05-28 Thread Even Rouault
Le mercredi 28 mai 2014 23:06:38, vous avez écrit :
 Hi Even,
 
 thanks for your prompt reply.
 
 Could you please tell more about the PDF limitation. For example a way to
 transform my PDF to the one that ogr2ogr would understand?
 
 I attached the test files.

The PDF driver would require some enhancements to support that kind of file. 
Basically it currently only supports files that have a layered organization, 
whereas yours is flat. From a quick analysis, I'd say it would require modest 
effort to support that file.

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers

2014-05-28 Thread klo uo
Ok, thanks for your confirmation.

I'll go DXF route.
In the meantime I found that by using pstoedit for conversion from PDF to
DXF is the right choice.



On Wed, May 28, 2014 at 11:34 PM, Even Rouault even.roua...@mines-paris.org
 wrote:

 Le mercredi 28 mai 2014 23:06:38, vous avez écrit :
  Hi Even,
 
  thanks for your prompt reply.
 
  Could you please tell more about the PDF limitation. For example a way to
  transform my PDF to the one that ogr2ogr would understand?
 
  I attached the test files.

 The PDF driver would require some enhancements to support that kind of
 file.
 Basically it currently only supports files that have a layered
 organization,
 whereas yours is flat. From a quick analysis, I'd say it would require
 modest
 effort to support that file.

 --
 Geospatial professional services
 http://even.rouault.free.fr/services.html

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

Re: [gdal-dev] ogr2ogr unable to open

2011-06-06 Thread Frank Warmerdam

On 11-06-06 01:27 PM, Bob Pawley wrote:

Hi
I hope this is the right list.
I am attempting to use the FWTools to convert a .dxf file to a PostgreSQL 
database.
I am using the following format -
ogr2ogr -f PostgreSQL PG: host=Remote Host user=postgres dbname=E5R
password=Password p081.dxf
I receive an error message - unable to open datasource . with the following
drivers.
The PostgreSQL driver is listed amongst the generated list.
The database is accessible with other tools from this computer.
Any thoughts on what I am doing wrong will be appreciated.


Bob,

For one thing there should be no space between PG: and the rest of the
connection string.  Try:

ogr2ogr -update PG:host=RemoteHost  user=postgres dbname=E5R 
password=Password p081.dxf


Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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