comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » shapefile not in lat/lon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: shapefile not in lat/lon [message #86702 is a reply to message #86700] Thu, 28 November 2013 08:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

>
> No, it is not working or I don't know how to do it... The only thing I want is my shapefile over a map.
> This is what I am doing:
>
> cgdisplay, 800, 700, wid=1
> map = cgMap('UTM', Ellipsoid='GRS 1980', CENTER_LONGITUDE=-73.5, $
> CENTER_LATITUDE=0, FALSE_EASTING=304800.0, LIMIT=[44,-75.25,47,-72.5])
> cgmap_grid, /box_axes, map_structure=map
> cgmap_continents, /continents, /coasts, /usa, /rivers, /countries, /hires, map_str=map
> cgdrawshapes, shapefile, mapcoord=map, /projected_xy

I'm just going out to gather some company for Thanksgiving, but package
all the pieces of the shapefile up in a zip file and send it to me. I'll
have a look when I get the chance. (Good excape from the family!)

But, instead of doing this:

> cgdrawshapes, shapefile, mapcoord=map, /projected_xy

I would try this:

map -> SetProperty, Position=[0.1, 0.1, 0.9, 0.9]
map -> Draw
cgmap_continents, /continents, /coasts, /usa, /rivers, $
/countries, /hires, map_str=map
cgmap_grid, /box_axes, map_structure=map
cgDrawshapes, shapefile

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simpler Raster Output
Next Topic: Errorbar plot with max-min boundaries and bar plot with !P.Multi

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:54:15 PDT 2025

Total time taken to generate the page: 1.67919 seconds