Opened 22 years ago
Closed 20 years ago
#255 closed enhancement (duplicate)
Access Z values
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 4.1 |
Severity: | minor | Keywords: | |
Cc: |
Description
Add the ability to retrieve the z values of vertices in 3D shapefiles.
Change History (4)
comment:2 by , 22 years ago
"Hankley, Chip" wrote: > > I'd like to use the z values of the shapefile to create profiles... so what > I'm trying to do, is get the individual z values for each vertex in a shape. > So, I understand that I can't do this through mapScript... but I don't see a > way to do it with OGR either (albeit my OGR experience is pretty limited). > Am I missing something? You could use the $layer->open()/close() and $layer->getShape() to read shapes out of an OGR data source (or any data source that MapServer supports). The only problem is that those calls are intended to be used to read shapes returned by a query call, so they don't provide the equivalent of the shapefileObj->numshapes member. Assuming your shapefile is not too big then you could do a queryByAttributes() with an attribute filter that matches all shapes in your layer, and then the query results will contain the shape id of all shapes in your layer. It might also be possible to implement a new $layer->getNextShape() method that would allow someone to sequentially read all shapes using a layerObj. Now, where do we go from there? I'll file those comments in the bug report and we can continue the discussion there: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=255 I would be interested in hearing what Steve thinks about adding support for Z values in MapServer since this implies an increase in size of the pointObj, which means more memory per shapeObj, all this for a feature that very few users will use. Perhaps that should be made available as a compile option?
comment:3 by , 21 years ago
Cc: | added |
---|---|
Priority: | highest → high |
Version: | 4.0 → 4.1 |
Can't happen for 4.0 for sure. Perhaps we should revisit this in a later release adding Steve and Assefa to the CC to include them in the discussion when we get to that later.
comment:4 by , 20 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
*** This bug has been marked as a duplicate of 869 ***
Note:
See TracTickets
for help on using tickets.