Re: [gdal-dev] [EXTERNAL] Re: GDAL 3.4.0 is released

2021-11-10 Thread Clay, Bruce
Jeff: Can you add an example to the mapserver set of examples to add support for a slippy map (XYZ)? I can not find anything that shows how to add a local slippy map directory tree to the map file. Bruce From: gdal-dev on behalf of Jeff McKenna Sent:

[gdal-dev] gdal2tiles.py - next step

2021-11-08 Thread Clay, Bruce
I am trying to add WMTS / TMS to our current WMS mapserver. I have some map tiles generated by gdal2tiles.py that appear to be valid. There is a tilemapresource.xml file in the root of each tile set. I am not sure the correct forum to ask this question but how do I configure mapserver to

Re: [gdal-dev] [EXTERNAL] Re: ogr2ogr does not convert OSM polygons

2021-11-08 Thread Clay, Bruce
a angola-latest.osm.pbf added a line for each PBF that I downloaded This created a postgresql /postgis table for each dataset. Bruce From: Rahkonen Jukka (MML) Sent: Tuesday, November 2, 2021 3:35 PM To: Clay, Bruce Cc: 'gdal-dev@lists.osgeo.org' Subject: R

[gdal-dev] ogr2ogr does not convert OSM polygons

2021-11-02 Thread Clay, Bruce
When I convert a OSM pbf file to postgres using the following script it does not create a multipolygon table ogr2ogr -f PostgreSQL PG:"dbname='open_street_map' host='db-host' port='5432' user='postgres' password='pwd'" -lco schema=country country_pbf --config OSM_MAX_TMPFILE_SIZE 1024 When I

Re: [gdal-dev] [EXTERNAL] Re: Converting OBJ to Geojson files with ogr2ogr

2020-12-02 Thread Clay, Bruce
Take a look at CityXml / CityGml and CityJson. There is partial support at least in GDAL based on web searches. Also some support for QGIS through a plugin Bruce From: gdal-dev on behalf of Paul Harwood Sent: Wednesday, December 2, 2020 5:31 AM To:

[gdal-dev] extract from geopdf with transparency

2020-06-17 Thread Clay, Bruce
We have a GeoPDF file that contains multiple layers, base layer plus several transparent overlays and some vectors. We can pull each or all image layers and the vector layers from the PDF and save them in separate files. We cannot get the transparent image layers to extract and keep their

[gdal-dev] ECW to JP2000

2019-12-06 Thread Clay, Bruce
when I use gdal_translate to convert an ECW file to JP2000 it ends up 9 times larger. I could not find any options to control the compression like we can with Geotiff. Is there a way to get a compressed JP2000 image? Bruce ___ gdal-dev mailing list

[gdal-dev] ogr2ogr load shape in tablespace

2013-09-12 Thread Clay, Bruce
I need to load a set of shapefiles into a tablespace (on a different hard drive) where I have more dataspace. I have been using ogr2ogr to load shapefile up to this point using windows command prompt and batch files. I created a tablespace using pgAdminIII but I can not find a way to assign

[gdal-dev] CRS not defined with BMP

2012-11-26 Thread Clay, Bruce
I am using GDAL to convert CADRG files to BMP chips for an application written to only use BMP. I have created the BMP chip, BMP world file and a 4326 prj file to indicate WGS 84. When I use gdalinfo to look at the settings it always indicates CRS is not defined. QGis also says the CRS is

[gdal-dev] unresolved CPLAtomicAdd

2010-11-30 Thread Clay, Bruce
I have been using GDAL 1.7.1 for a while now in debug mode without problems. I recently compiled GDAL in release mode and did not see any errors during the build process. When I build my application I get the following link error : unresolved external symbol _CPLAtomicAdd. I can see

[gdal-dev] problem reading arc from shapefile with OGR

2010-04-27 Thread Clay, Bruce
I created a shapefile in ArcMap with 5 objects. The first two are really a collection of many line strings that I copied from a Census Tigerline file and the other three I created using the ArcMap editor arc tool. The attached file shows what the shapes look like. I can read the two smaller

[gdal-dev] tab delimited to shapefile

2009-11-18 Thread Clay, Bruce
Is there any way to use ogr2ogr to convert tab-delimited data such as the geoname dot org files into shapefiles short of converting all tabs to commas? I created a VRT file that works with CSV files but I can not find any way to convert tab-delimited data. Bruce This message and any

[gdal-dev] SQL results truncated

2009-11-04 Thread Clay, Bruce
It seems like I encountered this problem before but I can not find any information about it now. If I run a SQ script like the following Select * from (Select MIN_LAT - (round((MIN_LAT - LATITUDE) / (MAX_LAT - MIN_LAT) * 1728.497600)) * 0.000579 LAT2, MAX_LON -

RE: [gdal-dev] SQL results truncated

2009-11-04 Thread Clay, Bruce
it is processed data. It just means we have to be very careful of the fieldIndex alignment Bruce From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Clay, Bruce Sent: Wednesday, November 04, 2009 12:25 PM To: gdal-dev

[gdal-dev] double delay getting feature count

2009-10-14 Thread Clay, Bruce
I have tried several different arrangements trying to get the feature count from a user selection and I am getting a delay two times for each query. My current arrangement is OGRLayer *queryLayer = dataSource-ExecuteSQL(fullQueryString, NULL, generic); if (queryLayer != NULL) {

RE: [gdal-dev] double delay getting feature count

2009-10-14 Thread Clay, Bruce
kumar CH [mailto:chaitanya...@gmail.com] Sent: Wednesday, October 14, 2009 2:34 PM To: Clay, Bruce Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] double delay getting feature count Bruce, The GetFeatureCount function gets the value with an SQL query to the data server. The bottleneck may

RE: [gdal-dev] How to delete shapefile

2009-06-17 Thread Clay, Bruce
, 2009 7:31 PM To: Clay, Bruce Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] How to delete shapefile Clay, Bruce wrote: I am trying to delete a temporary shapefile after running a process with the following code. ... The TestCapability always returns FALSE. If I call DeleteLayer anyway

[gdal-dev] GDAL/ArcObjects based app crashes with newer GDAL versions (was How to delete shapefile)

2009-06-17 Thread Clay, Bruce
require some configuration on Windows XP that was not required before? Bruce -Original Message- From: Mateusz Loskot [mailto:mate...@loskot.net] Sent: Wednesday, June 17, 2009 1:15 PM To: Clay, Bruce Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] How to delete shapefile Clay

[gdal-dev] How to delete shapefile

2009-06-16 Thread Clay, Bruce
I am trying to delete a temporary shapefile after running a process with the following code. int GdalWrapper::DeleteDataset(const char *datasetName) { int status = -1; if (datasetName != NULL) { OGRDataSource *dataSrc = OpenDatasetFile(datasetName);

[gdal-dev] libLas

2009-05-27 Thread Clay, Bruce
Are there any plans to fold libLas into the GDAL development tree? In it's current offshoot it takes quite a bit of manipulation due to the dependencies. I even had one link error for stlPort for a dependency. I did manage to get liblas.lib but Visual Studio complained a bunch about duplicate

[gdal-dev] HDF5 link problem

2009-05-19 Thread Clay, Bruce
I downloaded the latest version of HDF5 from ftp://ftp.hdfgroup.org/HDF5/current/bin/windows/ and am trying to build HDF5 support into GDAL 1.6.1. Unfortuneately when I enable HDF5 suuport in the nmake.opt I get unresolved link errors the interesting thing is that the errors are not just for

[gdal-dev] GDAL / libKml interaction causes app to crash

2009-04-02 Thread Clay, Bruce
This question is most likely a problem with libkml. I did post a message on the libkml forum as well. My apologies if you are subscribed to both asnd getting this message twice. I am working on an application that uses GDAL and libKml. Everything was going fine until I added

RE: [gdal-dev] in memory KML

2009-04-01 Thread Clay, Bruce
be a good candidate for handling KML in memory. On Wed, Apr 1, 2009 at 3:23 AM, Mateusz Loskot mate...@loskot.net wrote: Frank Warmerdam wrote: Clay, Bruce wrote: After a bit more digging I am not sure I asked the right question. What I want to do is read feature information from a shapefile

[gdal-dev] in memory KML

2009-03-31 Thread Clay, Bruce
I know that OGR supports in memory feature classes and it supports creating KML data. I could not find any examples of using the in-memory datasource. Is there a way to create KML in memory? Bruce This message and any enclosures are intended only for the addressee. Please

RE: [gdal-dev] in memory KML

2009-03-31 Thread Clay, Bruce
...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Clay, Bruce Sent: Tuesday, March 31, 2009 12:53 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] in memory KML I know that OGR supports in memory feature classes and it supports creating KML data. I could not find any

[gdal-dev] OGR - Oracle problem

2009-03-06 Thread Clay, Bruce
When I issue the following SQL query through SqlPal I get 2 columns of what appears to be valid data select * from (select OBJECTID, sdo_nn_distance(1) Dist from GEONAMES_SDO a1 where DSG LIKE 'PPL%' AND sdo_nn(a1.shape, sdo_geometry(2001, null, sdo_point_type(-84.4850,-21.9810,

[gdal-dev] Get pixel value by lat and long

2009-01-12 Thread Clay, Bruce
I have searched the web and not found any methods to call so I thought I would check before writing one. I need to get the pixel value of a land use raster based on a user selected latitude and longitude. I know I can get the spatial reference of raster and the pixel size to calculate the

RE: [gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista?

2008-12-16 Thread Clay, Bruce
Frank: What is the secret to getting GDAL to build this way? I have Visual Studio 2005 and have not been able to get it to run. The zip file you posted works fine on my system (Vista 64 Bit) but it does not include the csharp files so I have to build. I have tried building with the

RE: [gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista?

2008-12-16 Thread Clay, Bruce
what MS is thing some times, actually most of the time. They keep changing things that don't help at all. -Original Message- From: Frank Warmerdam [mailto:warmer...@pobox.com] Sent: Tuesday, December 16, 2008 3:13 PM To: Clay, Bruce Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev

RE: [gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista?

2008-12-16 Thread Clay, Bruce
Warmerdam [mailto:warmer...@pobox.com] Sent: Tuesday, December 16, 2008 4:41 PM To: Clay, Bruce Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GDAL 1.6.0 DLL Hell problem on Windows Vista? Clay, Bruce wrote: Frank: I am trying to run ogrinfo from the GDAL build app directory. I did not have

[gdal-dev] probelms with 1.6.0 on Vista 64 bit

2008-12-08 Thread Clay, Bruce
I am having problems getting GDAL 1.6.0 to work on Vista 64 bit. It fails on OgrRegisterAll. It dose not through an exception it just lets the program return to the GUI without any error message. I put a break point in the error handler call back and it does not hit that either. It appears

[gdal-dev] Is GDAL reentrant

2008-11-07 Thread Clay, Bruce
I have a Microsoft application with multiple tabs / property pages. Each tab is controlled by a separate class. I have a separate instance of GDAL in each class. I also had an instance in a popup that I used to connect to the database. After the user logins and the popup window goes away it

[gdal-dev] KML problem

2008-11-07 Thread Clay, Bruce
I am using OGR to create both a shapefile and a KML file. The data in the shapefile looks good and the values in the KML are the same as in the shapefile but they are shifted up by 2 places. There are 2 extra attributes in the KML file (Name and Description). My Longitude value appears in the

RE: [gdal-dev] Build OGR with ESRI SDE

2008-10-23 Thread Clay, Bruce
Steve: One word of caution is to make sure you build all of the supporting modules (expat, xerces, geos etc) in the same mode. I spent considerable time over that past week chasing bizarre crashes that gave heap errors and other crashes down in Microsoft space only to find that one of the lower

[gdal-dev] KML output fields

2008-09-26 Thread Clay, Bruce
When I use ogr2ogr to convert a shapefile to KML there are no Name or Description fields in the output and all attributes are lined up. When I try to create a KML file from my code and populate the data both Name and Description fields are included in the output. I have tried not a variety

[gdal-dev] shapefile field size

2008-09-24 Thread Clay, Bruce
I have an OGR based application that I am having problems with data storage Several fields are OFTInteger and several are OFTReal When I write a dataset using the OCI driver the integer fields all store valid information. When I write a dataset using the Shapefile driver the integer

RE: [gdal-dev] shapefile field size

2008-09-24 Thread Clay, Bruce
seems odd that the OCI driver accepted the size but the shapefile driver did not. Bruce From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clay, Bruce Sent: Wednesday, September 24, 2008 2:55 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev

[gdal-dev] OCI driver not adding data to Oracle Table

2008-09-03 Thread Clay, Bruce
I have been trying to use the OCI driver to create a table and load data into it. I have been using the same code loop in the past to create shapefiles without problems. No errors are reported during the CreateFeature and SetField process based on return status but no data shows up in the table.