Re: [gdal-dev] Some info about geospatial PDF and TerraGo Toolbar

2012-03-02 Thread George Demmy
On Fri, Mar 2, 2012 at 9:02 PM, Even Rouault wrote: > Le vendredi 02 mars 2012 21:22:10, George Demmy a écrit : >> Here's some info that might help the development effort for PDF and >> use of PDF created or georegistered by GDAL. >> >> Something that is confusing is TerraGo Toolbar's behavior wit

Re: [gdal-dev] Some info about geospatial PDF and TerraGo Toolbar

2012-03-02 Thread Even Rouault
Le vendredi 02 mars 2012 21:22:10, George Demmy a écrit : > Here's some info that might help the development effort for PDF and > use of PDF created or georegistered by GDAL. > > Something that is confusing is TerraGo Toolbar's behavior with PDF > files not created by TerraGo software. The company

Re: [gdal-dev] Re: Can PDF measuring be activated

2012-03-02 Thread George Demmy
On Fri, Mar 2, 2012 at 8:37 PM, Even Rouault wrote: > Le vendredi 02 mars 2012 12:53:39, Jukka Rahkonen a écrit : >> Even Rouault mines-paris.org> writes: >> > Le jeudi 01 mars 2012 22:19:34, Jukka Rahkonen a écrit : >> > > Hi, >> > > >> > > The native measurement tool of Acrobat Reader stays gre

Re: [gdal-dev] Re: Can PDF measuring be activated

2012-03-02 Thread Even Rouault
Le vendredi 02 mars 2012 12:53:39, Jukka Rahkonen a écrit : > Even Rouault mines-paris.org> writes: > > Le jeudi 01 mars 2012 22:19:34, Jukka Rahkonen a écrit : > > > Hi, > > > > > > The native measurement tool of Acrobat Reader stays greyed with the ISO > > > style georeferenced PDFs. From Abobe

[gdal-dev] Some info about geospatial PDF and TerraGo Toolbar

2012-03-02 Thread George Demmy
Here's some info that might help the development effort for PDF and use of PDF created or georegistered by GDAL. Something that is confusing is TerraGo Toolbar's behavior with PDF files not created by TerraGo software. The company policy was to not support files with the Toolbar, the reason being

Re: [gdal-dev] How to edit a .dxf file?

2012-03-02 Thread Even Rouault
Le vendredi 02 mars 2012 18:26:52, huahu a écrit : > Hi, > I try to edit in this way, but it can not work,although it can save > geometry,but it cannot save feature. The DXF driver doesn't support update of existing files. It supports reading a file or writing a new one. So you'll have to iterate

[gdal-dev] How to edit a .dxf file?

2012-03-02 Thread huahu
Hi, I try to edit in this way, but it can not work,although it can save geometry,but it cannot save feature. My purpose is alter the previous file,and copy a DataSource to create a new file. OGRRegisterAll(); OGRDataSource *poDS = OGRSFDriverRegistrar::Open( srcname.c_str(), FALSE ); int layerc

Re: [gdal-dev] Warnings and errors while reading AML to postgis with ogr2ogr

2012-03-02 Thread Chaitanya kumar CH
Bas, While the FWTools package for Windows is easier to install, it is very old. Use the GDAL binaries from the OSGeo4W installer to rule out any bugs that are already fixed. According to your first error report, the s57attributes CSV file has a missing attribute entry. Check if that csv file has

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

2012-03-02 Thread Chaitanya kumar CH
Please refer to my previous posts. Modify the SQL select command. Use the CONCAT function instead of the + operator to create 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

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

2012-03-02 Thread Murat Beyhan
Chaitanya, I store data in table not view as I told you before becasue I could not declare column as string, then I create a new table and select fault(line) column as linestring. in mysql WKT support these format * A LineString with four points: LINESTRING(0 0, 10 10, 20

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

2012-03-02 Thread Chaitanya kumar CH
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 mean What should I do, > Still could not draw a simple line on the map, > Please how can I overcome this issue. How can I change VRT file. > in order to r

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

2012-03-02 Thread Murat Beyhan
Chaitanya, I mean What should I do, Still could not draw a simple line on the map, Please how can I overcome this issue. How can I change VRT file. in order to read data from such table storing data as linestring regards murat On Fri, 2012-03-02 at 21:08 +0530, Chaitanya kumar CH wrote: > I was

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

2012-03-02 Thread Chaitanya kumar CH
I 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 line and point > because I also draw point about 16 and I use w

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

2012-03-02 Thread Murat Beyhan
Chaitanya, What do you prefer and which way more fast to draw line and point because I also draw point about 16 and I use wkbpoint. Any way how to change and What I will change in the vrt. could you tell something about it thanks On Fri, 2012-03-02 at 20:23 +0530, Chaitanya kumar CH wrot

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

2012-03-02 Thread Chaitanya kumar CH
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 > this is a table created. > > Because I could not declare type of geo

[gdal-dev] Warnings and errors while reading AML to postgis with ogr2ogr

2012-03-02 Thread Bas Vermeulen
Hi all, I'm relatively new to GIS and I'm trying to read AML (S-57) data into postgis. I'm trying the following: ogr2ogr -f "PostgreSQL" PG:"host=localhost user=postgres dbname=aml password=***" -append ***\***.000 (the ***s are replaced by the real values) I'm getting warnings like: Warning 1:

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

2012-03-02 Thread Murat Beyhan
I have to say this is not view this is a table created. Because I could not declare type of geom field as a string than I create geometry field column in spatial mysql database.. On Fri, 2012-03-02 at 18:39 +0530, Chaitanya kumar CH wrote: > Murat, > > Can you show a sample output of your view?

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

2012-03-02 Thread Murat Beyhan
Here is also I could store data to mysql as follows INSERT INTO geom set eq_id='20111023101120', fault=GeomFromText('linestring(38.6636 43.8547,38.6952 43.0851)') SQL result Host: localhost Database: dynamic Generation Time: Mar 02, 2012 at 03:04 PM Generated by: phpMyAdmin 3.3.10 / MySQL 5.1.55

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

2012-03-02 Thread Chaitanya kumar CH
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: > > > > > Dear Chaitanya, > > I see what you explain first I convert lat lon data to string then I > concatenate them to string again. But I would like to ask > I have alrea

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

2012-03-02 Thread Murat Beyhan
Dear Chaitanya, I see what you explain first I convert lat lon data to string then I concatenate them to string again. But I would like to ask I have already add data to mysql table as follows is this also correct because when I browse table it seems it store data in geometry field but mapserv

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

2012-03-02 Thread Chaitanya kumar CH
Murat, Put aside linestrings and geometries. First you need to have a wkt representation of your line segment. Your MySQL query is returning a number. That should be an indicator that your query was wrong. You were using the wrong operator. You need to convert the latitude and longitude values to

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

2012-03-02 Thread Murat Beyhan
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 spatial database in MySql. I try this but when I insert data to mysql table I have problem . I have created a table as follows eq_id varchar(14) fault linestring then I will inse

[gdal-dev] Re: Can PDF measuring be activated

2012-03-02 Thread Jukka Rahkonen
Even Rouault mines-paris.org> writes: > > Le jeudi 01 mars 2012 22:19:34, Jukka Rahkonen a écrit : > > Hi, > > > > The native measurement tool of Acrobat Reader stays greyed with the ISO > > style georeferenced PDFs. From Abobe forum I found this: > > > > "Re: Measure tool disabled > > Ah, in

RE: [gdal-dev] Oracle Locator Support

2012-03-02 Thread Nicolas Simon
Bill, It's Ok with Locator-only installation. Nicolas Simon > -Message d'origine- > De : gdal-dev-boun...@lists.osgeo.org > [mailto:gdal-dev-boun...@lists.osgeo.org]De la part de Bill Teluk > Envoyé : vendredi 2 mars 2012 4:28 > À : gdal-dev@lists.osgeo.org > Objet : [gdal-