[Mapserver-users] Extent units

Dean Gadoury gadoury at dmsolutions.ca
Fri Aug 8 10:17:13 EDT 2003


This is a multi-part message in MIME format.
--------------010602060009080000040005
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I'm not 100% sure what you mean, but it sounds like you have a polyline 
shapefile and you are trying to define it as a polygon in your map file. 
You can't do that and that is what the error message is telling you. If 
your data are polyline, specify the TYPE in your layer definition as LINE.

Mario Servin wrote:

>Thanks everybody!.
>    I use the extents as the shpinfo.exe output and it was OK. I succesfully
>generate images with POLYGON type. Now, I face another problem and  I cannot
>generate any image when I use a POLYLINE. The error message is:
>"msDrawShape(): General error message. Only polygon shapes can be drawn
>using a POLYGON layer definition. "
>     The docs says POLYLINE does not exist as a type so I am not sure how to
>manage it.
>     Regards,
>                    Mario
>
>----- Original Message ----- 
>From: "Dean Gadoury" <gadoury at dmsolutions.ca>
>To: "Mario Servin" <mservin at tecnoaccion.com.ar>
>Cc: <mapserver-users at lists.gis.umn.edu>
>Sent: Friday, August 08, 2003 10:30 AM
>Subject: Re: [Mapserver-users] Extent units
>
>
>  
>
>>As Ed said, it looks like those are decimal degrees. Try using this as
>>your extent:
>>
>>EXTENT -71.53179836 -41.29253644 -71.14854968 -41.04421467
>>
>>
>>
>>Ed McNierney wrote:
>>
>>    
>>
>>>Mario -
>>>
>>>These data appear to be in decimal degrees, which is fine.  Make sure
>>>you use UNITS DD in your MAP file, and set the EXTENT to use the values
>>>below.
>>>
>>>I have seen certain builds of shpinfo that run correctly and then crash
>>>after generating their output.  Don't worry about it in this case, as
>>>you have the data you need.
>>>
>>>- Ed
>>>
>>>Ed McNierney
>>>President and Chief Mapmaker
>>>TopoZone.com / Maps a la carte, Inc.
>>>73 Princeton Street, Suite 305
>>>North Chelmsford, MA  01863
>>>Phone: (978) 251-4242  Fax: (978) 251-1396
>>>ed at topozone.com
>>>
>>>
>>>-----Original Message-----
>>>From: Mario Servin [mailto:mservin at tecnoaccion.com.ar]
>>>Sent: Thursday, August 07, 2003 5:31 PM
>>>To: mapserver-users at lists.gis.umn.edu
>>>Subject: [Mapserver-users] Extent units
>>>
>>>Hi,
>>>   I was playing with the demo.map and now I want to use my own
>>>shapefiles
>>>but I do not know the EXTENT of my map..... I downloaded shapelib from
>>>the
>>>Internet and with shpinfo.exe I get:
>>>Info for calles.shp
>>>Polyline(3), 338 Records in file
>>>File Bounds: (   -71.53179836,   -41.29253644)
>>>       (   -71.14854968,   -41.04421467)
>>>
>>>Then there is some unknown error . I do not know how to use these values
>>>as
>>>I never saw something like this values (GG.GGGGGGG) in .map file. Can
>>>anybody help me?
>>>
>>>
>>>_______________________________________________
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>>_______________________________________________
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>>
>>>
>>>      
>>>
>>-- 
>>___________________________
>>
>>Dean Gadoury
>>
>>DM Solutions Group
>>72 Chamberlain Ave. Third Floor
>>Ottawa, Ontario. K1S 1V9
>>613 565-5056 ext. 24
>>
>>gadoury at dmsolutions.ca
>>www.dmsolutions.ca
>>
>>
>>
>>    
>>
>
>
>
>  
>

-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

gadoury at dmsolutions.ca
www.dmsolutions.ca


--------------010602060009080000040005
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
I'm not 100% sure what you mean, but it sounds like you have a polyline
shapefile and you are trying to define it as a polygon in your map
file. You can't do that and that is what the error message is telling
you. If your data are polyline, specify the TYPE in your layer
definition as LINE.<br>
<br>
Mario Servin wrote:<br>
<blockquote type="cite"
 cite="mid005e01c35db4$f71cebb0$9105a8c0 at mariolaptop">
  <pre wrap="">Thanks everybody!.
    I use the extents as the shpinfo.exe output and it was OK. I succesfully
generate images with POLYGON type. Now, I face another problem and  I cannot
generate any image when I use a POLYLINE. The error message is:
"msDrawShape(): General error message. Only polygon shapes can be drawn
using a POLYGON layer definition. "
     The docs says POLYLINE does not exist as a type so I am not sure how to
manage it.
     Regards,
                    Mario

----- Original Message ----- 
From: "Dean Gadoury" <a class="moz-txt-link-rfc2396E" href="mailto:gadoury at dmsolutions.ca">&lt;gadoury at dmsolutions.ca&gt;</a>
To: "Mario Servin" <a class="moz-txt-link-rfc2396E" href="mailto:mservin at tecnoaccion.com.ar">&lt;mservin at tecnoaccion.com.ar&gt;</a>
Cc: <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users at lists.gis.umn.edu">&lt;mapserver-users at lists.gis.umn.edu&gt;</a>
Sent: Friday, August 08, 2003 10:30 AM
Subject: Re: [Mapserver-users] Extent units


  </pre>
  <blockquote type="cite">
    <pre wrap="">As Ed said, it looks like those are decimal degrees. Try using this as
your extent:

EXTENT -71.53179836 -41.29253644 -71.14854968 -41.04421467



Ed McNierney wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Mario -

These data appear to be in decimal degrees, which is fine.  Make sure
you use UNITS DD in your MAP file, and set the EXTENT to use the values
below.

I have seen certain builds of shpinfo that run correctly and then crash
after generating their output.  Don't worry about it in this case, as
you have the data you need.

- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242  Fax: (978) 251-1396
<a class="moz-txt-link-abbreviated" href="mailto:ed at topozone.com">ed at topozone.com</a>


-----Original Message-----
From: Mario Servin [<a class="moz-txt-link-freetext" href="mailto:mservin at tecnoaccion.com.ar">mailto:mservin at tecnoaccion.com.ar</a>]
Sent: Thursday, August 07, 2003 5:31 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.gis.umn.edu</a>
Subject: [Mapserver-users] Extent units

Hi,
   I was playing with the demo.map and now I want to use my own
shapefiles
but I do not know the EXTENT of my map..... I downloaded shapelib from
the
Internet and with shpinfo.exe I get:
Info for calles.shp
Polyline(3), 338 Records in file
File Bounds: (   -71.53179836,   -41.29253644)
       (   -71.14854968,   -41.04421467)

Then there is some unknown error . I do not know how to use these values
as
I never saw something like this values (GG.GGGGGGG) in .map file. Can
anybody help me?


_______________________________________________
Mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>

_______________________________________________
Mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>



      </pre>
    </blockquote>
    <pre wrap="">-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

<a class="moz-txt-link-abbreviated" href="mailto:gadoury at dmsolutions.ca">gadoury at dmsolutions.ca</a>
<a class="moz-txt-link-abbreviated" href="http://www.dmsolutions.ca">www.dmsolutions.ca</a>



    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

<a class="moz-txt-link-abbreviated" href="mailto:gadoury at dmsolutions.ca">gadoury at dmsolutions.ca</a>
<a class="moz-txt-link-abbreviated" href="http://www.dmsolutions.ca">www.dmsolutions.ca</a></pre>
</body>
</html>

--------------010602060009080000040005--





More information about the mapserver-users mailing list