[Mapserver-users] [mapserver]virtual spatial data
Chip Hankley
Chip.Hankley at rmtinc.com
Fri May 28 19:53:59 PDT 2004
--=__Part3312C957.1__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Zak, et al,
I've had a chance to play with this some more.
I made a mistake in my earlier posts. The web server I was trying things
off of was a WinNT box, not Windows 2000. However, I have tried it on my
home box (a Windows 2000 machine) with the same results.
So, here's what I've tried.
1) *.ovf against a MS Access 2000 based database (System DSN)
2) *.ovf against a text based table - csv (System DSN)
In both cases, the following commands work:
ogrinfo -ro virtual.ovf
...returns:
INFO: Open of `virtual.ovf'
using driver `VRT' successful.
1: MyLayer (Point)
ogrinfo -ro virtual.ovf mylayer
...returns:
INFO: Open of `virtual.ovf'
using driver `VRT' successful.
Layer name: MyLayer
Geometry: Point
Feature Count: 25
Extent: (390873.700800, 5204448.446000)
Layer SRS WKT:
(unknown)
ID: Integer (10.0)
X: Real (0.0)
Y: Real (0.0)
OGRFeature(MyLayer):0
ID (Integer) = 1
X (Real) = 480578.0069
Y (Real) = 5210762.762
POINT (480578.007 5210762.762 0.000)
... and so on.
However, when I try to call it from MapServer, I get the following
error:
msDrawMap(): Image handling error. Failed to draw layer named
'MyVirtualLayer'.
msOGRFileOpen(): OGR error. Open failed for OGR connection
`C:/inetpub/wwwroot/MapServer/PointTest/data/virtual.ovf'. File not
found or unsupported format.
I'm attaching the following:
ogr.map (the mapfile)
virtual.ovf (virtual data file)
data.txt (the text table I'm trying to hit)
Again, this was tested on a Windows 2000 Professional OS, using an MS4.2
beta build I downloaded off of the MS site last week.
Hope that helps... let me know if there's any other test I can run.
Chip
Outgoing messages, along with any attachments, are scanned for viruses at RMT prior to sending.
------------------------------------------------------------------------------
NOTICE--This email may contain confidential and privileged information
for the sole use of the intended recipient. Any review or distribution
by others is strictly prohibited. If you are not the intended recipient,
please contact the sender immediately and delete all copies.
--=__Part3312C957.1__=
Content-Type: application/octet-stream; name="ogr.map"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ogr.map"
Iw0KIyBTdGFydCBvZiBtYXAgZmlsZQ0KIw0KTUFQDQogIE5BTUUgSVRBU0NBDQogIFNUQVRVUyBP
Tg0KICBTSVpFIDYwMCA2MDANCiAgRVhURU5UIDM4ODEwNy42MzQ0MDAzNzkgNTIwMzEyMC44ODQw
NTk1MiA1MDA4OTYuMzM5MDE5ODM0IDUzMTAyNDMuMzA2MTM4OTcNCiAgVU5JVFMgRkVFVA0KICBT
SEFQRVBBVEggImRhdGEiDQogIElNQUdFQ09MT1IgMjU1IDI1NSAyNTUNCiAgVEVNUExBVEVQQVRU
RVJOICJwdHRlc3QiDQoNCiAgSU1BR0VUWVBFIFBORw0KICANCiAgIw0KICAjIFN0YXJ0IG9mIHdl
YiBpbnRlcmZhY2UgZGVmaW5pdGlvbiAoaW5jbHVkaW5nIFdNUyBlbmFibGluZyBtZXRhZGF0YSkN
CiAgIw0KICBXRUINCiAgICBIRUFERVIgdGVtcGxhdGVzL2hlYWRlci5odG1sDQogICAgVEVNUExB
VEUgInNldCBpbiBpbmRleC5odG1sIg0KICAgIEZPT1RFUiB0ZW1wbGF0ZXMvZm9vdGVyLmh0bWwN
CiAgICBNSU5TQ0FMRSAxMDAwDQogICAgTUFYU0NBTEUgMTU1MDAwMA0KICAgIElNQUdFUEFUSCAi
c2V0IGluIGluZGV4Lmh0bWwiDQogICAgSU1BR0VVUkwgInNldCBpbiBpbmRleC5odG1sIg0KDQog
IEVORA0KDQogICMNCiAgIyBTdGFydCBvZiBzY2FsZWJhcg0KICAjDQogIFNDQUxFQkFSDQogICAg
SU1BR0VDT0xPUiAwIDAgMA0KICAgIExBQkVMDQogICAgICBDT0xPUiAyNTUgMjU1IDI1NQ0KICAg
ICAgU0laRSBUSU5ZDQogICAgRU5EDQogICAgU1RZTEUgMQ0KICAgIFNJWkUgMTAwIDINCiAgICBD
T0xPUiAyNTUgMjU1IDI1NQ0KICAgIFVOSVRTIEZFRVQNCiAgICBJTlRFUlZBTFMgMQ0KICAgIFRS
QU5TUEFSRU5UIFRSVUUNCiAgICBTVEFUVVMgT04NCiAgRU5EDQoNCiAgIw0KICAjIFN0YXJ0IG9m
IGxheWVyIGRlZmluaXRpb25zDQogICMNCiAgTEFZRVINCiAgICBOQU1FICJNeVZpcnR1YWxMYXll
ciINCiAgICBUWVBFIFBPSU5UDQogICAgQ09OTkVDVElPTlRZUEUgT0dSDQoJQ09OTkVDVElPTiAi
QzovaW5ldHB1Yi93d3dyb290L01hcFNlcnZlci9Qb2ludFRlc3QvZGF0YS92aXJ0dWFsLm92ZiIg
IyB0aGUgbmFtZSBhbmQgcGF0aCB0byB0aGUgdmlydHVhbC5vdmYgZmlsZSwgcmVsYXRpdmUgdG8g
c2hhcGVwYXRoIG1heSB3b3JrPw0KICAjRFVNUCBUUlVFICMgZm9yIFdGUyBvbmx5DQoJREFUQSAi
TXlMYXllciIgIyB0aGUgbmFtZSBvZiB0aGUgT0dSVnJ0TGF5ZXINCiAgICBTVEFUVVMgT04NCiAg
ICBDTEFTUw0KICAgICAgU1lNQk9MIDENCiAgICAgIFNJWkUgNg0KICAgICAgQ09MT1IgMjU1IDAg
MA0KICAgIEVORCAjQ2xhc3MNCiAgRU5EICNMYXllcg0KRU5EICNNYXBmaWxlDQoNCg==
--=__Part3312C957.1__=
Content-Type: text/plain; name="data.txt"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="data.txt"
ID,X,Y
1,480578.0069,5210762.762
2,406471.8975,5231732.188
3,421949.7605,5309334.259
4,486205.6383,5206175.655
5,418918.5465,5208542.54
6,418517.3127,5215273.744
7,431802.8372,5303975.903
8,457458.8175,5301521.854
9,458852.7883,5235005.156
10,429417.4341,5228201.624
11,457737.4239,5222193.938
12,481929.8764,5280190.575
13,497773.6159,5235507.038
14,430836.9841,5293155.729
15,458001.5022,5221597.725
16,407386.5516,5300599.051
17,390873.7008,5210050.156
18,443150.2801,5204448.446
19,492146.379,5236810.172
20,484023.9341,5209345.238
21,485224.6403,5268335.217
22,455537.428,5268990.1
23,400637.86,5232282.698
24,475053.1434,5303022.021
25,424775.2919,5205557.469
--=__Part3312C957.1__=
Content-Type: application/octet-stream; name="virtual.ovf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="virtual.ovf"
PE9HUlZSVERhdGFTb3VyY2U+DQogICAgPE9HUlZSVExheWVyIG5hbWU9Ik15TGF5ZXIiPg0KICAg
ICAgICA8U3JjRGF0YVNvdXJjZT5PREJDOkdJU0RBVEEyPC9TcmNEYXRhU291cmNlPg0KIAk8U3Jj
TGF5ZXI+ZGF0YS50eHQ8L1NyY0xheWVyPg0KCTxHZW9tZXRyeVR5cGU+d2tiUG9pbnQ8L0dlb21l
dHJ5VHlwZT4NCgk8R2VvbWV0cnlGaWVsZCBlbmNvZGluZz0iUG9pbnRGcm9tQ29sdW1ucyIgeD0i
WCIgeT0iWSIvPiANCiAgICA8L09HUlZSVExheWVyPg0KPC9PR1JWUlREYXRhU291cmNlPg0KDQo=
--=__Part3312C957.1__=--
More information about the MapServer-users
mailing list