Opened 14 years ago

Closed 14 years ago

#3248 closed defect (fixed)

Update raster query code to support shapes beyond simple polygons...

Reported by: sdlime Owned by: warmerdam
Priority: normal Milestone: 6.0 release
Component: GDAL Support Version: svn-trunk (development)
Severity: normal Keywords: raster query
Cc: sdlime

Description

As part of some consulting work I had to add support (in trunk) to handle points, lines and polygons in msQueryByShape(). Works nicely. However, I didn't update the raster code, just not familiar enough with it. So, we either need to make sure to throw an error with rasters and unsupported shape types or add the necessary support.

It's nice with clients like OpenLayers being able to generate adhoc geometries to handle more cases.

Steve

Change History (2)

comment:1 by warmerdam, 14 years ago

Keywords: raster query added
Status: newassigned

I see the core changes Steve made are in r9613 - I will try to match those for raster. The core raster shape query is the test:

            if( rlinfo->searchshape != NULL
                && msIntersectPointPolygon( &sPixelLocation, 
                                            rlinfo->searchshape ) == MS_FALSE )
                continue;

This will need to be extended to support three different types of search shapes. The targets are always points.

comment:2 by warmerdam, 14 years ago

Resolution: fixed
Status: assignedclosed

I have implemented support for point and line raster query in trunk (r9646). I also implemented a modest test of this with a line in msautotest/mspython/rqtest.py (r9645).

I have only done modest testing.

Note: See TracTickets for help on using tickets.