Opened 18 years ago
Closed 14 years ago
#1700 closed defect (wontfix)
OGR tileindex source-files incorrectly opened as shapefile
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | high | Milestone: | 6.0 release |
Component: | MapScript-PHP | Version: | 4.8 |
Severity: | blocker | Keywords: | |
Cc: | mapserver@… |
Description (last modified by )
I have created a tileindex of DGN files. It works fine in the Mapserver CGI (same version), but in PHP_Mapscript the layer causes fatal errors. The PHP log says things like: ****************************************** [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msTiledSHPOpenFile(): Unable to open a single tile to use as a template in layer DGNs. in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 ****************************************** I based my layer definition on: http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr My Layer definition is: ****************************************** LAYER NAME "DGNs" TYPE LINE STYLEITEM "AUTO" CONNECTIONTYPE OGR TILEINDEX "dindex.shp,0" STATUS ON CLASS COLOR 150 150 150 END END ****************************************** It appears that although the layer is defined as OGR, PHP_Mapscript tries to open it as a shapefile (I guess because the tileindex is a shapefile). Testing showed that the connectiontype returned by PHP_Mapscript is that of a shapefile, not OGR. Bart reported having had similar problems with TAB files. I'm using PHP_Mapscript 4.6.1 on Windows. Jacob
Change History (7)
comment:2 by , 18 years ago
Component: | OGR Support → MapScript-PHP |
---|---|
Version: | 4.6 → 4.8 |
Problem also exists in Hobu's php_mapscript 4.8.3 binaries, so it must be in the php_mapscript code, not in how it is compiled. Changed category from OGR-support to php_mapscript.
comment:3 by , 17 years ago
Cc: | added |
---|
comment:4 by , 16 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Jacob, sorry for getting back to you so late on this one. Are you still able to test this 2 years later? I wonder if this may have been a Chameleon issue and not a PHP MapScript issue.
1- Can you tell us if this still happens with MapServer 5.2?
2- Does it happen only in Chameleon or can the error be reproduced with a simple PHP script like the following?
<?php $map = ms_newMapObj("/path/to/test.map"); $img = $map->draw(); $url = $img->saveWebImage(); printf("<IMG SRC=%s WIDTH=%d HEIGHT=%d>\n", $url, $map->width, $map->height); ?>
comment:5 by , 16 years ago
Milestone: | → 5.4 release |
---|
comment:6 by , 15 years ago
Milestone: | 5.4 release → 6.0 release |
---|
comment:7 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
No news from reporter. Closing WONTFIX.
Note:
See TracTickets
for help on using tickets.