[Geomoose-users] Asking technical problem regarding displaying shape file
Brent Fraser
bfraser at geoanalytic.com
Wed May 7 06:38:35 PDT 2014
Amila,
There are a couple of problems in your map file. Have a look in your
mapserver error log (/ms4w/tmp/ms_error.txt?) for details. I used
mapserver's shp2img command line program to parse the map file:
shp2img -m kysitesutmrd1.map -o kysitesutmrd1.png
getDouble(): Symbol definition error. Parsing error near (,):(line 5) <br>
so i made the following changes:
# Use spaces instead of commas:
# EXTENT 8887274.859924,787036.529767,9096903.423788,852344.927174
EXTENT 8887274.859924 787036.529767 9096903.423788 852344.927174
and EXTENT expects X Y X Y; these look more like Y X Y X so you may need
to swap the values. I had a look at the shapefile using GDAL's ogrinfo:
ogrinfo -so KYsitesUTMRD.shp KYsitesUTMRD
INFO: Open of `KYsitesUTMRD.shp'
using driver `ESRI Shapefile' successful.
Layer name: KYsitesUTMRD
Geometry: Point
Feature Count: 92
Extent: (456029.823976, 801937.311301) - (467996.155898, 808358.268919)
:
so I used
EXTENT 456029 801937 467996 808358
And another problem in the LAYER:
loadLayer(): Unknown identifier. Parsing error near
(CLOSE_CONNECTION=DEFER):(line 61) <br>:
# Use PROCESSING directive:
# CLOSE_CONNECTION=DEFER
PROCESSING "CLOSE_CONNECTION=DEFER"
and you'll likely need a PROJECTION block for your LAYER definition if
the data is stored in the database in EPSG:4326
Best Regards,
Brent Fraser
On 5/6/2014 11:23 PM, Amila Karunathilake wrote:
> Dear Sir,
>
> I'm PhD student from university of Peradeniya, Srilanka.
> I'm having a problem with displaying my shape file on top of
> geomoose interface (It display pink color when active layer).
>
> Herewith i attache my map file and shape file, would you please
> let me know any correction. Your kind attention for this matter
> highly appreciated.
>
> Thank you.
>
> Amila.
>
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140507/8c8946ca/attachment.html>
More information about the Geomoose-users
mailing list