csharp querybyattributes

Tamas Szekeres szekerest at GMAIL.COM
Tue Oct 17 14:11:30 PDT 2006


David,

If your problem still persists it would be useful to file a bug and
attach the necessary files so as to reproduce the same result.

Thanks,

Tamas


2006/10/17, dlowther at coordinatesolutions.com <dlowther at coordinatesolutions.com>:
> Tamas,
>
> So here's the weird thing: queryByAttributes gets a resultCache with the
> correct number of results and correct extent for all these shapefiles
> (county, Garfield, precinct). It highlights for county and precinct, but NOT
> Garfield. If I queryByRect all shapefiles highlight. Of course, by highlight
> I mean drawQuery shows yellow.
>
> This all leads me to believe there is something about the shapefile causing
> the issue. If you still need me to post a sample app or the shapefiles let
> me know.
>
> Do you see anything obvious I am missing?
>
> Here's OGRINFO -so for the 3 files:
>
> D:\ms4w\tools\gdal-ogr>ogrinfo -so d:\Data\OKCOUNTY\county.shp county
> INFO: Open of `d:\Data\OKCOUNTY\county.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: county
> Geometry: Polygon
> Feature Count: 77
> Extent: (-103.002647, 33.615765) - (-94.431215, 37.002327)
> Layer SRS WKT:
> (unknown)
> SDSM_ID: Real (11.0)
> NAME: String (20.0)
> STATE: Real (11.0)
> COUNTY: Real (11.0)
> CENTERX: Real (20.6)
> CENTERY: Real (20.6)
> CO_NAME: String (30.0)
>
> D:\ms4w\tools\gdal-ogr>ogrinfo -so d:\Data\OKCOUNTY\garfield.shp garfield
> INFO: Open of `d:\Data\OKCOUNTY\garfield.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: garfield
> Geometry: Polygon
> Feature Count: 34333
> Extent: (-98.105126, 36.164392) - (-97.460512, 36.593755)
> Layer SRS WKT:
> (unknown)
> SDSM_ID: Real (11.0)
> LABEL: String (8.0)
> NAME: String (30.0)
> ACRES: String (24.0)
> MPIN: String (21.0)
> PROBLEM: String (12.0)
> TOWN_NUM: Real (11.0)
> TOWN_DIR: String (1.0)
> RANGE_NUM: Real (11.0)
> RANGE_DIR: String (1.0)
> SECTION: Real (11.0)
> PARCEL_NUM: String (25.0)
>
> D:\ms4w\tools\gdal-ogr>ogrinfo -so d:\Data\OKCOUNTY\precinct.shp precinct
> INFO: Open of `d:\Data\OKCOUNTY\precinct.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: precinct
> Geometry: Polygon
> Feature Count: 2144
> Extent: (-103.002647, 33.615765) - (-94.431215, 37.002327)
> Layer SRS WKT:
> GEOGCS["GCS_Assumed_Geographic_1",
>     DATUM["North_American_Datum_1927",
>         SPHEROID["Clarke_1866",6378206.4,294.9786982]],
>     PRIMEM["Greenwich",0.0],
>     UNIT["Degree",0.0174532925199433]]
> AREA: Real (19.5)
> PERIMETER: Real (19.5)
> ST_FIPS: String (2.0)
> CO_FIPS: String (3.0)
> COUNTY: String (12.0)
> PCT_NUM: String (5.0)
> PCT_CEB: String (6.0)
> USCONG: String (2.0)
> ST_SEN: String (3.0)
> ST_HSE: String (3.0)
> COMM: String (2.0)
> POLLING_PL: String (30.0)
> OEB_DATE: String (4.0)
> SQMI_AREA: Real (15.5)
> EDIT_DATE: String (5.0)
>
> D:\ms4w\tools\gdal-ogr>
>
> David Lowther
>
> Coordinate Solutions, Inc.
> 501 N.E. 15th Street
> Oklahoma City, OK 73104
> 405.246.9396 (Voice)
> 405.227.0781 (Fax)
> www.coordinatesolutions.com
>
> -----Original Message-----
> From: Tamas Szekeres [mailto:szekerest at gmail.com]
> Sent: Monday, October 16, 2006 2:31 PM
> To: dlowther at coordinatesolutions.com
> Cc: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] csharp querybyattributes
>
> Hi,
>
> I haven't found this kind of behaviour. Are you sure your resultcache
> is not empty?
> Could you post a sample to reproduce this problem?
>
> Best Regards,
>
> Tamas
>
>
>
> 2006/10/16, David Lowther <dlowther at coordinatesolutions.com>:
> >
> >
> >
> >
> > I'm using mapscript_csharp in vb.net and have noticed a (I think) strange
> > behavior.  When using layer.querybyattributes and then map.drawquery no
> > features are highlighted, though there are features in the resultcache.
> When
> > using layer.querybypoint(rect, or shape) map.drawquery does highlight
> > features. Is this the intended behaviour?
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> >
> >
> > David Lowther
> >
> >
> >
> >
> >
> > Coordinate Solutions, Inc.
> >
> >
> > 501 N.E. 15th Street
> >
> >
> > Oklahoma City, OK 73104
> >
> >
> > 405.246.9396 (Voice)
> >
> >
> > 405.227.0781 (Fax)
> >
> >
> > www.coordinatesolutions.com
>
>



More information about the MapServer-users mailing list