[mapguide-users] RE: RE: question Postgre Search tools php
MapasCatastro
mapas at laplata.gov.ar
Wed May 9 07:08:48 EDT 2007
thanks Jason
my question is this part the code is fine to read to postgre?
$featureResId = new
MgResourceIdentifier("Library://quilmes/postgre/conectancia.FeatureSource");
$queryOptions = new MgFeatureQueryOptions();
$queryOptions->SetFilter($filter);
$geometryReaderWriter = new MgAgfReaderWriter();
$featureReader = $featureService->SelectFeatures($featureResId,
"OGRSchema:callesnodos", $queryOptions);
$featureReader->ReadNext();
$name = $featureReader->GetString('clave');
$byteReader = $featureReader->GetGeometry('the_geom');
thanks a lot
oscar
JasonBirch wrote:
>
> I don't have time to totally understand your code, but a couple things
> come to mind like:
>
> - the $filter needs to be a valid expression (like "clave = 3912")
>
> - make sure that you have the right case for the column name. FDO is
> case-sensitive.
>
> - not sure why you're opening the Map?
>
> Jason
>
> -----Original Message-----
> From: MapasCatastro
> Subject: [mapguide-users] RE: question Postgre Search tools php
>
> '3912' is the echo from my filter
>
> The specified object was not found.The specified object was not found.
> Exception occurred in method GetItem at line 115 in file
> .\Data\NamedCollection
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://www.nabble.com/question-Postgre-Search-tools-php-tf3711540s16610.html#a10392277
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list